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

Is package out of sync with node-restify-validation? #21

Open
PetrSnobelt opened this issue Jul 13, 2015 · 0 comments
Open

Is package out of sync with node-restify-validation? #21

PetrSnobelt opened this issue Jul 13, 2015 · 0 comments

Comments

@PetrSnobelt
Copy link

node-restify-validation uses Validation like this:

validation: {
      resources: {
        id: { isRequired: true, isNatural: true },
        label: { isRequired: true }
      },
      queries : {
        status: { isRequired: true, isIn: ['foo','bar'] }
      },
      content: {
        label: { isRequired: true }
      }

but node-restify-swagger uses:

validation: {
   q1: { isRequired: true, isIn: ['asdf'], scope: 'query', description: 'description q1'},
   b1: { isRequired: true, isIn: ['asdf'], defaultValue: 'asdf', scope: 'body', description: 'description b1'},
   p2: { isRequired: true, isIn: ['asdf'], defaultValue: 'asdf', scope: 'path', description: 'description p2'}   
}

And i think it is main reason why this don't work - are there any plans to update restify-swagger to newer version of node-restify-validation?

Thanks

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

No branches or pull requests

1 participant