openapi-schema-pydantic icon indicating copy to clipboard operation
openapi-schema-pydantic copied to clipboard

Schema to flat parameters for inputs

Open bajinaji opened this issue 2 years ago • 0 comments

I'm not sure if this is an "issue". In fact I don't think it is, but this is a use case scenario. Our input variables are actually defined as pydantic schema objects.

My goal is to have a query input schema type map to openapi valid json ... This (lovely) library offers the PydanticSchema class that handles a type, but is there a way to generate the params ONLY from an input schema type?

Thanks!

bajinaji avatar Feb 21 '23 04:02 bajinaji