Validation in body and params #1803
Unanswered
Subin-Qreative
asked this question in
Q&A
Replies: 3 comments 1 reply
|
Hi @Subin-Qreative, Connexion validates the payload based on your OpenAPI specification. If you specify these limitations in your OpenAPI spec, Connexion will enforce them. For more info, refer to the validation docs. |
0 replies
|
So if i'm understanding this right , i can use the https://github.com/python-jsonschema/jsonschema also are there any additional properties e.g. "example:" that is connexion specific, Thanks |
1 reply
|
Found this actually which answered my question: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi is there any example of validation on the params in body/payload and in parameters.
Currently there is type validation i am interested in the content of the paylaod itself e.g. Temperate , if the value is above 50 reject the api call outright saying invalid range or something like that. I saw validation section in the documentation but I couldn't get my head around it.
Thanks
All reactions