manchenkoff / openapi3-parser

OpenAPI 3 parser to use a specification inside of the code in your projects
https://pypi.org/project/openapi3-parser/
MIT License
65 stars 34 forks source link

Introduce clear and meaningful validation errors #34

Open manchenkoff opened 2 years ago

manchenkoff commented 2 years ago

The current library version uses prance as a validation tool, but there is no way to get appropriate errors content with details and causes.

Andrew-Chen-Wang commented 1 year ago

Is it possible with the introduction of pydantic that we could cut out prance and even cut out all dependencies?

manchenkoff commented 1 year ago

In theory, yes, the main idea of prance usage was to reuse basic parsing with references and all validation rules related to OpenAPI v2/v3 instead of defining it by myself. Unfortunately, I do not have that much time right now, but eventually, I want to refactor this approach and define all rules in Pydantic according to OpenAPI v3+ specifications only.