问题
We have Specification Extensions (i.e. x-isPrimaryKey
) in our generated OpenApiDocument
and need to add them as ClassDecorators
to our Angular models.
e.g. We communicate if is Pk, Fk and property level permissions.
I am successfully overriding the File.liquid to customize the generated models.
I have explored the TypeScriptFileTemplateModel but _document
is private
.
Any help with discoverability of Template Variables for .Liquid
files is appreciated.
Specifically, is there an extension point to be able to read OAS 3 components
-> schemas
from any .Liquid
template to extend model generation with?
来源:https://stackoverflow.com/questions/60304352/extension-point-or-access-to-openapidocument-from-liquid-template