Skip to content

Fix using enum values in extension #6947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

timotheeguerin
Copy link
Member

fix #6695

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

Copy link
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
Collaborator

azure-sdk commented Apr 10, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@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