Kind: Function
Source: atloria-monorepo/libs/parser-core/src/openapi/code-samples.ts
Attach x-codeSamples to every operation in the spec (mutates + returns it). Requires the
full spec so $ref request/response schemas resolve into example payloads.
Signature
tsfunction addCodeSamplesToSpec(spec: any, targets: string[]): any
Parameters
| Name | Type |
|---|---|
spec | any |
targets | string[] |
Returns: any
Was this page helpful?