Validation in body and params #1803
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Found this actually which answered my question: |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions