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

Mocking prototype #14

Closed
Tarick opened this issue Oct 11, 2021 · 1 comment · Fixed by #19
Closed

Mocking prototype #14

Tarick opened this issue Oct 11, 2021 · 1 comment · Fixed by #19
Assignees

Comments

@Tarick
Copy link
Contributor

Tarick commented Oct 11, 2021

Implement the way to mock paths with predefined responses as POC.
E.g. using x-kusk construct:

x-kusk:
  mock:
    response: "{ blablabla: true }"
@Tarick Tarick self-assigned this Oct 11, 2021
@olensmar
Copy link
Member

olensmar commented Oct 11, 2021

if there are example response(s) defined in the definition then it should be able to use those as mock responses.. see https://spec.openapis.org/oas/latest.html#example-object

@Tarick Tarick linked a pull request Oct 12, 2021 that will close this issue
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 a pull request may close this issue.

2 participants