Skip to content
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

validator #18

Closed
dcharbonnier opened this issue Nov 25, 2014 · 3 comments
Closed

validator #18

dcharbonnier opened this issue Nov 25, 2014 · 3 comments
Assignees
Projects

Comments

@dcharbonnier
Copy link
Contributor

type is validated but format is not

{
          'name': 'uuid',
          'in': 'path',
          'description': 'User uuid',
          'required': true,
          'type': 'string',
          'format': '/^[0-9a-fA-F]{24}$/'
        }

does not raise error if uuid is 'XXX'

@tlivings
Copy link
Member

tlivings commented Dec 1, 2014

For required see tlivings/enjoi#3 (comment). (edit: misunderstanding here - ignore).

Will investigate format. Thanks.

@tlivings tlivings self-assigned this Dec 1, 2014
@tlivings
Copy link
Member

tlivings commented Dec 2, 2014

Typically a regex is supplied as pattern, not format.

@tlivings tlivings closed this as completed Dec 2, 2014
@dcharbonnier
Copy link
Contributor Author

@tlivings thx, sorry for the noise

davidjamesstone pushed a commit to node-jpi/swaggerize-hapi that referenced this issue Dec 13, 2016
Added back support for handlers as an object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Triage
  
Done
Development

No branches or pull requests

2 participants