Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant