Skip to content

Commit 08bbb7f

Browse files
authored
Add missing string static enrichment property to Azure Event Grid 2023-12-15-preview Swagger (#26613)
* First commit: Copy over latest event grid swagger for API version 2023-06-01-preview and use it as baseline for 2023-12-15-preview * Add new features for API Version 2023-12-15-preview * Address prettier issues + spelling check + add 2023-12-15-preview to readme files * Add missing example and some LintDiff * remove readonly property: * fix enum lintdiff issue * fix description * fix array x-ms-identifiers: [] * fix prettier check * fix more lindiff issues * fix lintdiff error * fix lindiff issues * fix example * Fix example * add suppressions for LintDiff as they are false positibe * add arm-id on array items for action group to fix sdk generation error * fix x-ms-arm-id for action group item * Add missing operation and its example file * fix prettier check * fix example * trigger tasks * Add missing string static enrichment property to 2023-12-15-preview * Add missing required
1 parent 2650283 commit 08bbb7f

File tree

1 file changed

+66
-21
lines changed
  • specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2023-12-15-preview

1 file changed

+66
-21
lines changed

specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2023-12-15-preview/EventGrid.json

Lines changed: 66 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7947,7 +7947,10 @@
79477947
}
79487948
},
79497949
"default": {
7950-
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
7950+
"description": "Error response returned if request was unsuccessful.",
7951+
"schema": {
7952+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
7953+
}
79517954
}
79527955
},
79537956
"x-ms-examples": {
@@ -8006,7 +8009,10 @@
80068009
"description": "NoContent"
80078010
},
80088011
"default": {
8009-
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
8012+
"description": "Error response returned if request was unsuccessful.",
8013+
"schema": {
8014+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8015+
}
80108016
}
80118017
},
80128018
"x-ms-examples": {
@@ -8071,7 +8077,10 @@
80718077
}
80728078
},
80738079
"default": {
8074-
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
8080+
"description": "Error response returned if request was unsuccessful.",
8081+
"schema": {
8082+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8083+
}
80758084
}
80768085
},
80778086
"x-ms-examples": {
@@ -8116,7 +8125,10 @@
81168125
}
81178126
},
81188127
"default": {
8119-
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
8128+
"description": "Error response returned if request was unsuccessful.",
8129+
"schema": {
8130+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8131+
}
81208132
}
81218133
},
81228134
"x-ms-examples": {
@@ -8170,7 +8182,10 @@
81708182
}
81718183
},
81728184
"default": {
8173-
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
8185+
"description": "Error response returned if request was unsuccessful.",
8186+
"schema": {
8187+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8188+
}
81748189
}
81758190
},
81768191
"x-ms-examples": {
@@ -8225,7 +8240,10 @@
82258240
}
82268241
},
82278242
"default": {
8228-
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
8243+
"description": "Error response returned if request was unsuccessful.",
8244+
"schema": {
8245+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8246+
}
82298247
}
82308248
},
82318249
"x-ms-examples": {
@@ -8288,7 +8306,10 @@
82888306
}
82898307
},
82908308
"default": {
8291-
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
8309+
"description": "Error response returned if request was unsuccessful.",
8310+
"schema": {
8311+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8312+
}
82928313
}
82938314
},
82948315
"x-ms-examples": {
@@ -15056,7 +15077,43 @@
1505615077
}
1505715078
}
1505815079
},
15080+
"DynamicRoutingEnrichment": {
15081+
"type": "object",
15082+
"properties": {
15083+
"key": {
15084+
"description": "Dynamic routing enrichment key.",
15085+
"type": "string"
15086+
},
15087+
"value": {
15088+
"description": "Dynamic routing enrichment value.",
15089+
"type": "string"
15090+
}
15091+
}
15092+
},
15093+
"StaticStringRoutingEnrichment": {
15094+
"type": "object",
15095+
"allOf": [
15096+
{
15097+
"$ref": "#/definitions/StaticRoutingEnrichment"
15098+
}
15099+
],
15100+
"properties": {
15101+
"value": {
15102+
"description": "String type routing enrichment value.",
15103+
"type": "string"
15104+
},
15105+
"key": {
15106+
"description": "Static routing enrichment key.",
15107+
"type": "string"
15108+
}
15109+
},
15110+
"x-ms-discriminator-value": "String"
15111+
},
1505915112
"StaticRoutingEnrichment": {
15113+
"description": "Static routing enrichment details.",
15114+
"required": [
15115+
"valueType"
15116+
],
1506015117
"type": "object",
1506115118
"properties": {
1506215119
"key": {
@@ -15074,20 +15131,8 @@
1507415131
"modelAsString": true
1507515132
}
1507615133
}
15077-
}
15078-
},
15079-
"DynamicRoutingEnrichment": {
15080-
"type": "object",
15081-
"properties": {
15082-
"key": {
15083-
"description": "Dynamic routing enrichment key.",
15084-
"type": "string"
15085-
},
15086-
"value": {
15087-
"description": "Dynamic routing enrichment value.",
15088-
"type": "string"
15089-
}
15090-
}
15134+
},
15135+
"discriminator": "valueType"
1509115136
},
1509215137
"Namespace": {
1509315138
"description": "Namespace resource.",

0 commit comments

Comments
 (0)