Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can define api spec directly as object #39

Conversation

rwalle61
Copy link
Collaborator

@rwalle61 rwalle61 commented Dec 22, 2019

Part of #31: allows user to load api spec like this:

before(async() => {
    const apiSpec = (await axios.get('url/to/openapi/spec')).data;
    chai.use(chaiResponseValidator(apiSpec)); // no need to write out to a file
}

Also:

  • minor clarification of test blocks
  • minor corrections to the README

@rwalle61 rwalle61 merged commit 23d3349 into openapi-library:master Dec 22, 2019
@rwalle61 rwalle61 deleted the user-can-define-api-spec-directly-as-object branch December 22, 2019 16:13
@rwalle61 rwalle61 mentioned this pull request Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant