This is a collection ticket for OAS3 specification features that are not yet supported by Swagger-UI.
Items that affect both UI and Client will be listed here as well, but Client-only items will be filed in the Client issue tracker.
Significant items should be broken out into their own ticket when work begins, but simple items can be addressed as a line item here.
example/examples is not displayedstyle/explode is not displayedallowReserved is not displayedcontent is not displayedexample/examples is not displayedencoding is not displayedstyle/explode is not considered in request constructioncontent values are not rendered for Try-It-Outencoding values are not consideredAccept, Content-Type, Authorization) are not filtered outallowEmptyValue is not considered in request value validationbuildRequest based on definition versionopenIdConnect is not supportedcc: @webron
Also:
description (implemented in UI v. 3.20.2 / Editor v. 3.6.17)descriptionnullable attribute in schemasenum as dropdown (implemented in UI v. 3.4.0 / Editor v. 3.1.12)array items (implemented in UI v. 3.4.0 / Editor v. 3.1.12)allowReserved=false (#3817)enum not displayed as dropdowns
In the OAS3, enum is moved into schema, UI has not yet support this.
Is there an update on when Authentication/Authorization will be supported by the UI? We used the "authorizations" in 2.0 heavily and are wanting to release with 3.0 support soon. This is a big missing piece for us. I saw mention in #3774, #3705, #3665 that it is being worked on in this issue number.
Yup. The authorization should be included by in this week's release. Keep in mind it's more about compatibility with what existed in 2.0 (base auth, oauth2, and api key). That means that OIDC is _not_ going to be available yet. As for bearer (JWT!), that _might_ be in, but @shockey would be able to verify.
type: http
scheme: bearer
will be supported 😄
O.M.G. !!!! !! ! 😱
@leehicks, FYI, support for most 3.0 security schemes were added in tonight's release! Check out the release notes for more info.
@leehicks - release notes - https://github.com/swagger-api/swagger-ui/releases/tag/v3.4.0
If you encountered an issue with the implementation, please file a ticket, providing the requested details in the template.
@webron - Any progress on below issues?
We try to keep the list above up to date...
Hey - looks like https://github.com/swagger-api/swagger-ui/commit/d587d9c9ea794ea2a5afb59f583c3ed40c6321b6 was regressed at some point between 3.3.1 and 3.4.4. ( Callbacks are not rendered )
@craigjbass thanks, see https://github.com/swagger-api/swagger-editor/issues/1565.
File upload UI should appear when applicable
What is the current progress? It's very useful option.
Hi,
I am also interested in the status of File Upload UI (amarel123's question).
We really need this file chooser for our swagger playground.
Is there any update about the status of this issue?
10x
Some updates:
anyOf / oneOf examples: Come up with solution-ish, or document to say its not something we're going to fix was removed in favor of being tracked in #3803 and #2651.Path and operation-level servers are not displayed was removed since it was tracked in #3820 and implemented in #3972.Besides that, all checkbox statuses have been updated.
If a task is still unchecked... no update for now 😄 if you're here to ask for a specific thing to get done, check to see if anyone has mentioned it, and if so 👍 their comment. If no one has mentioned it, feel free to comment about it.
We'll do our best to address things here in order of demand (I see you, File Upload folks!)
Hi,
What's the status of "Server description is not displayed"? I also need this. Moreover, the feature with multiple examples doesn't work. @shockey Can you please confirm if the functionality mentioned here "https://swagger.io/docs/specification/adding-examples/" actually works? Thanks
Also needing the file upload back in OpenApi 3.0 :) Is there a dedicated issue to watch?
Thank you for working on it!
Hi,
Is there any updated regarding Parameter example/examples is not displayed? as it is very useful option to have
File upload UI should appear when applicable
Is there anything we can help speeding this up?
@jonyeezs PRs help ;)
@webron the comment from @jelanwar got me thinking, "anything" ...
maybe this is an opportunity to monetize Open Source projects?
What if people interested in speeding features/bug fixes could put a coin bounty on the issues?
That should bring developers to submit PR to collect the bounty
We really need the feature described in #4345
Please allow this soon!
doc
in is header support
api_key:
type: "apiKey"
name: "api_key"
in: "header"
in is cookie not support has error
api_key:
type: "apiKey"
name: "api_key"
in: "cookie"
error:
Schema error at securityDefinitions['api_key'].in
should be equal to one of the allowed values
allowedValues: header, query
@zeromake make sure your spec is openapi: 3.0.0 and not swagger: '2.0'.
..
* @OA\MediaType(
* mediaType="multipart/form-data",
* @OA\Schema(
* type="object",
* @OA\Property(
* property="files",
* description="Choose a file to upload",
* type="array",
* @OA\Items(
* description="file",
* type="string",
* format="binary",
* ),
...
after this I use
public function upload(Request $request)
{
//$imageContent = $request->getContent();
$files = $request->input('files');
$files = explode(',', $files);
foreach ($files as $file) {
dd($file);
}
}
and get
..characters">[object File]"...
How I am suppose to play with the [object File] above to finish the upload please ?
When is multipart file upload going to be supported. You had this before!
When is multipart file upload going to be supported. You had this before!
It is supported in 2.9.2.
When is multipart file upload going to be supported. You had this before!
It is supported in 2.9.2.
It is not showing up for me. Please see my stackoverflow https://stackoverflow.com/questions/54334438/how-do-i-specify-a-multifile-upload-in-openapi
When is multipart file upload going to be supported. You had this before!
It is supported in 2.9.2.
It is not showing up for me. Please see my stackoverflow https://stackoverflow.com/questions/54334438/how-do-i-specify-a-multifile-upload-in-openapi
The picker shows up, but the UI does not appear to send the filename or mime type along with the binary.
@lcahlander
The picker shows up, but the UI does not appear to send the filename or mime type along with the binary.
This is issue #4600.
Hi,
Can we have status about this missing feature ?
### Try-it-out
So that an api call output can serve as input for another call (as explained there: https://swagger.io/docs/specification/links/)
Thanks!
Hi there; I am trying to send multiple files in one property, as described in the Specification, I declare
/testmultipart:
post:
summary: Send multipart request.
requestBody:
content:
multipart/form-data:
schema:
properties:
# The property name 'file' will be used for all files.
file:
type: array
items:
type: string
format: binary
when I send the request I spect
curl -X POST -H "Content-Type: multipart/form-data" "http://localhost:3000/testmultipart" --form '[email protected]' --form '[email protected]' --form '[email protected]' '
but I see this in the body
{ "file": [ "string" ] }
Most helpful comment
What is the current progress? It's very useful option.