turner-townsend / flask-pydantic-spec

An Flask OpenAPI library using Pydantic
Apache License 2.0
98 stars 17 forks source link

Simplify spec ref location mutation and update tests #48

Closed cgearing closed 1 year ago

cgearing commented 1 year ago

This PR drops the complicated _nested_update_references function and just uses pydantic functionality for setting the schema location as an OpenAPI compliant document.

It also fixes an issue where we dropped out the items from a top level array schema (fixes #47)