... not valid for schema of type object: (<ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'array'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'array'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'number'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'number'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'array'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'number'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'array'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'number'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'string'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'number'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'number'\">, <ValidationError: 'None for not nullable'>, <ValidationError: \"None is not of type 'number'\">, <ValidationError: 'None for not nullable'>)\nThank you!
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Please read more about Handling Validation Errors
","upvoteCount":1,"url":"https://github.com/python-openapi/openapi-core/discussions/768#discussioncomment-8432690"}}}-
|
Hello! I'm using the It does raise errors, but the message is pretty confusing, below is the validation error raised, I'm wondering if there's any way I could know which field in my spec or JSON response is raising the error? This kind of massive "None for not of type xx" really doesn't help much. They way I printed this was like this: Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Please read more about Handling Validation Errors |
Beta Was this translation helpful? Give feedback.
Please read more about Handling Validation Errors