-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue-30: added json-schema implementation to validate response configs #45
Conversation
- Bumped supertest to version 6 - Bumped yargs to version 16 - Upgraded patch/minor versions
if (!SUPPORTED_METHODS.includes(method)) { | ||
throw new Error(`Method ${method} is not supported.`); | ||
} | ||
var ajv = new Ajv({ schemas: [schema, responseSchema] }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, yes, left-over from the example snippet. I'll get that in a future change.
@@ -207,4 +207,47 @@ describe('AietesServer IT', () => { | |||
|
|||
expect(res.status).toBe(404); | |||
}); | |||
|
|||
describe('Configuration errors', () => { | |||
// TBD would be nice to test but terminates jest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment :)
closes #30