oas3-api-snippet-enricher icon indicating copy to clipboard operation
oas3-api-snippet-enricher copied to clipboard

Enrich your OpenAPI 3.0 JSON with code samples

Results 9 oas3-api-snippet-enricher issues
Sort by recently updated
recently updated
newest added

Code samples should only be added onto operations. This fixes issues #13 and #17

When doing this ``` requestBody: content: multipart/form-data: ``` Instead of this ``` requestBody: content: application/json: ``` Specified fields from the schema are not generated in the code samples E.g. all...

👋 Hello! Trying this out for the first time. I rearranged the [expanded petstore example](https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/petstore-expanded.yaml) to have... ```yaml paths: /pets: $ref: paths/pets.yaml ``` Here is the directory for the rearranged...

In the OpenAPI spec we use ``` '/lists/v2/audiences/{audienceId}': GET: .... ``` This results in the examples ``` curl --request GET \ --url https://example.com/lists/v2/audiences/%7BaudienceId%7D \ --header 'X-ApiKey: REPLACE_KEY_VALUE' ``` The {}...

Hi, I try to enrich a JSON generated file that is in a valid openapi JSON format and properly renders in Redoc. But still I get this error: ``` [Error...

Fix #12 Also add error handling so partial transformation can still happen as openapi-snippet doesn't support some minor things (like oneOf/allOf in parameter schemas)

I am using [openapi-filter](https://github.com/Mermade/openapi-filter) to filter some paths, due to which methods have invalid boolean properties and this error is thrown: ``` TypeError: Cannot create property 'x-codeSamples' on boolean 'true'...

Adding ruby to the targets array generates Ruby code snippets. Tested it on Mac and Ubuntu. Code: ```js 'use strict'; const fs = require('fs'); const OpenAPISnippet = require('openapi-snippet'); const yaml...

## Issue Description The `snippet-enricher-cli` library currently depends on the `openapi-snippet` library version `^0.9.0`. However, the latest version of openapi-snippet is `0.14.0` (at the time of writing this issue), which...