We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When there is a default value in the openapi spec, it isn't being auto populated in the resource paths:
It would be great to have that default value be the one populated into the input box.
Technically this is doable by having the spec updated on load using lodash
import { cloneDeepWith } from 'lodash'; onSpecLoaded(data) { function updateTag(tag) { const picker = (value, key) => { if (!value || typeof value !== 'object') { return value; } if (Object.prototype.hasOwnProperty.call(value, 'default') && !value.example) { return Object.assign(value, { example: value.default }); } return undefined; }; return cloneDeepWith(tag, picker); } data.detail.tags = data.detail.tags.map(tag => updateTag(tag)); }
The text was updated successfully, but these errors were encountered:
The behavior is intended and not a bug. Default is the value that the API-Server will fill in, when it is empty, not what a client will provide.
Default
If you need to fill the inputs with some data use example or examples check out #397 for some context
example or examples
Sorry, something went wrong.
No branches or pull requests
When there is a default value in the openapi spec, it isn't being auto populated in the resource paths:
It would be great to have that default value be the one populated into the input box.
Technically this is doable by having the spec updated on load using lodash
The text was updated successfully, but these errors were encountered: