-
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
support of the allOf inside array(items) #1883
Comments
Looks like. |
+1 |
1 similar comment
+1 |
+1 swagger: '2.0'
info:
title: API
version: "1.0.0"
basePath: /api
paths:
/path:
get:
responses:
200:
schema:
type: array
items:
type: object
allOf:
- properties:
id:
type: integer
default:
schema:
type: string the result in swagger-ui: [
{}
] However, this works: swagger: '2.0'
info:
title: API
version: "1.0.0"
basePath: /api
paths:
/path:
get:
responses:
200:
schema:
type: object # differ here
properties: # differ here
array: # differ here
type: array
items:
type: object
allOf:
- properties:
id:
type: integer
default:
schema:
type: string
Seems only fail when the array dirrectly under schema |
+1 |
1 similar comment
+1 |
+1 |
1 similar comment
+1 |
I'm getting the same error From this json
I notice this has been open for a year is there any progress as to what might be causing the issue or were to begin looking? |
We're working on a major update to the project that should resolve this issue and others. Before you ask, I'm afraid I don't have an ETA. |
Any updates on the ETA? |
A few weeks. |
+1 |
I could potentially dive in and try to fix this problem if someone could give me some direction on where to start. |
Honestly, I wouldn't bother. We're very close to releasing a new major version of swagger-ui (just a few weeks away) and I know this issue doesn't exist in it. |
Oh, awesome. |
It's not public yet. |
Working! Thanks!! PD: What a huge update (clap) |
This is supported and working in 3.0. |
Hi,
Couple of examples.
This one is basic, and it works:
Here is the one with
allOf
, but not inside items:Works:
And here is the one using
allOf
and array as response structure:Which results to this:
Does not work.
It this an issue?
Regards,
The text was updated successfully, but these errors were encountered: