Skip to content
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

playground - support array options #5310

Open
wants to merge 2 commits into
base: feature/openapi3.1
Choose a base branch
from

Conversation

chrisradek
Copy link
Member

This PR updates the playground to handle array emitter options.

Currently this mainly supports options that are an array of enums - such as the new openapi3 versions option.

If an option accepts an array of non-enums, then currently it will display a single input field, effectively restricting usage to a single element. As new array options come up we can decide how we want to display them (e.g. show a '+' sign and create a new element?)

Screenshot of the Openapi Versions option showing both choices as selectable:
image

@chrisradek chrisradek added the emitter:openapi3 Issues for @typespec/openapi3 emitter label Dec 16, 2024
@chrisradek chrisradek changed the base branch from feature/openapi3.1 to main December 18, 2024 22:46
@chrisradek chrisradek changed the base branch from main to feature/openapi3.1 December 18, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:openapi3 Issues for @typespec/openapi3 emitter ui:playground
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant