-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
The 'allowMultiple' ApiParam property doesn't appear in the JSON spec any more #478
Comments
Using allowMultiple and an array value type are mutually exclusive. Do you To be clear, 'allowMultiple`suggest a different way to pass multiple values On Wed, Mar 5, 2014 at 11:59 AM, valdemon notifications@github.com wrote:
|
I've been using the 'allowMultiple' since the swagger-core 2.9.x. |
Let's try and organize a few things - I completely understand why the First off, swagger-core never had a 2.9.x version. The 2.9.x vs 2.10.x in That said, the current Swagger-Core version supports Swagger Spec version allowMultiple is currently not deprecated, but may change in functionality An So while both allow multiple values, the way they are used is a bit On Wed, Mar 5, 2014 at 4:30 PM, valdemon notifications@github.com wrote:
|
Ok, thanks for clarifying that. |
That actually depends on the mime-type the application consumes. Assuming I can't really comment regarding the open Swagger-UI issue. On Wed, Mar 5, 2014 at 5:40 PM, valdemon notifications@github.com wrote:
|
hmm, now i'm really confused.
As the No.3 is kinda standard for the JAXRS reference implementations, and the request query syntax: '...param=value1¶m=value2...' is the most used "standard", i'd like to have an interactive REST documentation, which produces the request in an expected by the REST service way, from some friendly UI (comma separated string in a textbox, multi-select list box etc.). But that's rather swagger-js & swagger-ui related (I've put some propositions for that with my latest pull requests). The 'allowMultiple' seems to be superfluous in my use case. Question is if there's really a use case, which fits for using this attribute (especially in case of query params)? |
Okay, I may have got it wrong regarding how it would work with query I can't really give you an actual use case for the use of 'allowMultiple', On Wed, Mar 5, 2014 at 6:36 PM, valdemon notifications@github.com wrote:
|
@valdemon
if you're looking for this:
as query params, you don't need to pass it. Regarding the format for the first case, there is no standard, only convention, and that varies wildly between formats, servers, developers and the phase of the moon. We're adding a |
@webron: true, but i wouldn't expect complex types to be a standard approach for query parameter values, although it is possible with some de/serialization using mime type like JSON (maybe + Base64 encoding), as you pointed. And still possible to bind it to the array or collection of such a complex type as a method parameter eg. in JAXRS impl.
is out of the scope of this discussion.
instead of
which would do for my case (Java & JAXRS reference implementations). Anyway - the main questions - still not answered - were:
Feel a bit like bothering you, but i'd like to understand your intention in this subject, and decide what to do with my use case. |
Hi, @valdemon thanks for following up. I think the correct course of action is to change the specification to support the In the mean time, the The current UI will turns the values into a CSV string. Again, not ideal. |
Hi, |
Hi folks, allowMultiple is back as of 1.3.3-SNAPSHOT and we'll support a format syntax shortly. |
@fehguy I know that this is closed and in our project we are in the path to migrate to swagger v2 (json schema yay!), but apart from the comma-separated value format, you might also considerthe, already supported by php and ruby (and I guess more languages), |
@brutuscat - that's a naming convention, not a value one. By default, JAX-RS will use multiple instances of the same name (so |
@webron JAX-RS is also a naming convention, that's what are you saying right? I understand that, I was just suggesting to not forget this particular format when considering formats. TBH honest haven't read the whole thread... Ok, but what about try to use some sort of RFC 6570 - URI Template to specify the format? No idea if it is possible to have template "fragments" though... |
@brutuscat - this project is about Java in general and JAX-RS more specifically right now (with some support for other frameworks). It doesn't need to support conventions that don't exist here. As for URI templating, that's an entirely different issue that's been discussed in our google groups and swagger-spec repo several times. Please try to look those up. |
@webron right! I guess "core" and "spec" looks similar to me... I'll read the discussion in the groups thanks. |
OpenAPI 2.0 does not support
OAS 3.0 will allow parameter styles which includes a |
Hi,
I'm using the swagger-jaxrs_2.10:1.3.2 (with swagger-core_2.10:1.3.2) and experienced missing 'allowMultiple' attribute in the generated API JSON spec, when using the ApiParam(allowMultiple=true...) annotation.
The annotation attribute is not marked as deprecated. Is it missing in JSON by intention (eg. because being redundant as of usage of the 'array' type) or is it a bug?
The text was updated successfully, but these errors were encountered: