omnigraph/crates/omnigraph-server
Claude 4c07d3c095
Make /openapi.json reflect runtime auth configuration
The served OpenAPI spec now matches runtime behavior: when no bearer
tokens or policy are configured (open mode), the spec omits security
schemes and per-operation security requirements. When auth is active,
the full bearer_token security metadata is included.

Also fixes SecurityAddon to initialize components if absent, and
removes the redundant utoipa dev-dependency.

Adds 5 new tests covering open-mode vs auth-mode spec serving.

https://claude.ai/code/session_01NfoPVx21rZUQned1f7WpXY
2026-04-12 11:04:13 +00:00
..
src Make /openapi.json reflect runtime auth configuration 2026-04-12 11:04:13 +00:00
tests Make /openapi.json reflect runtime auth configuration 2026-04-12 11:04:13 +00:00
Cargo.toml Add OpenAPI spec generation via utoipa with /openapi.json endpoint 2026-04-12 11:03:23 +00:00