mike-oakley / openapi-pydantic

Pydantic OpenAPI schema implementation
Other
48 stars 7 forks source link

feat: Allow extras on models. #5

Closed mike-oakley closed 1 year ago

mike-oakley commented 1 year ago

Change from extra.ignore to extra.allow to allow downstream libraries to make use of extra annotations such as schema extensions.

Initially, no guarantees are provided on support for this feature beyond exposing parsed attributes on a best effort basis, but we'll likely fail on procedures etc and only support basic types.