strawberry-graphql 0.275.3__py3-none-any.whl → 0.275.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- strawberry/http/async_base_view.py +8 -1
- strawberry/http/sync_base_view.py +8 -1
- {strawberry_graphql-0.275.3.dist-info → strawberry_graphql-0.275.4.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.275.3.dist-info → strawberry_graphql-0.275.4.dist-info}/RECORD +7 -7
- {strawberry_graphql-0.275.3.dist-info → strawberry_graphql-0.275.4.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.275.3.dist-info → strawberry_graphql-0.275.4.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.275.3.dist-info → strawberry_graphql-0.275.4.dist-info}/entry_points.txt +0 -0
@@ -536,9 +536,16 @@ class AsyncBaseHTTPView(
|
|
536
536
|
"The GraphQL operation's `query` must be a string or null, if provided.",
|
537
537
|
)
|
538
538
|
|
539
|
+
variables = data.get("variables")
|
540
|
+
if not isinstance(variables, (dict, type(None))):
|
541
|
+
raise HTTPException(
|
542
|
+
400,
|
543
|
+
"The GraphQL operation's `variables` must be an object or null, if provided.",
|
544
|
+
)
|
545
|
+
|
539
546
|
return GraphQLRequestData(
|
540
547
|
query=query,
|
541
|
-
variables=
|
548
|
+
variables=variables,
|
542
549
|
operation_name=data.get("operationName"),
|
543
550
|
extensions=data.get("extensions"),
|
544
551
|
protocol=protocol,
|
@@ -161,9 +161,16 @@ class SyncBaseHTTPView(
|
|
161
161
|
"The GraphQL operation's `query` must be a string or null, if provided.",
|
162
162
|
)
|
163
163
|
|
164
|
+
variables = data.get("variables")
|
165
|
+
if not isinstance(variables, (dict, type(None))):
|
166
|
+
raise HTTPException(
|
167
|
+
400,
|
168
|
+
"The GraphQL operation's `variables` must be an object or null, if provided.",
|
169
|
+
)
|
170
|
+
|
164
171
|
return GraphQLRequestData(
|
165
172
|
query=query,
|
166
|
-
variables=
|
173
|
+
variables=variables,
|
167
174
|
operation_name=data.get("operationName"),
|
168
175
|
extensions=data.get("extensions"),
|
169
176
|
)
|
@@ -135,12 +135,12 @@ strawberry/file_uploads/utils.py,sha256=-c6TbqUI-Dkb96hWCrZabh6TL2OabBuQNkCarOqg
|
|
135
135
|
strawberry/flask/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
136
136
|
strawberry/flask/views.py,sha256=MCvAsNgTZLU8RvTYKWfnLU2w7Wv1ZZpxW9W3TyTZuPY,6355
|
137
137
|
strawberry/http/__init__.py,sha256=ytAirKk7K7D5knY21tpCGeZ-sCPgwMsijL5AxmOy-94,1163
|
138
|
-
strawberry/http/async_base_view.py,sha256=
|
138
|
+
strawberry/http/async_base_view.py,sha256=04QtmPfDuNRrbet7H_3_Vpv8tZdBLSGYZ8dUORu7yrE,20610
|
139
139
|
strawberry/http/base.py,sha256=MiX0-RqOkhRvlfpmuvgTHp4tygbUmG8fnLc0uCrOllU,2550
|
140
140
|
strawberry/http/exceptions.py,sha256=9E2dreS1crRoJVUEPuHyx23NcDELDHNzkAOa-rGv-8I,348
|
141
141
|
strawberry/http/ides.py,sha256=WjU0nsMDgr3Bd1ebWkUEkO2d1hk0dI16mLqXyCHqklA,613
|
142
142
|
strawberry/http/parse_content_type.py,sha256=CYHO8F9b9DP1gJ1xxPjc9L2GkBwsyC1O_GCEp1QOuG0,381
|
143
|
-
strawberry/http/sync_base_view.py,sha256
|
143
|
+
strawberry/http/sync_base_view.py,sha256=-tR_JAP2tGLo0LaeKD_l0k1DEsXf2WOOS_zlDoO90aI,7910
|
144
144
|
strawberry/http/temporal_response.py,sha256=HTt65g-YxqlPGxjqvH5bzGoU1b3CctVR-9cmCRo5dUo,196
|
145
145
|
strawberry/http/types.py,sha256=H0wGOdCO-5tNKZM_6cAtNRwZAjoEXnAC5N0Q7b70AtU,398
|
146
146
|
strawberry/http/typevars.py,sha256=Uu6NkKe3h7o29ZWwldq6sJy4ioSSeXODTCDRvY2hUpE,489
|
@@ -234,8 +234,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
|
|
234
234
|
strawberry/utils/operation.py,sha256=ZgVOw3K2jQuLjNOYUHauF7itJD0QDNoPw9PBi0IYf6k,1234
|
235
235
|
strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
|
236
236
|
strawberry/utils/typing.py,sha256=SDvX-Du-9HAV3-XXjqi7Q5f5qPDDFd_gASIITiwBQT4,14073
|
237
|
-
strawberry_graphql-0.275.
|
238
|
-
strawberry_graphql-0.275.
|
239
|
-
strawberry_graphql-0.275.
|
240
|
-
strawberry_graphql-0.275.
|
241
|
-
strawberry_graphql-0.275.
|
237
|
+
strawberry_graphql-0.275.4.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
238
|
+
strawberry_graphql-0.275.4.dist-info/METADATA,sha256=2j_gXLV6uvT05trQ2YwaIBVPvMchItXGFhV4jSqx184,7393
|
239
|
+
strawberry_graphql-0.275.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
240
|
+
strawberry_graphql-0.275.4.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
241
|
+
strawberry_graphql-0.275.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.275.3.dist-info → strawberry_graphql-0.275.4.dist-info}/entry_points.txt
RENAMED
File without changes
|