We have 规范扩展 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#specification-extensions (i.e. x-isPrimaryKey
)在我们生成的OpenApiDocument
并需要将它们添加为ClassDecorators
到我们的 Angular 模型。
例如我们沟通是否是 Pk、Fk 和属性级别权限。
我成功地覆盖了文件.液体 https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.CodeGeneration.TypeScript/Templates/File.liquid自定义生成的模型。
我已经探索过类型脚本文件模板模型 https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs but _document
is private
.
有关模板变量可发现性的任何帮助.Liquid
文件表示赞赏。
具体来说,是否有一个扩展点能够读取 OAS 3components
-> schemas
从任何.Liquid
扩展模型生成的模板?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)