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

CODE SAMPLES ERROR WIDDERSHINS + SLATE #502

Open
rminana opened this issue Feb 25, 2022 · 0 comments
Open

CODE SAMPLES ERROR WIDDERSHINS + SLATE #502

rminana opened this issue Feb 25, 2022 · 0 comments

Comments

@rminana
Copy link

rminana commented Feb 25, 2022

Description
Code Samples (for example curl "api_endpoint_here" \ -H "Authorization: meowmeowmeow") with httpsnipets are not appearing on Slate. I use the widdershins API to convert the .json file to html.md , and for show on slate request examples (curl, request or unirest ).
I use the config options.language_clients = [...], on my JS file, but no response is showed in slate, Although the language clients are visible on the markdown file generated config parameters on the header of the file, which I think it means that the configuration on the JS file was OK.

here is my JS file:
image

  • [YES] - I have checked that my input document is valid OpenAPI 2.0/3.0.x or AsyncAPI 1.x

To Reproduce
Steps to reproduce the behavior:

  1. Once with the JS above is created, in CLI execute this for generate the markdown file : node Code.JS
  2. Then replace on my Slate/source directory the file index.html existing for this one called the same name
  3. Run docker with : docker run --rm --name slate -p 4567:4567 -v ${pwd}:/srv/slate/source slatedocs/slate serve
  4. My input file:

image

  1. See error: In the entire file doesn't appear a markdown code sample about how generate a curl response or somet
    index.html.md

Expected behavior
It should appear on the right side of the web browser a request body parameter or something like the Slate demo shows:

curl "http://example.com/api/kittens"
-H "Authorization: meowmeowmeow"

Screenshots

image
image
image

Versions:

  • Node.js : 16.0
  • NPM: 8.6
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