Skip to content

Commit 69ece38

Browse files
authored
[TypeSpec] Update autorest and azure-resoure-manager to 0.36.1 (#26719)
- [AzureOpenAI] Update generated swagger - [EventGrid] Update generated swagger, remove unneeded suppressions
1 parent e237298 commit 69ece38

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

cSpell.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,13 @@
953953
"words": [
954954
"Criterias"
955955
]
956+
},
957+
{
958+
"filename": "**/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/**/*.json",
959+
"words": [
960+
"flac",
961+
"mpga"
962+
]
956963
}
957964
],
958965
"enableFiletypes": [

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "azure-rest-api-specs",
33
"devDependencies": {
44
"@azure-tools/typespec-apiview": "0.4.4",
5-
"@azure-tools/typespec-autorest": "0.36.0",
5+
"@azure-tools/typespec-autorest": "0.36.1",
66
"@azure-tools/typespec-azure-core": "0.36.0",
7-
"@azure-tools/typespec-azure-resource-manager": "0.36.0",
7+
"@azure-tools/typespec-azure-resource-manager": "0.36.1",
88
"@azure-tools/typespec-client-generator-core": "0.36.0",
99
"@azure-tools/typespec-providerhub": "0.36.0",
1010
"@typespec/compiler": "0.50.0",

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-09-01-preview/generated.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,8 +2051,7 @@
20512051
"in": "formData",
20522052
"description": "The audio data to transcribe. This must be the binary content of a file in one of the supported media formats:\n flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.",
20532053
"required": true,
2054-
"type": "string",
2055-
"format": "byte",
2054+
"type": "file",
20562055
"x-ms-parameter-location": "method"
20572056
},
20582057
"AudioTranscriptionOptions.language": {
@@ -2140,8 +2139,7 @@
21402139
"in": "formData",
21412140
"description": "The audio data to translate. This must be the binary content of a file in one of the supported media formats:\n flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.",
21422141
"required": true,
2143-
"type": "string",
2144-
"format": "byte",
2142+
"type": "file",
21452143
"x-ms-parameter-location": "method"
21462144
},
21472145
"AudioTranslationOptions.model": {

specification/communication/data-plane/JobRouter/readme.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,6 @@ suppressions:
3737
reason: eTag should be an allowed format
3838
directive:
3939
- suppress: INVALID_TYPE
40-
41-
- suppress: OAV131 # DISCRIMINATOR_NOT_REQUIRED
42-
where:
43-
- $.definitions.DistributionModeCreateOrUpdate
44-
- $.definitions.JobMatchingModeCreateOrUpdate
45-
- $.definitions.RouterRuleCreateOrUpdate
46-
reason: TypeSpec generates optional discriminators (Azure/typespec-azure#3833)
47-
48-
- suppress: OAV132 # INVALID_DISCRIMINATOR_TYPE
49-
where:
50-
- $.definitions.DistributionModeCreateOrUpdate
51-
- $.definitions.JobMatchingModeCreateOrUpdate
52-
- $.definitions.RouterRuleCreateOrUpdate
53-
reason: False positive if discriminator is optional $ref (Azure/oav#1018)
5440
```
5541
5642
### Tag: package-jobrouter-2023-11-01

specification/communication/data-plane/JobRouter/stable/2023-11-01/communicationservicejobrouter.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,7 +2569,10 @@
25692569
"description": "The type discriminator describing a sub-type of DistributionMode."
25702570
}
25712571
},
2572-
"discriminator": "kind"
2572+
"discriminator": "kind",
2573+
"required": [
2574+
"kind"
2575+
]
25732576
},
25742577
"DistributionModeKind": {
25752578
"type": "string",
@@ -2960,7 +2963,10 @@
29602963
"description": "The type discriminator describing a sub-type of JobMatchingMode."
29612964
}
29622965
},
2963-
"discriminator": "kind"
2966+
"discriminator": "kind",
2967+
"required": [
2968+
"kind"
2969+
]
29642970
},
29652971
"JobMatchingModeKind": {
29662972
"type": "string",
@@ -3987,7 +3993,10 @@
39873993
"description": "The type discriminator describing a sub-type of RouterRule"
39883994
}
39893995
},
3990-
"discriminator": "kind"
3996+
"discriminator": "kind",
3997+
"required": [
3998+
"kind"
3999+
]
39914000
},
39924001
"RouterRuleKind": {
39934002
"type": "string",

0 commit comments

Comments
 (0)