Extension point or access to OpenApiDocument from Liquid Template

ぃ、小莉子 提交于 2020-04-11 06:57:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!