NJsonSchema
NJsonSchema copied to clipboard
JSON Schema reader, generator and validator for .NET
When a registering a collection is skipped due to an `.InlineNamed*` setting. (eg because this test failed https://github.com/RicoSuter/NJsonSchema/blob/e045ae82b55d4e8ae9f6690a27d907c699e3c9ee/src/NJsonSchema.CodeGeneration/TypeResolverBase.cs#L76) And the elements within that type are defined inline, with no title...
I have generated swagger.json with minLength, format, pattern attributes picked from System.ComponentModel.DataAnnotations `` "Name": { "title": "Your name:", "type": "string", "description": "Name.", "maxLength": 30, "minLength": 3 }, "Email": { "title":...
Hi, The schema below is not parsed. Am I doing something wrong? Regards Code: var generator = new CSharpGenerator(jsonSchema); string classStr = generator.GenerateFile(); Schema: { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties":...
In JSON Schema/Swagger/OpenAPI you cannot define generics or templates, see: https://github.com/OAI/OpenAPI-Specification/issues/957 This is a proposal how to implement generics with custom extensions. Define a schema with generic parameters: ``` {...
Is there any plan to support [Fluent Validation](https://fluentvalidation.net/) to define the validation rules instead of data annotation attributes?
This fixes a problem, that multiple same-named types was generated and only the first wins. Thats when a illegal character was removed. The reserved list was comparing to the type...
This fixes a bug that has been found using both NSwag and NJsonSchema. Essentially when `GenerateNullableReferenceTypes` and `GenerateOptionalPropertiesAsNullable` are both true, these settings are not respected for an optional object...
Hi, this is likely just a misunderstanding on my part, but I've noticed that my custom ISchemaProcessor is invoked before the rest of the schema is generated, so in some...
**Description** When **JSON data** is put in the following format: ``` { "item": [ { "name": "Get Weekly Report in XML", "request": { "body": { "mode": "raw", "raw": "{JSON DATE...