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

Examples not working #16

Closed
ambition-consulting opened this issue Jul 23, 2021 · 6 comments
Closed

Examples not working #16

ambition-consulting opened this issue Jul 23, 2021 · 6 comments

Comments

@ambition-consulting
Copy link

So glad I found your project, I especially like your license model.

However, the examples seem to be broken. Is this something you could fix, or is it broken inside swagger-ui also?

image

My spec is using external examples, which my unit tests also use to validate them automatically:

/yaya:
    post:
      summary: Non-blocking
      requestBody:
        content:
          application/json; charset=UTF-8:
            schema:
              $ref: '#/components/schemas/CoreRequest'
            examples:
              blik1:
                summary: BLIK1
                description: 'yaya1 '
                externalValue: ../blik1.json
              blik2:
                summary: BLIK2
                description: 'yaya2 '
                externalValue: ../blik2.json
@wll8
Copy link
Owner

wll8 commented Jul 24, 2021

Can you give me an openApi file that has removed sensitive information? Used to help me reproduce the problems you encountered so that I know how to fix them.

or is it broken inside swagger-ui also? You can just use swagger-ui to try it out.

@ambition-consulting
Copy link
Author

I believe it stems from swagger-api/swagger-ui#5433

@wll8
Copy link
Owner

wll8 commented Jul 26, 2021

It's better to be sure. If this problem can be reproduced by just using swagger-ui, then it is basically certain.

@wll8 wll8 closed this as completed Aug 12, 2021
@ambition-consulting
Copy link
Author

A workaround has been provided: swagger-api/swagger-ui#5433 (comment)

@ambition-consulting
Copy link
Author

ambition-consulting commented Aug 20, 2021

@wll8 Tried to make it work inside your try.js, but can't get it to receive the externalValue - I just receive undefined always on debugging.

Sample spec is provided in the comment above.

@wll8
Copy link
Owner

wll8 commented Aug 20, 2021

I will also participate together to help it work in redoc-try, can you provide links to reproducible problems online.

I get stuck in an infinite loop when I just use swagger.

image
image

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

2 participants