nswagstudio

Using Swashbuckle 5.x specify nullable = true on a Generic T Parameter reference property

有些话、适合烂在心里 提交于 2020-06-28 06:09:07
问题 I recently upgraded my API to a .net core 3.1 server using Swashbuckle 5 with the newtonsoft json nuget, which produces an openapi 3 schema. I then use NSwag to generate a C# API. Previously I had a .net core 2.2 server with swashbuckle 4, producing a swagger 2.0 api schema. I have a generic response class for all responses, containing some metadata about the response like status code and a message, plus a Payload property of Generic type T containing the meat of the response. When the

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