Creates a new ArvoContract instance with validated parameters.
Contract configuration parameters
Protected
Readonly
_descriptionProtected
Readonly
_metadataProtected
Readonly
_typeProtected
Readonly
_uriProtected
Readonly
_versionsGets the system error event specification for this contract. System errors follow a standardized format to handle exceptional conditions and failures in a consistent way across all contracts.
The error schema includes:
System errors are special events that:
Exports the ArvoContract instance as a plain object conforming to the IArvoContract interface. This method can be used to serialize the contract or to create a new instance with the same parameters.
Converts the ArvoContract instance to a JSON Schema representation. This method provides a way to represent the contract's structure and validation rules in a format that conforms to the JSON Schema specification.
Retrieves a specific version of the contract or resolves special version identifiers.
Version identifier or special version string
A versioned contract instance with type-safe schemas
Represents a contract with defined input and output schemas for event-driven architectures. The ArvoContract class provides type-safe validation and versioning capabilities for event handling, ensuring consistency in message passing between different parts of the system.
Example