Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/specs/better-errors/better-errors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function assertInvalid(file, error) {

describe('Better errors', () => {
it('should pass validation if "options.validate.schema" is false', async () => {
const api = await OpenAPIParser.validate(path.rel(`specs/better-errors/3.0/invalid-x-extension-root.yaml`), {
const api = await OpenAPIParser.validate(path.rel('specs/better-errors/3.0/invalid-x-extension-root.yaml'), {
validate: { schema: false },
});

Expand Down
2 changes: 1 addition & 1 deletion test/specs/validate-spec/validate-spec.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function assertInvalid(file, error) {

describe('Invalid APIs (specification validation)', () => {
it('should bypass validation if "options.validate.spec" is false', async () => {
const api = await OpenAPIParser.validate(path.rel(`specs/validate-spec/invalid/2.0/invalid-response-code.yaml`), {
const api = await OpenAPIParser.validate(path.rel('specs/validate-spec/invalid/2.0/invalid-response-code.yaml'), {
validate: { spec: false },
});
expect(api).to.be.an('object');
Expand Down