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

[mockoon-cli] also return OpenAPI examples #992

Open
franok opened this issue Mar 27, 2023 · 0 comments
Open

[mockoon-cli] also return OpenAPI examples #992

franok opened this issue Mar 27, 2023 · 0 comments
Labels
feature New feature request

Comments

@franok
Copy link

franok commented Mar 27, 2023

relates to #962

Given

mockoon cli is used with openapi.yaml that contains examples:

mockoon-cli start --data https://raw.githubusercontent.com/mockoon/mockoon/d091b91c6c67b13fb40343fec0fe0287a1db2183/packages/commons-server/test/data/openapi/openapi-v3.yaml --daemon-off

When

GET http://localhost:3000/with-examples

Then

The response is never one of the examples defined in the openapi yml, but always a generated one, e.g.:

[
  {
    "id": 33724,
    "name": ""
  }
]

Expected behavior

randomizing the example responses by default

Note: created this issue as requested by @255kb in #962 (comment)

@255kb 255kb added the feature New feature request label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants