Resolve an operation from an OpenAPI document by path and method.
Throws if the operation is not found.
Accepts either a raw document (parsed lazily via getParsed's
WeakMap cache) or an already-parsed OpenApiDocument. Callers
that have a parsed document at hand can pass it directly to avoid
an extra cache lookup; everyone else trusts the cache.
diagnostics is forwarded to getParsed so normalisation
events surface to the caller's sink exactly once per (doc, sink)
pair, no matter how many times this function is called.
Resolve an operation from an OpenAPI document by path and method. Throws if the operation is not found.
Accepts either a raw document (parsed lazily via getParsed's WeakMap cache) or an already-parsed OpenApiDocument. Callers that have a parsed document at hand can pass it directly to avoid an extra cache lookup; everyone else trusts the cache.
diagnosticsis forwarded to getParsed so normalisation events surface to the caller's sink exactly once per(doc, sink)pair, no matter how many times this function is called.