Skip to content

Correct type field description in items object #504

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

Closed
wants to merge 1 commit into from

Conversation

samskiter
Copy link

No description provided.

@webron
Copy link
Member

webron commented Dec 4, 2015

I'm afraid "object" is not allowed there.

@samskiter
Copy link
Author

Are you sure? An array of objects seems a pretty basic thing to support and is supported as far as I could tell from the parsers/generators I'd used.
In fact there are arrays with refs to items with type set to object in the swagger example on the editor http://editor.swagger.io/#/

@webron
Copy link
Member

webron commented Dec 4, 2015

The Items Object is the one used by non-Schema Object arrays, where objects are not allowed. For example, all non-body parameters. Check the spec carefully as to what points to the Items Object.

@ePaul
Copy link
Contributor

ePaul commented Apr 19, 2016

#654 will actually make a schema allowed for all parameters in 3.0, which makes this section go away.

I guess this change for the 2.0 version can be closed without merging.

@webron
Copy link
Member

webron commented Apr 19, 2016

This can be closed now as it's for 2.0.

@webron webron closed this Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants