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

Issues on Paramaeters Example with Swagger.JSON #2173

Open
YosaRama opened this issue Jan 24, 2023 · 0 comments
Open

Issues on Paramaeters Example with Swagger.JSON #2173

YosaRama opened this issue Jan 24, 2023 · 0 comments

Comments

@YosaRama
Copy link

Describe the bug
I got error for no example on my endpoint when I add example inside schema object, currently I used OpenAPI v.3.0.0, and it will be look something like this :
Screenshot 2023-01-24 at 11 35 36

but when I take out example from schema (schema.example) to directly one level with schema, it will be work fine. here attachment for that :
Screenshot 2023-01-24 at 11 37 18

if look at swagger documentation, single example will be inside the schema and multiple example will be outside schema but with examples tag, how can I running this test with example inside schema instead of writing example outside of schema object ?

To Reproduce
I just called in a simple way npx dredd swagger.json https://zoho-subscriptions-integration-ttzxdcebuq-as.a.run.app/, and write example inside schema object

Expected behavior
Writing example inside schema object for OpenAPI v.3.0.0, same as documentation Adding example from swagger.io
Screenshot 2023-01-24 at 11 44 45

What is in your dredd.yml?
Not using dredd.yml, directly running on command line

What's your dredd --version output?
Screenshot 2023-01-24 at 11 45 31

Does dredd --loglevel=debug uncover something?
Screenshot 2023-01-24 at 11 47 34

NamesNotRick added a commit to NamesNotRick/dredd that referenced this issue May 4, 2023
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