openapi3-parser icon indicating copy to clipboard operation
openapi3-parser copied to clipboard

Introduce clear and meaningful validation errors

Open manchenkoff opened this issue 3 years ago • 2 comments

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

manchenkoff avatar Jul 06 '22 14:07 manchenkoff

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

Andrew-Chen-Wang avatar Apr 20 '23 18:04 Andrew-Chen-Wang

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.

manchenkoff avatar Apr 20 '23 21:04 manchenkoff