Skip to content

Correct type field description in items object - #504

Closed
samskiter wants to merge 1 commit into
OAI:masterfrom
samskiter:patch-1
Closed

Correct type field description in items object#504
samskiter wants to merge 1 commit into
OAI:masterfrom
samskiter:patch-1

Conversation

@samskiter

Copy link
Copy Markdown

No description provided.

@webron

Copy link
Copy Markdown
Member

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

@samskiter

Copy link
Copy Markdown
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
Copy Markdown
Member

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
Copy Markdown
Contributor

#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
Copy Markdown
Member

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

@webronwebron closed this Apr 19, 2016
Sign up for freeto 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

@samskiter@webron@ePaul