Skip to content

Commit

Permalink
post merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszm committed Oct 10, 2023
1 parent 4bc7661 commit 63f6934
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ async function validateExamples(openapiSpec, { noAdditionalProperties, ignoreFor
openapiSpec = _postprocess(openapiSpec, specPostprocessor);
let pathsExamples = impl.getJsonPathsToExamples()
.reduce((res, pathToExamples) => {
return res.concat(_pathToPointer(openapiSpec, pathToExamples));
}, [])
.map(impl.escapeExampleName);
return res.concat(_pathToPointer(pathToExamples, openapiSpec));
}, []);
const createValidator = validatorFactory(openapiSpec, ignoreFormats);
return _validateExamplesPaths({ impl, createValidator }, pathsExamples, openapiSpec);
}
Expand Down

0 comments on commit 63f6934

Please sign in to comment.