Skip to content

Commit ecffe62

Browse files
authored
[VS Code] Update schema to support 'format' enums everywhere (microsoft#320)
1 parent d340b5b commit ecffe62

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

schemas/apiDefinition.swagger.schema.json

+27-27
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@
503503
]
504504
},
505505
"format": {
506-
"type": "string"
506+
"$ref": "#/definitions/format"
507507
},
508508
"items": {
509509
"$ref": "#/definitions/primitivesItems"
@@ -664,7 +664,7 @@
664664
]
665665
},
666666
"format": {
667-
"type": "string"
667+
"$ref": "#/definitions/format"
668668
},
669669
"items": {
670670
"$ref": "#/definitions/primitivesItems"
@@ -784,7 +784,7 @@
784784
]
785785
},
786786
"format": {
787-
"type": "string"
787+
"$ref": "#/definitions/format"
788788
},
789789
"items": {
790790
"$ref": "#/definitions/primitivesItems"
@@ -911,7 +911,7 @@
911911
]
912912
},
913913
"format": {
914-
"type": "string"
914+
"$ref": "#/definitions/format"
915915
},
916916
"items": {
917917
"$ref": "#/definitions/primitivesItems"
@@ -1031,7 +1031,7 @@
10311031
]
10321032
},
10331033
"format": {
1034-
"type": "string"
1034+
"$ref": "#/definitions/format"
10351035
},
10361036
"items": {
10371037
"$ref": "#/definitions/primitivesItems"
@@ -1161,24 +1161,7 @@
11611161
"$ref": "#/definitions/$ref"
11621162
},
11631163
"format": {
1164-
"description": "Swagger data types plus some Power Platform extensions:\n- `date-no-tz` - Represents an date-time that has no time-offset (ABNF: `full-date 'T' partial-time`).\n- `html` - Tells clients to emit html editor when editing and html viewer when viewing.",
1165-
"type": "string",
1166-
"enum": [
1167-
"int32",
1168-
"int64",
1169-
"float",
1170-
"double",
1171-
"byte",
1172-
"binary",
1173-
"date",
1174-
"date-time",
1175-
"password",
1176-
"date-no-tz",
1177-
"email",
1178-
"html",
1179-
"uri",
1180-
"uuid"
1181-
]
1164+
"$ref": "#/definitions/format"
11821165
},
11831166
"title": {
11841167
"$ref": "http://json-schema.org/draft-04/schema#/properties/title"
@@ -1512,9 +1495,6 @@
15121495
"type"
15131496
],
15141497
"properties": {
1515-
"format": {
1516-
"type": "string"
1517-
},
15181498
"title": {
15191499
"$ref": "http://json-schema.org/draft-04/schema#/properties/title"
15201500
},
@@ -1559,7 +1539,7 @@
15591539
]
15601540
},
15611541
"format": {
1562-
"type": "string"
1542+
"$ref": "#/definitions/format"
15631543
},
15641544
"items": {
15651545
"$ref": "#/definitions/primitivesItems"
@@ -1613,6 +1593,26 @@
16131593
}
16141594
}
16151595
},
1596+
"format": {
1597+
"description": "Swagger data types plus some Power Platform extensions:\n- `date-no-tz` - Represents an date-time that has no time-offset (ABNF: `full-date 'T' partial-time`).\n- `html` - Tells clients to emit html editor when editing and html viewer when viewing.",
1598+
"type": "string",
1599+
"enum": [
1600+
"int32",
1601+
"int64",
1602+
"float",
1603+
"double",
1604+
"byte",
1605+
"binary",
1606+
"date",
1607+
"date-time",
1608+
"password",
1609+
"date-no-tz",
1610+
"email",
1611+
"html",
1612+
"uri",
1613+
"uuid"
1614+
]
1615+
},
16161616
"security": {
16171617
"type": "array",
16181618
"items": {

0 commit comments

Comments
 (0)