NJsonSchema
NJsonSchema copied to clipboard
JSON Schema reader, generator and validator for .NET
Fix KnockoutClass liquid template to be inline with generate code from property.ConvertToClassCode, and added assert to test method.
…GenerateConstructorInterface & ConvertConstructorInterfaceData are true. Simple template fix resolves problem reported in many places eg: - https://github.com/RicoSuter/NJsonSchema/issues/1128 - https://github.com/RicoSuter/NSwag/issues/3580 - https://github.com/RicoSuter/NSwag/issues/2895 and probably few more. The problem was when we...
My issue is related to the now closed issue #82 where you took the position that if we wanted a field to be nullable, it should not only be optional...
I recently upgraded an old project and some test cases broke. After debugging the test cases, they were failing due to JSONSchema.Item.Reference being null when it previously correctly resolved to...
Hi There, A question rather than an issue. When I generate C# from a json schema, the resulting class is called 'Anonymous', is there a way to specify the name...
Due to not-great ecosystem support of allOf/anyOf/oneOf, it would be helpful to be able to configure which to use when generating a construct like ``` schema: default: ascending oneOf: -...
So the JSON is: [ { "name": "Trondheim", "local_names": { "se": "Troandin", "sv": "Trondheim", "lv": "Trondheima", "lt": "Trondheimas", }, "lat": 63.4305658, "lon": 10.3951929, "country": "NO" }, { "name": "KlAbu", "lat":...
I'd like to generate `System.Version` for the following schema: ```yaml schema: type: string format: version ``` Generator: CSharpGenerator NSwag version: 13.15.10.0 Based on my current understanding, `CSharpTypeResolver.ResolveString` is responsible for...
I'm trying to generate a C# API for [Transifex API v3](https://transifex.github.io/openapi/index.html) (there is a link to download its OpenAPI specification on that page) and some of the methods will be...