-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for example/xml keywords #17
Comments
@bjansen sorry for being nosey but example keyword should accept all kinds of nodes, not just NodeType.OBJECT. Examples can also be strings, numbers etc. |
Ah, I think you're right, I read "A free-form property" and assumed it was an object, but type is actually If you have 10 minutes, it would be great if you could build the snapshot version and test the feature (and perhaps also the fix I did for #19) and let me know if it works for your use-cases. Thanks! |
It seems to consume my current spec properly although on initial merge with master it did produce some weird results. For want of a better option I have used Regarding #19, are you intentionally performing transformations twice in Is the next release with these changes planned in the nearest future? |
I was doing it so that what's transformed by your custom transformations can possibly be transformed again by the built-in transformations. Your particular use-case was renaming It turns out that the same thing can be done in a single pass using a
Yes, as soon as I'm done with what's left in https://github.com/bjansen/swagger-schema-validator/milestone/2. At the moment it's only this issue, but I think I should also add support for everything else listed under the section that says |
1.0.0 landed on Maven Central this morning :) |
According to Swagger v2.0 spec each schema object can have fields like
example
,xml
and some others. Currently the validator complains about them in warnings about unknown fields. Can these keywords be incorporated in the schema library to be simply ignored?The text was updated successfully, but these errors were encountered: