Skip to content

inferParameterSources

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/param-source-inference.ts

Walk every operation and attach a x-atloria-param-source to each path parameter whose values a sibling collection can supply.

Conservative by construction: a binding is emitted only when the collection operation exists, returns a list of objects, and that object carries a usable identifier. Anything ambiguous is left alone — a text box is a fine outcome, a wrong dropdown is not.

Signature

ts
function inferParameterSources(spec: OpenApiLike): number

Parameters

NameType
specOpenApiLike

Returns: number

Was this page helpful?

Download as PDF