To display code samples from Speakeasy SDKs in ReadMe, update the workflow.yaml file to support their proprietary OpenAPI extension.
In the SDK target configuration, set the codeSamples.style field to readme:
Note for TypeScript
If the target value is set to typescript, the langOverride field must be
set to javascript or generated code samples will not be displayed in
ReadMe.
If target is not set to typescript, then langOverride should be set to
auto-detect.
Get the API’s combined spec public URL from the registry
Navigate to the Speakeasy Dashboard and open the API Registry overview. Select the relevant API and open the entry labeled with type Combined Spec. This is typically at the bottom under “Related Documents”.
app.speakeasy.com
NOTE: If the entry is not labeled Combined Spec, ensure that the API
has an automatic code sample
URL configured.
From the registry entry’s page, copy the provided public URL using the “Share” button on the top right.