RicoSuter/NJsonSchema

Support of const keyword

オープン

#1,329 opened on 2021/02/26

 (4 件のコメント) (4 件のリアクション) (2 人の担当者)C# (549 件のフォーク)github user discovery
help wantedtype: enhancement

Repository metrics

Stars
 (1,581 個のスター)
PR merge metrics
 (平均マージ 39d 6h) (30d で 1 merged PR)

説明

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

コントリビューターガイド