Create a DELETE contract under this group.
Optionalname: stringMark every contract created from this group as deprecated.
Declare shared route-owned application errors for contracts in this group.
Catalog errors use Beignet's standard error envelope and remain separate
from framework-owned errors. Declarations merge with previously declared
group errors, and contracts created from the group merge these shared
errors with route-level .errors() declarations; later declarations win
when the same catalog key is declared twice.
Create a GET contract under this group.
Optionalname: stringCreate a HEAD contract under this group.
Optionalname: stringAdd a shared request header schema to contracts created from this group.
Merge shared metadata into contracts created from this group.
Set the namespace for contracts created from this group.
The namespace prefixes contract names, not paths. Use prefix(...) for
path composition.
Create an OPTIONS contract under this group.
Optionalname: stringCreate a PATCH contract under this group.
Optionalname: stringCreate a POST contract under this group.
Optionalname: stringAdd a path prefix to contracts created from this group.
Prefixes compose immutably, so prefix("/api").prefix("/v1") produces
paths under /api/v1.
Create a PUT contract under this group.
Optionalname: stringAdd shared route-owned response schemas to contracts created from this group.
Framework-owned responses, such as validation or auth hook failures, do not need to be declared here.
Feature-scoped factory for related HTTP contracts.
Contract groups let a feature share a namespace, path prefix, headers, responses, errors, and metadata across multiple endpoint contracts. The group is immutable: every configuration method returns a new group.