Skip to content

Commit f7565bc

Browse files
stevemunkmikeharderFarazGIS
authored
Moved swaggers from preview directory to stable directory (Azure#37469)
* Moved swaggers from preview directory to stable directory since they are stable versions. Removed unused/unpublished or retired swaggers. * updated reference to render v1. * Traffic/stable/1.0 * Added suppression: IntegerTypeMustHaveFormat * Added suppression: OperationIdNounVerb. Fixing this risks introducing breaking changes. * Added suppression: XmsEnumValidation for Search v1.0. Fixing this risks introducing breaking changes. * Fixed suppression * Added back Route service v2023-10-01-preview * Updated suppressions for TypeSpec errors to point to swaggers in stable dir. --------- Co-authored-by: Mike Harder <mharder@microsoft.com> Co-authored-by: Faraz Siddiqui <124096851+FarazGIS@users.noreply.github.com>
1 parent c560144 commit f7565bc

File tree

96 files changed

+63
-16396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+63
-16396
lines changed

specification/maps/data-plane/Geolocation/readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ credential-default-policy-type: BearerTokenCredentialPolicy
3434
credential-scopes: https://atlas.microsoft.com/.default
3535
```
3636
37-
3837
### Tag: package-stable-1.0
3938
4039
These settings apply only when `--tag=package-stable-1.0` is specified on the command line.
4140

4241
``` yaml $(tag) == 'package-stable-1.0'
4342
input-file:
44-
- preview/1.0/geolocation.json
43+
- stable/1.0/geolocation.json
4544
```
4645

4746
# Code Generation

specification/maps/data-plane/Geolocation/preview/1.0/examples/SuccessfulGetCountryCodeFromIP.json renamed to specification/maps/data-plane/Geolocation/stable/1.0/examples/SuccessfulGetCountryCodeFromIP.json

File renamed without changes.

specification/maps/data-plane/Geolocation/preview/1.0/geolocation.json renamed to specification/maps/data-plane/Geolocation/stable/1.0/geolocation.json

File renamed without changes.

specification/maps/data-plane/Render/readme.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ modelerfour:
4747
directive:
4848
- suppress: INVALID_TYPE
4949
reason: false positive from oav is breaking our example validation. See azure/oav#1021.
50-
```
5150

51+
- suppress: IntegerTypeMustHaveFormat
52+
reason: Data-plane specs can suppress violations of this rule, since it only exists for the benefit of SDKs generated from swagger, and data-plane SDKs are generated directly from TypeSpec (https://github.com/Azure/azure-rest-api-specs/wiki/Swagger-LintDiff#integertypemusthaveformat).
53+
```
5254
5355
### Tag: package-stable-2024-04-01
5456
@@ -58,6 +60,7 @@ These settings apply only when `--tag=package-stable-2024-04-01` is specified on
5860
input-file:
5961
- stable/2024-04-01/render.json
6062
```
63+
6164
### Tag: package-stable-2022-08-01
6265

6366
These settings apply only when `--tag=package-stable-2022-08-01` is specified on the command line.
@@ -73,7 +76,7 @@ These settings apply only when `--tag=package-stable-2.1` is specified on the co
7376

7477
``` yaml $(tag) == 'package-stable-2.1'
7578
input-file:
76-
- preview/2.1/render.json
79+
- stable/2.1/render.json
7780
```
7881

7982
### Tag: package-stable-2.0
@@ -82,7 +85,7 @@ These settings apply only when `--tag=package-stable-2.0` is specified on the co
8285

8386
``` yaml $(tag) == 'package-stable-2.0'
8487
input-file:
85-
- preview/2.0/render.json
88+
- stable/2.0/render.json
8689
```
8790

8891
### Tag: package-deprecated-1.0

specification/maps/data-plane/Render/preview/2.0/examples/SuccessfulTileRequest.json renamed to specification/maps/data-plane/Render/stable/2.0/examples/SuccessfulTileRequest.json

File renamed without changes.

specification/maps/data-plane/Render/preview/2.0/render.json renamed to specification/maps/data-plane/Render/stable/2.0/render.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
"format": "date-time"
235235
},
236236
{
237-
"$ref": "../1.0/render.json#/parameters/MapTileSize"
237+
"$ref": "../../preview/1.0/render.json#/parameters/MapTileSize"
238238
},
239239
{
240240
"$ref": "../../../Common/preview/1.0/common.json#/parameters/Language"

specification/maps/data-plane/Render/preview/2.1/examples/SuccessfulAttributionRequest.json renamed to specification/maps/data-plane/Render/stable/2.1/examples/SuccessfulAttributionRequest.json

File renamed without changes.

specification/maps/data-plane/Render/preview/2.1/examples/SuccessfulBoundingBoxCopyrightRequest.json renamed to specification/maps/data-plane/Render/stable/2.1/examples/SuccessfulBoundingBoxCopyrightRequest.json

File renamed without changes.

specification/maps/data-plane/Render/preview/2.1/examples/SuccessfulCopyrightCaptionRequest.json renamed to specification/maps/data-plane/Render/stable/2.1/examples/SuccessfulCopyrightCaptionRequest.json

File renamed without changes.

specification/maps/data-plane/Render/preview/2.1/examples/SuccessfulStateTileRequest.json renamed to specification/maps/data-plane/Render/stable/2.1/examples/SuccessfulStateTileRequest.json

File renamed without changes.

0 commit comments

Comments
 (0)