Handle recursive hashes (#621)
This fixes the generator for cases where one of the entries of the "schemas" object returned by the Discovery service is a recursively defined map. Fixes #608
This commit is contained in:
1 parent
f4e89a556a
commit
6e2276cb80
3 files changed
+56
-4
No files matched your search
Vendored
+46
@@ -90,6 +90,9 @@
|
||||
"hat": {
|
||||
"$ref": "Hat"
|
||||
},
|
||||
"recursiveHat": {
|
||||
"$ref": "RecursiveHat"
|
||||
},
|
||||
"properties": {
|
||||
"$ref": "HashLikeThing"
|
||||
},
|
||||
@@ -131,6 +134,49 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"RecursiveHat": {
|
||||
"id": "RecursiveHat",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"bool": {
|
||||
"type": "boolean",
|
||||
"description": "The bool value."
|
||||
},
|
||||
"double": {
|
||||
"type": "number",
|
||||
"description": "The double value.",
|
||||
"format": "double"
|
||||
},
|
||||
"image": {
|
||||
"$ref": "Image",
|
||||
"description": "The image value."
|
||||
},
|
||||
"int": {
|
||||
"type": "integer",
|
||||
"description": "The int value.",
|
||||
"format": "int32"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The kind, fixed to \"test#recursiveHat\".",
|
||||
"default": "test#recursiveHat"
|
||||
},
|
||||
"list": {
|
||||
"type": "array",
|
||||
"description": "The list of typed values.",
|
||||
"items": {
|
||||
"$ref": "RecursiveHat"
|
||||
}
|
||||
},
|
||||
"string": {
|
||||
"type": "string",
|
||||
"description": "The string value."
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "RecursiveHat"
|
||||
}
|
||||
},
|
||||
"TopHat": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user