An empty output.
An empty output. Useful if one of oneOf
branches should be mapped to the status code only.
Extract a value from a server request.
Extract a value from a server request. This input is only used by server interpreters, it is ignored by documentation interpreters and the provided value is discarded by client interpreters.
Maps status codes to outputs.
Maps status codes to outputs. All outputs must have a common supertype (I
). Typically, the supertype is a sealed
trait, and the mappings are implementing cases classes.
Note that exhaustiveness of the mappings is not checked (that all subtypes of I
are covered).