Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug]: OpenAPI 3.1: Server Variable's default now MUST exist in the enum values, if such values are defined (changed from SHOULD). #6024

Open
4 tasks done
wanlwanl opened this issue Feb 17, 2025 · 0 comments
Labels
bug Something isn't working emitter:openapi3 Issues for @typespec/openapi3 emitter triaged:core
Milestone

Comments

@wanlwanl
Copy link
Member

wanlwanl commented Feb 17, 2025

Describe the bug

Server Variable's default now MUST exist in the enum values, if such values are defined (changed from SHOULD).
But the default value is always ''

Reproduction

Playground

Checklist

@wanlwanl wanlwanl added bug Something isn't working emitter:openapi3 Issues for @typespec/openapi3 emitter labels Feb 17, 2025
@wanlwanl wanlwanl changed the title [Bug]: OpenAPI3: Server Variable's default now MUST exist in the enum values, if such values are defined (changed from SHOULD). [Bug]: OpenAPI 3.1: Server Variable's default now MUST exist in the enum values, if such values are defined (changed from SHOULD). Feb 17, 2025
@markcowl markcowl added this to the Backlog milestone Feb 19, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working emitter:openapi3 Issues for @typespec/openapi3 emitter triaged:core
Projects
None yet
Development

No branches or pull requests

2 participants