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

response.random() #152

Merged
merged 5 commits into from
Aug 8, 2022
Merged

response.random() #152

merged 5 commits into from
Aug 8, 2022

Conversation

pmcelhaney
Copy link
Owner

@pmcelhaney pmcelhaney commented Aug 5, 2022

Counterfact is now able to read an OpenAPI document and use it to generate a random response.

export function GET ({response}) {
   return response[200].random();
}

@pmcelhaney pmcelhaney linked an issue Aug 5, 2022 that may be closed by this pull request
@changeset-bot
Copy link

changeset-bot bot commented Aug 5, 2022

🦋 Changeset detected

Latest commit: 860f67f

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

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

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 ff307eb into main Aug 8, 2022
@pmcelhaney pmcelhaney deleted the 135-responserandom branch August 8, 2022 14:36
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.

response.random()
1 participant