-
-
Notifications
You must be signed in to change notification settings - Fork 538
Home
Rico Suter edited this page Jun 24, 2019
·
49 revisions
Roadmap | SDK Development | Contribute
Most of the documentation also applies for DTO schemas in OpenAPI/Swagger documents generated with NSwag.
NuGet Package: NJsonSchema
- JsonSchema: Read, modify and write JSON Schemas
- JsonSchemaValidator: If you need more control over the validation process
NuGet Package: NJsonSchema
- JsonSchemaGenerator: Generate JSON Schemas from .NET Types via Reflection.
- SampleJsonSchemaGenerator: Generate JSON Schemas from sample JSON data
Topics:
- Enums: Control string and integer handling.
- XML Documentation: Loading C# code documentation.
- Inheritance with Swagger or OpenAPI discriminators.
- Custom Schema Properties: Add custom properties to the generated JSON objects (e.g. "x-documentation-link").
- Type Mappers: Type mappers allow you to generate a custom JSON Schema for a given .NET type.
- Schema Processors: Post process the generation of the schema or child schemas.
- Value Generators: Converts JSON Schema default values to C# or TypeScript specific values
NuGet Packages: NJsonSchema.CodeGeneration
- Property Name Generators: Customize the names of property names.
- Schema Name Generators: Customize the names of schema 'definitions' keys.
- Type Name Generators: Customize the way how C#/TypeScript class or interface names are generated.
- Templates: Modify or extend the code generator templates.