RicoSuter/NJsonSchema

Support of const keyword

Aperta

#1329 aperta il 26 feb 2021

 (4 commenti) (4 reazioni) (2 assegnatari)C# (549 fork)github user discovery
help wantedtype: enhancement

Metriche repository

Star
 (1581 stelle)
Metriche merge PR
 (Merge medio 39g 6h) (1 PR mergiata in 30 g)

Descrizione

I'm not a Json schema deep diver, but somehow I miss support for the const keyword (at least for C# code generation):

{ "title": "Person", "type": "object", "properties": { "cmdType": { "$comment": "This results in a string template literal when generating TS", "const": "person" }, ... }

Guida contributor