fresh-continent-76371
03/21/2023, 10:09 PMjsonschema
- (openapi)
The "generation" is as simple as
from pydantic import Basemodel
...
class MyPydanticModel(BaseModel):
...
print(json.dumps(MyPydanticModel.schema(),indent=2))
I am happy plugging my way through writing a codegen plugin for this, but was wondering if I am able to leverage the openapi source types that exists already (for linting a openapi_document, etc)
just after some guidance really. and once compete, I am happy to submit this pluginbroad-processor-92400
03/21/2023, 10:19 PMadhoc_tool
to export an OpenAPI schema from a flask app and the do some other code generation based on that...
I don't know if these can hook into the openapi_document
support; maybe @ancient-vegetable-10556 can assist.fresh-continent-76371
03/21/2023, 10:38 PMfresh-continent-76371
03/21/2023, 10:39 PMancient-vegetable-10556
03/23/2023, 3:16 PMopenapi_document
, but probably could with a bit of work.