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

Add a tools object that will be provided to the request #64

Merged
merged 4 commits into from
Jul 5, 2022
Merged

Conversation

pmcelhaney
Copy link
Owner

It provides some useful functionality:

  • tools.oneOf(array) returns a random item from an array (used for selecting a random example from a an OpenAPI schema)
  • tools.accepts(contentType) identifies whether the request accepts a particular content type

@changeset-bot
Copy link

changeset-bot bot commented Jul 5, 2022

🦋 Changeset detected

Latest commit: 406b907

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
counterfact Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pmcelhaney pmcelhaney merged commit ca370ef into main Jul 5, 2022
@pmcelhaney pmcelhaney deleted the tools branch July 5, 2022 18:37
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.

None yet

1 participant