Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating autorest to emit response headers in lexicographic order #414

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: fix
packages:
- "@azure-tools/typespec-autorest"
---

updating autorest to emit response headers in lexicographic order
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@
"$ref": "#/definitions/Manufacturer"
},
"headers": {
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"Repeatability-Result": {
"type": "string",
"description": "Indicates whether the repeatable request was accepted or rejected.",
Expand All @@ -203,10 +207,6 @@
]
}
},
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"x-ms-client-request-id": {
"type": "string",
"format": "uuid",
Expand All @@ -220,6 +220,10 @@
"$ref": "#/definitions/Manufacturer"
},
"headers": {
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"Repeatability-Result": {
"type": "string",
"description": "Indicates whether the repeatable request was accepted or rejected.",
Expand All @@ -244,10 +248,6 @@
]
}
},
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"x-ms-client-request-id": {
"type": "string",
"format": "uuid",
Expand Down Expand Up @@ -674,6 +674,15 @@
"$ref": "#/definitions/Widget"
},
"headers": {
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
},
"Repeatability-Result": {
"type": "string",
"description": "Indicates whether the repeatable request was accepted or rejected.",
Expand All @@ -698,19 +707,10 @@
]
}
},
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"x-ms-client-request-id": {
"type": "string",
"format": "uuid",
"description": "An opaque, globally-unique, client-generated string identifier for the request."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
}
}
},
Expand All @@ -720,6 +720,15 @@
"$ref": "#/definitions/Widget"
},
"headers": {
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
},
"Repeatability-Result": {
"type": "string",
"description": "Indicates whether the repeatable request was accepted or rejected.",
Expand All @@ -744,19 +753,10 @@
]
}
},
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"x-ms-client-request-id": {
"type": "string",
"format": "uuid",
"description": "An opaque, globally-unique, client-generated string identifier for the request."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ paths:
'200':
description: The request has succeeded.
headers:
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
ETag:
required: false
description: The entity tag for the response.
schema:
type: string
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
Expand All @@ -81,16 +81,16 @@ paths:
'201':
description: The request has succeeded and a new resource has been created as a result.
headers:
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
ETag:
required: false
description: The entity tag for the response.
schema:
type: string
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
Expand Down Expand Up @@ -388,55 +388,55 @@ paths:
'200':
description: The request has succeeded.
headers:
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
ETag:
required: false
description: The entity tag for the response.
schema:
type: string
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
Operation-Location:
required: true
description: The location for monitoring the operation state.
schema:
type: string
format: uri
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
content:
application/json:
schema:
$ref: '#/components/schemas/Widget'
'201':
description: The request has succeeded and a new resource has been created as a result.
headers:
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
ETag:
required: false
description: The entity tag for the response.
schema:
type: string
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
Operation-Location:
required: true
description: The location for monitoring the operation state.
schema:
type: string
format: uri
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
content:
application/json:
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@
"$ref": "#/definitions/Widget"
},
"headers": {
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
},
"Repeatability-Result": {
"type": "string",
"description": "Indicates whether the repeatable request was accepted or rejected.",
Expand All @@ -206,19 +215,10 @@
]
}
},
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"x-ms-client-request-id": {
"type": "string",
"format": "uuid",
"description": "An opaque, globally-unique, client-generated string identifier for the request."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
}
}
},
Expand All @@ -228,6 +228,15 @@
"$ref": "#/definitions/Widget"
},
"headers": {
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
},
"Repeatability-Result": {
"type": "string",
"description": "Indicates whether the repeatable request was accepted or rejected.",
Expand All @@ -252,19 +261,10 @@
]
}
},
"ETag": {
"type": "string",
"description": "The entity tag for the response."
},
"x-ms-client-request-id": {
"type": "string",
"format": "uuid",
"description": "An opaque, globally-unique, client-generated string identifier for the request."
},
"Operation-Location": {
"type": "string",
"format": "uri",
"description": "The location for monitoring the operation state."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,55 +57,55 @@ paths:
'200':
description: The request has succeeded.
headers:
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
ETag:
required: false
description: The entity tag for the response.
schema:
type: string
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
Operation-Location:
required: true
description: The location for monitoring the operation state.
schema:
type: string
format: uri
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
content:
application/json:
schema:
$ref: '#/components/schemas/Widget'
'201':
description: The request has succeeded and a new resource has been created as a result.
headers:
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
ETag:
required: false
description: The entity tag for the response.
schema:
type: string
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
Operation-Location:
required: true
description: The location for monitoring the operation state.
schema:
type: string
format: uri
Repeatability-Result:
required: false
description: Indicates whether the repeatable request was accepted or rejected.
schema:
$ref: '#/components/schemas/RepeatabilityResult'
x-ms-client-request-id:
required: false
description: An opaque, globally-unique, client-generated string identifier for the request.
schema:
$ref: '#/components/schemas/Azure.Core.uuid'
content:
application/json:
schema:
Expand Down
Loading
Loading