RicoSuter/NJsonSchema

Support of const keyword

Open

#1.329 aberto em 26 de fev. de 2021

Ver no GitHub
 (4 comments) (4 reactions) (2 assignees)C# (550 forks)github user discovery
help wantedtype: enhancement

Métricas do repositório

Stars
 (1.578 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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" }, ... }

Guia do colaborador