server
Declares transport-level settings: listener interface and port binding, connection timeouts, maximum request body size, RFC 9457 problem type resolution, and global OpenAPI metadata.
Declaration
Transport attributes
All attributes are optional and inherit production-ready defaults.
Child blocks
problem
Configures RFC 9457 Problem Details error type resolution for the application.
Problem type URI resolution
- Without
problem.type_prefix(default): Emits standard URNs (urn:hclapi:error:bad-request). - With a documentation URL:
type_prefix = "https://docs.example.com/errors/"resolves tohttps://docs.example.com/errors/bad-request. - With a custom URN prefix:
type_prefix = "urn:acme:error:"resolves tourn:acme:error:bad-request.
openapi
Declares top-level metadata for the automatically compiled OpenAPI 3.1 specification (title, description, deployment servers, category tags, contact, and license).
Full OpenAPI reference
All available options are documented in the OpenAPI configuration guide.