OapiCodemode.Ingest.Normalize (oapi_codemode v0.1.0)

Copy Markdown View Source

Extracts a flat operation list from a dereferenced spec, deriving stable readable ids where operationId is missing (the oaskit cards_freeze_ALTIJVI lesson: never trust upstream ids to exist or be usable).

Summary

Functions

The HTTP methods this module extracts operations for.

Functions

methods()

@spec methods() :: [String.t()]

The HTTP methods this module extracts operations for.

Exposed so the proxy can derive its own method table from it (M4): a method extracted here but unknown to the proxy would blow up at request time rather than at ingest.

operations(spec)

@spec operations(map()) :: [OapiCodemode.Operation.t()]