Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Factor out OpenAPI validation core for reusability #12
I've been trying out several OpenAPI libraries including
Common OpenAPI core library is great but I'm not sure if leveraging jsonschem is great. It made OpenAPI request validation easy but it made oneOf and anyOf unmarshaling inefficient:
for sub_schema in schema.get('oneOf') or schema.get('anyOf') or : try: # TODO: Remove duplicate validation return self.unmarshal(instance, sub_schema) except ValidationError: pass
I think own validator is needed for that. Any thoughts?
Would you like to start from
I see your point about unmarshaling
Are you thinking along the lines of this?
I'm wondering whether it makes sense in this particular library to let a custom
Based on my impression of