Skip to content

Commit ae390a6

Browse files
feat(Dofigen): Update Schema (#4660)
* feat(Dofigen): Update Schema * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1c2650a commit ae390a6

File tree

1 file changed

+50
-2
lines changed

1 file changed

+50
-2
lines changed

src/schemas/json/dofigen.json

+50-2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@
140140
}
141141
]
142142
},
143+
"label": {
144+
"anyOf": [
145+
{
146+
"$ref": "#/definitions/NestedMap_for_String"
147+
},
148+
{
149+
"type": "null"
150+
}
151+
]
152+
},
143153
"root": {
144154
"anyOf": [
145155
{
@@ -170,7 +180,24 @@
170180
"user": {
171181
"anyOf": [
172182
{
173-
"$ref": "#/definitions/ParsableStruct<User>"
183+
"anyOf": [
184+
{
185+
"$ref": "#/definitions/ParsableStruct<User>"
186+
},
187+
{
188+
"type": "null"
189+
}
190+
]
191+
},
192+
{
193+
"type": "null"
194+
}
195+
]
196+
},
197+
"volume": {
198+
"anyOf": [
199+
{
200+
"$ref": "#/definitions/VecPatch<String>"
174201
},
175202
{
176203
"type": "null"
@@ -492,7 +519,8 @@
492519
"default": null,
493520
"type": ["string", "null"]
494521
}
495-
}
522+
},
523+
"additionalProperties": false
496524
},
497525
"CopyResourcePatch": {
498526
"anyOf": [
@@ -605,6 +633,26 @@
605633
}
606634
}
607635
},
636+
"NestedMapValue_for_String": {
637+
"anyOf": [
638+
{
639+
"type": "string"
640+
},
641+
{
642+
"$ref": "#/definitions/NestedMap_for_String"
643+
},
644+
{
645+
"type": "null"
646+
}
647+
]
648+
},
649+
"NestedMap_for_String": {
650+
"description": "A multilevel key map",
651+
"type": "object",
652+
"additionalProperties": {
653+
"$ref": "#/definitions/NestedMapValue_for_String"
654+
}
655+
},
608656
"OneOrMany<Resource>": {
609657
"title": "OneOrMany<Resource>",
610658
"oneOf": [

0 commit comments

Comments
 (0)