Skip to content

Commit

Permalink
CodeGen from PR 17434 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d1cf8d84428b34cdada209a0211275614c977aed into ef8fa4f2f1b85ca6ed05a23b25968b4fc97e3e90
  • Loading branch information
SDKAuto committed Jan 25, 2022
1 parent 3201cb3 commit d6933f8
Showing 1 changed file with 12 additions and 12 deletions.
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

0 comments on commit d6933f8

Please sign in to comment.