Skip to content

Commit

Permalink
add paths to response resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Jun 28, 2020
1 parent 12cabad commit ecd738b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/openapi.response.validator.ts
Expand Up @@ -270,7 +270,7 @@ export class ResponseValidator {
for (const [code, contentTypeSchemas] of Object.entries(responseSchemas)) {
for (const contentType of Object.keys(contentTypeSchemas)) {
const schema = contentTypeSchemas[contentType];

schema.paths = this.spec.paths; // add paths for resolution via file types
validators[code] = {
...validators[code],
[contentType]: this.ajv.compile(<object>schema),
Expand Down

0 comments on commit ecd738b

Please sign in to comment.