Skip to content

Fix using enum values in extension#6947

Merged
timotheeguerin merged 3 commits intomicrosoft:mainfrom
timotheeguerin:fix/enum-value-extensions
Apr 10, 2025
Merged

Fix using enum values in extension#6947
timotheeguerin merged 3 commits intomicrosoft:mainfrom
timotheeguerin:fix/enum-value-extensions

Conversation

@timotheeguerin
Copy link
Copy Markdown
Member

fix #6695

this is doing a workaround until we resolve #3570 and can just call serializeValueAsJson

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2025

All changed packages have been documented.

  • @typespec/json-schema
  • @typespec/openapi
Show changes

@typespec/json-schema - fix ✏️

Fix crash when using enum values in extension

@typespec/openapi - fix ✏️

Fix crash when using enum values in extension

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Apr 10, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Comment thread packages/json-schema/test/extension.test.ts
@timotheeguerin timotheeguerin added this pull request to the merge queue Apr 10, 2025
Merged via the queue into microsoft:main with commit 945bff4 Apr 10, 2025
22 checks passed
@timotheeguerin timotheeguerin deleted the fix/enum-value-extensions branch April 10, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need a way to disable arg marshalling for decorators [Bug]: json-schema emitter fails on @extension value referencing an enum

3 participants