Skip to content

Fix tagMetadata extension diagnostic targets#10776

Open
kiwigitops wants to merge 1 commit into
microsoft:mainfrom
kiwigitops:fix-openapi-tagmetadata-extension-target
Open

Fix tagMetadata extension diagnostic targets#10776
kiwigitops wants to merge 1 commit into
microsoft:mainfrom
kiwigitops:fix-openapi-tagmetadata-extension-target

Conversation

@kiwigitops
Copy link
Copy Markdown

Closes #10767

This keeps the OpenAPI extension-key validation tied to the metadata object literal, so invalid keys such as custom are reported on the offending property instead of the tag name.

Verification:

  • npx pnpm --filter @typespec/openapi build
  • npx pnpm --filter @typespec/openapi test -- decorators.test.ts

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tagMetadata custom property without x report error on wrong location

1 participant