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

When using a custom ContractResolver (with Newtonsoft.Json), it seems that when the contract is modified with additional properties these do not show up in the schema generated by `JsonSchemaGenerator`. Is...

Hi, the class IpV4FormatValidator contains a regex: private const string IpV4RegexExpression = "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"; This one supports also an ip address with only three parts, like: 192.168.178 A correct one would...

Hi, I am working with big data Spark.NET and It seems to complain when we try to serialise the code to our worker nodes, Is it possible to mark the...

Hello! I'm trying to use this sample code to generate classes from a given json schema: ```csharp static void Main(string[] args) { var schema = JsonSchema4.FromJsonAsync(GetJsonSchema()).Result; var settings = new...

type: bug
help wanted

For these C# model classes: ```csharp public class Car { public string Foo { get; set; } } public class ElectricCar : Car { public int BatteryCapacity { get; set;...

We can set several useful default types in CSharpGeneratorSettings, but nothing for `integer`. Could we get a setting that allows us to use long instead of int by default?

help wanted

Given the following YAML spec: ``` exampleproperty: type: integer default: -1 ``` The default value is missing in code/controller generation unless an explicit format is given as such: ``` exampleproperty:...

type: enhancement
help wanted

Related to https://github.com/RicoSuter/NSwag/issues/2313 Optional Scalar properties do not produce nullable C# built-in value types when the types are defined in components/schema. ```yaml openapi: '3.0.2' info: title: API Title version: '1.0'...

type: bug

Hey, I have a JsonSchema which I've created, and I want to assign it to a property of another JsonSchema. I can't find a built in way to convert JsonSchema...

type: question
type: refactoring

Hello, when using Newtonsoft.Json v10 or higher, the NJsonSchema.FromType doesn't take the json property name from the attribute. **This happens only when code is invoked from the MS Unit Test...