Skip to content

Commit

Permalink
add todo for content types
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Jul 19, 2019
1 parent bc683af commit ecb1ffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewares/openapi.request.validator.ts
Expand Up @@ -94,6 +94,7 @@ export class RequestValidator {
if (this._apiDocs.components.requestBodies) {
Object.entries(this._apiDocs.components.requestBodies).forEach(
([id, schema]: any[]) => {
// TODO add support for content all content types
ajv.addSchema(
schema.content[TYPE_JSON].schema,
`#/components/requestBodies/${id}`,
Expand Down

0 comments on commit ecb1ffe

Please sign in to comment.