Skip to content

Commit

Permalink
add break statement, fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tommorgenstern committed Oct 29, 2023
1 parent 703af41 commit 8de9efa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/native/oas-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function _parseValue(val, paramDefinition, schema, type) {
return JSON.parse(val);
} catch {
commons.handle(RequestValidationError, `Invalid JSON in parameter '${paramDefinition.name}'.`, true);
break;
}
} else {
logger.warn(`Content type ${contentType} is not supported. Raw value will be returned.`);
Expand Down

0 comments on commit 8de9efa

Please sign in to comment.