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 array's 'uniqueItems' #22
Comments
Oops. I raised this against the wrong project. See blinkboxbooks/genny#10 |
Thanks @tomfitzhenry, I've pushed PR blinkboxbooks/genny#12 to fix this, once that's tested & available I'll update swaggerific to follow suit :) |
PR #24 fixes this :) |
I think there's a bug because I can't seem to get any lists with size greater than 1.
I suspect this is a bug, but looking at the PR, I can't see where it is... Maybe it's a case of http://i.imgur.com/U8eTUIw.jpg |
I think it probably is :P Yeah, the tests pass but your use case still isn't working. Will check it out today :) |
uniqueItems
, as described on https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md is not supported.Example usage:
Steps to reproduce
curl 'http://uniqueitems-support.swaggerific.io/
Expected
One of:
[]
,["foo"]
,["bar"]
,["foo", "bar"]
Actual
Sometimes I get duplicate entries, e.g.
["foo","foo","foo","bar"]
Swagger spec
Here's the swagger file for
uniqueitems-support.swaggerific.io
The text was updated successfully, but these errors were encountered: