Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: deprecation
packages:
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-autorest-canonical"
---

Deprecate `azure-resource-provider-folder` option.

```diff lang=yaml
-azure-resource-provider-folder: "resource-manager"
-output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
+output-file: "resource-manager/{service-name}/{version-status}/{version}/openapi.json"
```
1 change: 0 additions & 1 deletion eng/feeds/__snapshots__/azure-arm/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ options:
"@azure-tools/typespec-autorest":
use-read-only-status-schema: true
emitter-output-dir: "{project-root}"
azure-resource-provider-folder: "resource-manager"
output-file: "{emitter-output-dir}/{version-status}/{version}/widget.json"
arm-types-dir: "{project-root}/../../../../common-types/resource-management"
"@azure-tools/typespec-csharp":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ emit:
options:
"@azure-tools/typespec-autorest":
use-read-only-status-schema: true
azure-resource-provider-folder: "resource-manager"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
output-file: "resource-manager/{service-name}/{version-status}/{version}/openapi.json"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
3 changes: 1 addition & 2 deletions eng/feeds/__snapshots__/azure-core/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
emitter-output-dir: "{project-root}/.."
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
output-file: "data-plane/{service-name}/{version-status}/{version}/openapi.json"
"@azure-tools/typespec-python":
emitter-output-dir: "{output-dir}/{service-dir}/azure-contoso"
namespace: "azure.contoso"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
output-file: "data-plane/{service-name}/{version-status}/{version}/openapi.json"
"@azure-tools/typespec-python":
emitter-output-dir: "{output-dir}/{service-dir}/azure-contoso"
namespace: azure.contoso
Expand Down
4 changes: 1 addition & 3 deletions eng/feeds/arm-canonical/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ options:
"@azure-tools/typespec-autorest":
use-read-only-status-schema: true
emitter-output-dir: "{project-root}"
azure-resource-provider-folder: "resource-manager"
output-file: "{emitter-output-dir}/{version-status}/{version}/widget.json"
arm-types-dir: "{project-root}/../../../../common-types/resource-management"
"@azure-tools/typespec-autorest-canonical":
emitter-output-dir: "{project-root}/.."
azure-resource-provider-folder: "resource-manager"
output-file: "{azure-resource-provider-folder}/{service-name}/canonical/openapi.json"
output-file: "{emitter-output-dir}/canonical/openapi.json"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
1 change: 0 additions & 1 deletion eng/feeds/arm/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ options:
"@azure-tools/typespec-autorest":
use-read-only-status-schema: true
emitter-output-dir: "{project-root}"
azure-resource-provider-folder: "resource-manager"
output-file: "{emitter-output-dir}/{version-status}/{version}/widget.json"
arm-types-dir: "{project-root}/../../../../common-types/resource-management"
"@azure-tools/typespec-csharp":
Expand Down
3 changes: 1 addition & 2 deletions eng/feeds/arm/tspconfig_stand_alone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ emit:
options:
"@azure-tools/typespec-autorest":
use-read-only-status-schema: true
azure-resource-provider-folder: "resource-manager"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
output-file: "resource-manager/{service-name}/{version-status}/{version}/openapi.json"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
5 changes: 2 additions & 3 deletions eng/feeds/data-plane/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
emitter-output-dir: "{project-root}/.."
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
emitter-output-dir: "{project-root}"
output-file: "{emitter-output-dir}/{version-status}/{version}/openapi.json"
"@azure-tools/typespec-python":
emitter-output-dir: "{output-dir}/{service-dir}/{{#normalizePackageName}}{{parameters.ServiceNamespace}}{{/normalizePackageName}}"
namespace: "{{#toLowerCase}}{{parameters.ServiceNamespace}}{{/toLowerCase}}"
Expand Down
3 changes: 1 addition & 2 deletions eng/feeds/data-plane/tspconfig_stand_alone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
output-file: "data-plane/{service-name}/{version-status}/{version}/openapi.json"
"@azure-tools/typespec-python":
emitter-output-dir: "{output-dir}/{service-dir}/{{#normalizePackageName}}{{parameters.ServiceNamespace}}{{/normalizePackageName}}"
namespace: {{#toLowerCase}}{{parameters.ServiceNamespace}}{{/toLowerCase}}
Expand Down
3 changes: 3 additions & 0 deletions packages/samples/specs/data-plane/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
emit:
- "@azure-tools/typespec-autorest"
- "@typespec/openapi3"
options:
"@azure-tools/typespec-autorest":
output-file: "{emitter-output-dir}/{service-name}/{version}/openapi.json"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/data-plane"
1 change: 1 addition & 0 deletions packages/samples/specs/misc/overloads/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
extends: ../../tspconfig.yaml
emit:
- "@azure-tools/typespec-autorest"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
extends: ../../../tspconfig.yaml
emit:
- "@azure-tools/typespec-autorest"
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
extends: ../../../tspconfig.yaml
emit:
- "@azure-tools/typespec-autorest"
1 change: 1 addition & 0 deletions packages/samples/specs/resource-manager/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ options:
"@azure-tools/typespec-autorest":
use-read-only-status-schema: true
arm-types-dir: "{project-root}/common-types"
output-file: "{emitter-output-dir}/{service-name}/{version}/openapi.json"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
5 changes: 5 additions & 0 deletions packages/samples/specs/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
output-file: "{emitter-output-dir}/{service-name}/{version}/openapi.json"
Loading
Loading