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

Issues on Paramaeters Example with Swagger.JSON #2173

@YosaRama

Description

@YosaRama

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions