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

[Feature] Use pydantic instead of raw parsing

Open manchenkoff opened this issue 4 years ago • 1 comments

What is a problem? A lot of inappropriate code for parsing key-value to data classes, like extract_attrs or extract_typed_props

Describe the solution you'd like Use Pydantic with automatic resolving and type casting methods

Describe alternatives you've considered Nothing

Additional context Nothing

manchenkoff avatar Apr 10 '21 19:04 manchenkoff

aiopenapi3 has quite good OAD model for all 3 versions (swagger 2, OAI 3 & 3.1), written in Pydantic and on MIT license. The model has some project-specific code, but surely cleaning it would be less work than starting from scratch.

rafalkrupinski avatar Mar 15 '24 12:03 rafalkrupinski