You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With a route definition that sets the content type to application/json but the schema type to a string, the code generated references an invalid variable.
To Reproduce
Add a route definition like so:
"/chat/web": {
"parameters": [],
"post": {
"security": [
{
"basicAuth": []
}
],
"description": "Send a message to the chat",
"responses": {
"204": {
"description": "Message sent"
}
},
"requestBody": {
"description": "The text to send",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
Sorry for the delays, I finally got around to fixing this in #550. Will be included in 0.10.8 release. Not the prettiest code ever but at least it functions now!
Describe the bug
With a route definition that sets the content type to
application/json
but the schema type to a string, the code generated references an invalid variable.To Reproduce
openapi-python-client update ...
_get_kwargs
codeExpected behavior
The code in
post_chat_web.py
should referencejson_body
and notjson_json_body
.OpenAPI Spec File
https://github.com/raw/Nadybot/Nadybot/unstable/html/api.json
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: