-
Notifications
You must be signed in to change notification settings - Fork 9k
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
"Try it out" doesn't prompt with form when parameters are a schema #2771
Comments
That's because it's a JSON object. In the previous version we had a community contribution of a JSON Schema form editor, but we couldn't migrate it as-is and it wasn't well maintained. We might be able to bring in a similar functionality to 3.X as we have experience doing so, however, the efforts in doing so are great (it introduces a lot of UI issues). Is this something you'd consider assisting with? We'll give guidance for the process. |
If I had the skills I would, but you don't want me writing Javascript. 😄 |
Any idea if/when this will get implemented? Just curious...I assume the P3 label means its lower on the list? Thanks! |
It's not on any of our immediate plans, there's no ETA for it. |
How about, instead of crafting a input fields from the model, make the current input text area a real Json editor? Like the left side of the swagger editor tool (with all bells and whistles of the ACE editor) but with the model as the "schema" to validate against. (e.g. create a basic JSON schema of the model and use it to validate the input). It will also make is easier to try our multiple different inputs by copy pasting. Which isn't possible when it are individual form fields. And on top of that, you support sheer infinite nesting of properties in the model. Because... if you start making a form with the current screen spacing, you'll need to scroll forever. (see #4359) |
That's a solution that would appease some users, but I doubt that most. It can be an option, but can't be the only solution. |
I just implemented JSON editor with package "react-jsonschema-form" in my fork(https://github.com/pli41/swagger-ui.git). Hopefully this can be helpful for people who need this feature! You can find more info in my commit's comments. BTW I do not have prior experience with front end development. Please do correct me if I have done something terrible lol. |
Any update on this feature ? I guess many are there who are waiting to have this feature integrated in swagger UI. |
I have the same problem |
would love this feature! either a json editor, or just give us an option to use the existing form editor for application/x-www-form-urlencoded for when our request body schema is well defined |
hi what is the current status of this? If its blocked what specifically is the difficulty in re-implementing the json form editor? |
The following path used to provide username/password text input fields. In 3.0.2 it now requires the "Example Value" text box to be edited. It looks like this happens when the input parameters are specified using
schema
.As an example the following path which does not use
schema
provides a text input field forname
:The text was updated successfully, but these errors were encountered: