Skip to content

Commit c673da8

Browse files
author
Shrisha Kumar
committed
Fixing cyclic dependencies
1 parent c28cdeb commit c673da8

File tree

1 file changed

+56
-49
lines changed

1 file changed

+56
-49
lines changed

schemas/2021-09-09/uiFormDefinition.schema.json

Lines changed: 56 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,16 @@
379379
]
380380
},
381381
"formControls": {
382+
"oneOf": [
383+
{
384+
"$ref": "#/definitions/formControlsWithoutSection"
385+
},
386+
{
387+
"$ref": "#/definitions/Microsoft.Common.Section"
388+
}
389+
]
390+
},
391+
"formControlsWithoutSection": {
382392
"oneOf": [
383393
{
384394
"$ref": "#/definitions/Microsoft.Common.CheckBox"
@@ -407,9 +417,6 @@
407417
{
408418
"$ref": "#/definitions/Microsoft.Common.ResourceScope"
409419
},
410-
{
411-
"$ref": "#/definitions/Microsoft.Common.Section"
412-
},
413420
{
414421
"$ref": "#/definitions/Microsoft.Common.Selector"
415422
},
@@ -1898,52 +1905,6 @@
18981905
},
18991906
"additionalProperties": false
19001907
},
1901-
"Microsoft.Common.Section": {
1902-
"type": "object",
1903-
"properties": {
1904-
"name": {
1905-
"type": "string"
1906-
},
1907-
"type": {
1908-
"type": "string",
1909-
"enum": [
1910-
"Microsoft.Common.Section"
1911-
]
1912-
},
1913-
"label": {
1914-
"$ref": "#/definitions/stringResource"
1915-
},
1916-
"elements": {
1917-
"type": "array",
1918-
"items": {
1919-
"allOf": [
1920-
{
1921-
"$ref": "#/definitions/formControls"
1922-
},
1923-
{
1924-
"not": {
1925-
"$ref": "#/definitions/Microsoft.Common.Section"
1926-
}
1927-
}
1928-
]
1929-
},
1930-
"minItems": 1
1931-
},
1932-
"visible": {
1933-
"type": [
1934-
"boolean",
1935-
"string"
1936-
]
1937-
}
1938-
},
1939-
"additionalProperties": false,
1940-
"required": [
1941-
"name",
1942-
"type",
1943-
"label",
1944-
"elements"
1945-
]
1946-
},
19471908
"Microsoft.Common.Selector": {
19481909
"type": "object",
19491910
"properties": {
@@ -3879,6 +3840,52 @@
38793840
}
38803841
]
38813842
},
3843+
"Microsoft.Common.Section": {
3844+
"type": "object",
3845+
"properties": {
3846+
"name": {
3847+
"type": "string"
3848+
},
3849+
"type": {
3850+
"type": "string",
3851+
"enum": [
3852+
"Microsoft.Common.Section"
3853+
]
3854+
},
3855+
"label": {
3856+
"$ref": "#/definitions/stringResource"
3857+
},
3858+
"elements": {
3859+
"type": "array",
3860+
"items": {
3861+
"allOf": [
3862+
{
3863+
"$ref": "#/definitions/formControlsWithoutSection"
3864+
},
3865+
{
3866+
"not": {
3867+
"$ref": "#/definitions/Microsoft.Common.Section"
3868+
}
3869+
}
3870+
]
3871+
},
3872+
"minItems": 1
3873+
},
3874+
"visible": {
3875+
"type": [
3876+
"boolean",
3877+
"string"
3878+
]
3879+
}
3880+
},
3881+
"additionalProperties": false,
3882+
"required": [
3883+
"name",
3884+
"type",
3885+
"label",
3886+
"elements"
3887+
]
3888+
},
38823889
"formControlsWithoutResourceScope": {
38833890
"allOf": [
38843891
{

0 commit comments

Comments
 (0)