(None, string.encode(), 'text/plain') or (None, string.encode(), 'application/json') For example in enum_property.py.jinja {% if stringify %} {% set transformed = "(None, str(" + transformed + ").encode(), 'text/plain')" %} {% set type_string = "Union[Unset, Tuple[None,...
Ultimately, in the module's__init__.py, we callmodel_rebuildon all the necessary models. I know this isn't ideal as well, as you need to manually check for every exported model here if the build was successful. This library is a clear example that inter-dependent types across different...
Bug Report Checklist Have you provided a full/minimal spec to reproduce the issue? Have you validated the input using an OpenAPI validator (example)? Have you tested with the latest master to confirm the issue still exists? Have you sear...
Example: importrequestsresource=requests.get("/resource/my-id").json()resource["my_field"]="new-value"requests.patch("/resource/my-id?update_mask=my_field",data=json.dumps(resource)) Versioning and Endpoint Lifecycle API versioning is not synchronized to specific releases of the Apache Airflow...
# Examples for each auth method are provided below, use the example that # satisfies your auth use case. # Configure OAuth2 access token for authorization: pinterest_oauth2 configuration = openapi_generated.pinterest_client.Configuration( host = "https://api.pinterest.com/v5" ) configuration.acce...
curl -X PATCH'https://example.com/api/v1/dags/{dag_id}?update_mask=is_paused'\\-H'Content-Type: application/json'\\--user\"username:password\"\\-d'{\"is_paused\": true}' Using a graphical tool such asPostmanorInsomnia, it is possible to import the API specifications directly: ...
(host="/api/v1")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure HTTP basic authorization: Basic...