Skip to content
Rico Suter edited this page Jul 18, 2016 · 26 revisions

The enums in JSON Schema are only used to validate JSON data. This is why you can only define the enum values but not their names. NJsonSchema adds the x-enumNames property to the schema so that the enum value names are also available to the consumer. These names is required to generate meaningful code (CSharp or TypeScript).

Enums in CSharp

TODO

Enums in TypeScript

TODO

Clone this wiki locally