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

I get an error when calling `ToJson`. I don't understand why it works fine when the type is simply Customer, but I encounter an error when it's a list. ```csharp...

C# 11 added a [required member](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/required-members) and starting in .NET8, System.Text.Json now has full support for deserializing required members, giving an error if the member is missing. The compiler creates...

Hello, I've discovered an infinite loop in the `CSharpGenerator.RenamePropertyWithSameNameAsClass` method. The problem arises when a property shares the same name as its enclosing type and another property already bears a...

This pull request is meant to address a small inconsistency I've encountered when attempting to exclude types from the schema. As stated in the [docs](https://github.com/RicoSuter/NJsonSchema/blob/3585d60e949e43284601e0bea16c33de4c6c21f5/src/NJsonSchema/Generation/JsonSchemaGeneratorSettings.cs#L86-L87), `ExcludedTypeNames` should function exactly the...

When attempting to validate a JSON schema itself using the JSON Schema schema or meta-schema e.g. from https://json-schema.org/draft/2020-12/schema, an error occurs when loading this schema into NJsonSchema due to an...

Eg. a request body schema of: ```json { "required": [ "inputDate" ], "type": "object", "properties": { "inputDate": { "type": "string", "format": "date" }, "ids": { "type": "array", "items": { "type":...

Makes the naming of the constructor parameters consistent with the property names of the type when using the ParameterNameGenerator with records.

I have a `IOperationProcessor` which adds different types of exceptions to the schema, but since updating to netcore80 it is generating all base class properties in the result swagger.json file....