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

Im using the schema found at http://namespace.lantmateriet.se/distribution/produkter/fastighetsamfallighet/v3/fastighet-samfallighet-3.0.0.json and trying to generate c# code from it. It allways crashes on the external references it seems, with this error message: System.InvalidOperationException: Could...

https://github.com/RicoSuter/NJsonSchema/blob/5476815d7f6e3172d6e384236135869a3bebeaea/src/NJsonSchema/Generation/JsonSchemaGeneratorSettings.cs#L258 When I try to change the the serializer settings from Newtonsoft to System.Text.Json by setting SerializerSettings to null and set new value for SerializerOptions there is an error "The...

oneOf is not currently supported in SwaggerToCSharpClientGenerator. [See this issue for full explanation and example](https://github.com/RSuter/NSwag/issues/1721)

type: enhancement
project: NJsonSchema.CodeGeneration.CSharp

As a pre-cursor, I am not sure if this is per se an issue with NJsonSchema or what I am trying to do/framework. I need some pointers as I can't...

We use JsonSchema.OneOf with multiple JsonSchemas and generate TypeScript union types out of it. The current implementation of `TypeResolverBase.RemoveNullability` "destroys" the JsonSchema.OneOf collection to the first non nullable item: ```...

when i use the attribute like this: ```c# [JsonSchema(JsonObjectType.Array, ArrayItem = typeof(string))] ``` and then process it through the client generator i get the property as any[][] now yes, a...

I am trying to generate c# classes from json schema files. The json schema files contain references to other json schema files which are available locally, in the same directory...

I get this error every try to generete outputs. It apears when "generate DTO types" is checked. What can be wrong? ![obraz](https://user-images.githubusercontent.com/5702015/52096935-07248980-25c9-11e9-911d-1b27df07d9a4.png) System.ArgumentException: The baseTypeName cannot equal typeName. Parameter name:...

type: bug

In my ASP.NET Core projekt I have a model with a `List` property. In the generated C# client this becomes a `ICollection`. It does not seem to be a problem...

The support for x-enumFlags added for #226 is great, but I'd like a very small change to be made. If enumFlags are being generated for an integer, then it should...