Skip to content

Conversation

@timotheeguerin
Copy link
Member

Right now this just document as deprecated but doesn't flag a warning as we are still deciding if we should fix v1 spec or wait until they are migrated.

@microsoft-github-policy-service microsoft-github-policy-service bot added eng emitter:autorest Issues for @azure-tools/typespec-autorest emitter labels Jan 24, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 24, 2026

Open in StackBlitz

npm i https://pkg.pr.new/Azure/typespec-azure/@azure-tools/typespec-autorest@3836
npm i https://pkg.pr.new/Azure/typespec-azure/@azure-tools/typespec-autorest-canonical@3836

commit: cdb3b8c

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 24, 2026

All changed packages have been documented.

  • @azure-tools/typespec-autorest-canonical
  • @azure-tools/typespec-autorest
Show changes

@azure-tools/typespec-autorest - deprecation ✏️

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",>

@azure-tools/typespec-autorest-canonical - deprecation ✏️

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",>

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 24, 2026

You can try these changes here

🛝 Playground 🌐 Website

@timotheeguerin timotheeguerin added the int:azure-specs Run integration tests against azure-rest-api-specs label Jan 24, 2026
? "preview"
: "stable"
: undefined,
"version-status": version?.includes("preview") ? "preview" : "stable",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this safe, since version is only set on L356, if azureResourceProviderFolder is set?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it didn't actually matter because the version is always set as the parameter when it matters. This is only in the case where it was set via the openapi3 @info decorator which should never happen.
But yeah good to remove the condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:autorest Issues for @azure-tools/typespec-autorest emitter eng int:azure-specs Run integration tests against azure-rest-api-specs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants