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

[AutoPR Azure.AI.FormRecognizer] Users/togoldsh/sync main 20 01 2022 #7200

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all 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
24 changes: 12 additions & 12 deletions sdk/formrecognizer/Azure.AI.FormRecognizer/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Run `dotnet build /t:GenerateCode` to generate code. Notice how there are two ma

``` yaml
input-file:
- https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
- https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
modelerfour:
seal-single-value-enum-by-default: true
```
Expand All @@ -20,7 +20,7 @@ modelerfour:

``` yaml
directive:
- from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
- from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $["x-ms-parameterized-host"]
transform: >
$.hostTemplate = "{endpoint}/formrecognizer/{apiVersion}";
Expand All @@ -39,7 +39,7 @@ directive:
This is a temporary work-around
``` yaml
directive:
- from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
- from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.AnalyzeResult
transform: $.required = ["version"];
```
Expand All @@ -48,7 +48,7 @@ directive:

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.AnalyzeResult
transform: >
$.properties.readResults["x-nullable"] = true;
Expand All @@ -58,23 +58,23 @@ directive:

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.ReadResult
transform: >
$.properties.selectionMarks["x-nullable"] = true;
```

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.AnalyzeOperationResult
transform: >
$.properties.analyzeResult["x-nullable"] = true;
```

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.KeyValueElement
transform: >
$.properties.boundingBox["x-nullable"] = true;
Expand All @@ -83,23 +83,23 @@ directive:

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.PageResult
transform: >
$.properties.clusterId["x-nullable"] = true;
```

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.DocumentResult
transform: >
$.properties.fields.additionalProperties["x-nullable"] = true;
```

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.FieldValue
transform: >
$.properties.valueObject.additionalProperties["x-nullable"] = true;
Expand All @@ -108,7 +108,7 @@ directive:
## Rename duplicated types
``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.AnalyzeResult
transform: >
$["x-ms-client-name"] = "V2AnalyzeResult"
Expand All @@ -118,7 +118,7 @@ directive:

``` yaml
directive:
from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json
where: $.definitions.*
transform: >
$["x-accessibility"] = "internal"
Expand Down