diff options
author | Christian Westberg <cwe@dixa.com> | 2022-12-22 09:39:48 +0100 |
---|---|---|
committer | Jens Geyer <Jens-G@users.noreply.github.com> | 2023-01-16 22:37:17 +0100 |
commit | f223bd3b54d04c21289d806c7f51b115757703e7 (patch) | |
tree | c7161d8e1dbc3be3434b0844cac96e3e749e1e32 /lib | |
parent | b39370ec3bc96d201bbc82fbde136f98ae605ed1 (diff) | |
download | thrift-f223bd3b54d04c21289d806c7f51b115757703e7.tar.gz |
Improve enum support for json generator
Client: [json]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/json/schema.json | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/json/schema.json b/lib/json/schema.json index 90bb7a59d..f7b10dff4 100644 --- a/lib/json/schema.json +++ b/lib/json/schema.json @@ -23,7 +23,8 @@ "union", "struct", "binary", - "uuid" + "uuid", + "enum" ] }, "base-type": { @@ -67,7 +68,7 @@ "type": "object", "properties": { "typeId": { - "enum": [ "union", "struct", "exception" ] + "enum": [ "union", "struct", "exception", "enum" ] } }, "required": [ "typeId", "class" ] |