pub fn generate_openapi_effective(
engine: &Engine,
explain: bool,
effective: &DateTimeValue,
) -> ValueExpand description
Generate a complete OpenAPI 3.1 specification for a specific point in time.
The specification includes:
GET /— loaded specs (Engine::specs)/{spec}GET (show:Showfromapi.v1.json) and POST (evaluate:Response/RuleResultfromapi.v1.json) with optionalAccept-Datetimeheader?rules=on POST only, to limit evaluated rulesx-effective-from/x-effective-tovendor extensions on each PathItem exposing the half-open[effective_from, effective_to)range of the version resolved at the document’s effective instant (bothnullwhen unbounded)
CLI lemma server also exposes shell routes (/openapi.json, /health, /docs) that are
intentionally omitted from the generated document.
When explain is true, the document adds the x-explain header parameter
to evaluation operations and describes the optional explanation field on rule results.