Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Mar 24, 2022
1 parent cf00d5f commit e85eac4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/middlewares/request-body-validation.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ async function getValidator(req: Request) {
const schema = requestBody.content['application/json'].schema;
const serverAPIExtension = schema['x-server-api'] || {};

// `asyncapi` and `asyncapis` fields are validated in another middleware so annotate it as `any` type
if (schema.properties) {
const skipFieldsInValidation: string[] = serverAPIExtension.skipFieldsInValidation || [];
skipFieldsInValidation.forEach(field => {
Expand Down

0 comments on commit e85eac4

Please sign in to comment.