widdershins icon indicating copy to clipboard operation
widdershins copied to clipboard

CODE SAMPLES ERROR WIDDERSHINS + SLATE

Open rminana opened this issue 2 years ago • 0 comments

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

rminana avatar Feb 25 '22 07:02 rminana