Skip to content

Commit

Permalink
remove redundant semantic validator (for swagger-api#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey committed Apr 17, 2019
1 parent 4056bef commit 34544d0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/plugins/validate-semantic/validators/parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ export const validateParameterBadKeys = () => (system) => {
.allParameters()
.then(nodes => {
return nodes.reduce((acc, node) => {
if(node.keys.indexOf("example") > -1) {
acc.push({
level: "error",
message: "'example' field is not allowed in parameter",
path: [...node.path, "example"]
})
}
if(node.node.required !== true && node.node.in === "path") {
acc.push({
level: "error",
Expand Down

0 comments on commit 34544d0

Please sign in to comment.