Skip to content

Commit 3ac7617

Browse files
author
SDKAuto
committed
CodeGen from PR 15377 in Azure/azure-rest-api-specs
Spec fixed to reflect new examples property (#15377) * Spec fixed to reflect new examples property * Prettier * suppressing incorrect warning
1 parent ee051bb commit 3ac7617

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

schemas/2021-01-01-preview/Microsoft.ApiManagement.json

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4865,6 +4865,21 @@
48654865
"type": "string",
48664866
"description": "Parameter description."
48674867
},
4868+
"examples": {
4869+
"oneOf": [
4870+
{
4871+
"type": "object",
4872+
"additionalProperties": {
4873+
"$ref": "#/definitions/ParameterExampleContract"
4874+
},
4875+
"properties": {}
4876+
},
4877+
{
4878+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
4879+
}
4880+
],
4881+
"description": "Parameter examples."
4882+
},
48684883
"name": {
48694884
"type": "string",
48704885
"description": "Parameter name."
@@ -4913,6 +4928,29 @@
49134928
],
49144929
"description": "Operation parameters details."
49154930
},
4931+
"ParameterExampleContract": {
4932+
"type": "object",
4933+
"properties": {
4934+
"description": {
4935+
"type": "string",
4936+
"description": "Long description for the example"
4937+
},
4938+
"externalValue": {
4939+
"type": "string",
4940+
"description": "A URL that points to the literal example"
4941+
},
4942+
"summary": {
4943+
"type": "string",
4944+
"description": "Short description for the example"
4945+
},
4946+
"value": {
4947+
"type": "object",
4948+
"properties": {},
4949+
"description": "Example value. May be a primitive value, or an object."
4950+
}
4951+
},
4952+
"description": "Parameter example."
4953+
},
49164954
"PipelineDiagnosticSettings": {
49174955
"type": "object",
49184956
"properties": {
@@ -5184,10 +5222,6 @@
51845222
],
51855223
"description": "Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'.."
51865224
},
5187-
"sample": {
5188-
"type": "string",
5189-
"description": "An example of the representation."
5190-
},
51915225
"schemaId": {
51925226
"type": "string",
51935227
"description": "Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'."

0 commit comments

Comments
 (0)