Skip to content

Commit c39b496

Browse files
authored
updating to merged swagger (Azure#24675)
1 parent 9ec66ae commit c39b496

File tree

1 file changed

+10
-10
lines changed
  • sdk/formrecognizer/Azure.AI.FormRecognizer/src

1 file changed

+10
-10
lines changed

sdk/formrecognizer/Azure.AI.FormRecognizer/src/autorest.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ directive:
125125
# Service V3 swagger
126126
``` yaml
127127
input-file:
128-
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
128+
- https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
129129
```
130130
131131
## Make generated models internal by default
132132
``` yaml
133133
directive:
134-
from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
134+
from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
135135
where: $.definitions.*
136136
transform: >
137137
$["x-accessibility"] = "internal";
@@ -141,7 +141,7 @@ directive:
141141
## Rename operationIds
142142
``` yaml
143143
directive:
144-
- from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
144+
- from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
145145
where: $.paths.*
146146
transform: >
147147
const prefix = "DocumentAnalysis_";
@@ -155,23 +155,23 @@ directive:
155155
## Rename duplicated types
156156
``` yaml
157157
directive:
158-
from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
158+
from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
159159
where: $.definitions.ModelInfo
160160
transform: >
161161
$["x-ms-client-name"] = "DocumentModel"
162162
```
163163
164164
``` yaml
165165
directive:
166-
from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
166+
from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
167167
where: $.definitions.ErrorResponse
168168
transform: >
169169
$["x-ms-client-name"] = "DocumentErrorResponse"
170170
```
171171
172172
``` yaml
173173
directive:
174-
- from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
174+
- from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
175175
where: $.definitions..properties.*
176176
transform: >
177177
if ($.enum && $["x-ms-enum"].name == "OperationStatus") {
@@ -184,15 +184,15 @@ directive:
184184
185185
``` yaml
186186
directive:
187-
- from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
187+
- from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
188188
where: $.definitions.DocumentPage.properties.unit
189189
transform: >
190190
$["x-ms-enum"].name = "V3LengthUnit";
191191
```
192192
193193
``` yaml
194194
directive:
195-
- from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
195+
- from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
196196
where: $.definitions.DocumentSelectionMarkState
197197
transform: >
198198
$["x-ms-enum"].name = "V3SelectionMarkState";
@@ -201,7 +201,7 @@ directive:
201201
## Make enums internal and in the right namespace
202202
``` yaml
203203
directive:
204-
- from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
204+
- from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
205205
where: $.definitions..properties.*
206206
transform: >
207207
if ($.enum) {
@@ -213,7 +213,7 @@ directive:
213213
## Rename QueryStringIndexType
214214
``` yaml
215215
directive:
216-
- from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9a29652e823340543b12ecbb79a07b289e4f83f4/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
216+
- from: https://github.com/Azure/azure-rest-api-specs/blob/5591f026048fc02859e612a3e4e08e8c286bd367/specification/cognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
217217
where: $.parameters.QueryStringIndexType
218218
transform: >
219219
$["x-namespace"] = "Azure.AI.FormRecognizer.DocumentAnalysis"

0 commit comments

Comments
 (0)