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

A way to instruct a specific OAI example response #91

Open
goldbergyoni opened this issue Oct 1, 2023 · 0 comments
Open

A way to instruct a specific OAI example response #91

goldbergyoni opened this issue Oct 1, 2023 · 0 comments

Comments

@goldbergyoni
Copy link

Say I have some route that is documented with two examples in OpenAPI. For example, a User schema, sometimes might return isDeleted=false, in other cases isDeleted=true. Each case has a named example in the OpenAPI

From within a test, I'd like to influence the mocked response and trigger isDeleted=true, or actually trigger exactly a specific OpenAPI example

Is this doable? appreciate a link to the relevant docs section

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

No branches or pull requests

1 participant