NJsonSchema icon indicating copy to clipboard operation
NJsonSchema copied to clipboard

JSON Schema reader, generator and validator for .NET

Results 235 NJsonSchema issues
Sort by recently updated
recently updated
newest added

The attached json document causes stack overflow in tscript generator if Generate DTO is set to true. [minimal.zip](https://github.com/RicoSuter/NSwag/files/4201830/minimal.zip)

type: bug

Closes https://github.com/RicoSuter/NJsonSchema/issues/1045

- Use the minimum version compatible with .NET Standard 2.0 (11.0.1) - Remove dependency when solving transitively

Tp celebrate May 10 when also NET 5.0 has reached EOL, removing old targets that are hard to compile with stock Visual Studio & .NET SDK. * change version to...

The generator has so far only generated enums with the implicit default type int. Also for enums declared with the base type long in C# and a "Format = int64"...

When I generate C# from either of the attached json schema files [position_schema.json.txt](https://github.com/RicoSuter/NJsonSchema/files/8845593/position_schema.json.txt) [flightplan_schema.json.txt](https://github.com/RicoSuter/NJsonSchema/files/8845594/flightplan_schema.json.txt) the resulting C# gives me several ambiguity errors around `_additionalProperties`. I'm not sure why these entries...

``` using System.Threading.Tasks; using Xunit; namespace NJsonSchema.Tests.Validation { public class NullablePropertyTest { [Fact] public async Task When_property_can_be_null_then_null_is_allowedAsync() { //// Arrange var schema = await JsonSchema.FromJsonAsync(@"{ ""type"": ""object"", ""required"": [], ""properties"":...

Hi, When i try to validate a json input against a json schema from swagger document, validation error occured for nullable string but i'm not sure if it's correct result....

type: enhancement
help wanted

For C# record types, ASP.NET Core model validation checks validation attributes to be applied to constructor parameters, rather than their corresponding properties. In fact, putting the attributes on the properties...

Version 10.7.1 introduced a breaking change to the `JsonSchemaValidator` class in a patch (non-breaking) version update. It replaced the constructor `public JsonSchemaValidator(params IFormatValidator[] customValidators)` with `public JsonSchemaValidator(JsonSchemaValidatorSettings settings)`. This has...