Skip to main content

Module selector

Module selector 

Source
Expand description

Server operation selectors.

Three forms (priority order in spec resolution):

  1. operationId — bare identifier
  2. METHOD /path — exact verb + path match
  3. tag:<name> — expands to every op with that tag

Parsing is spec-independent; resolution requires an OperationIndex.

Structs§

Resolution
Outcome of resolving a list of selectors against an index.

Enums§

Selector
One parsed selector. Construct via Selector::parse.
SelectorParseError
SelectorResolveError
Reason resolution failed, with a fuzzy-match suggestion when possible.

Functions§

resolve
Resolve a list of parsed selectors against an OperationIndex. Returns either every operation matched (in input order, deduped) or the first error encountered (fail-fast — codegen requires every selector to bind so unbound entries don’t silently get dropped).