RicoSuter/NJsonSchema

Support of const keyword

Open

#1329 aperta il 26 feb 2021

Vedi su GitHub
 (4 commenti) (4 reazioni) (2 assegnatari)C# (550 fork)github user discovery
help wantedtype: enhancement

Metriche repository

Star
 (1578 star)
Metriche merge PR
 (Nessuna 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