Versions in this module Expand all Collapse all v0 v0.1.0 Sep 19, 2026 Changes in this version + const NativeBindingsVersion + const SchemaVersion + type Contract struct + func Compile(program *language.Program, schema *Schema) (*Contract, error) + func (c *Contract) Schema() Schema + func (c *Contract) ValidateRequest(operationID string, request Request, limits validation.Limits) (validation.Report, error) + func (c *Contract) ValidateResponse(operationID, status string, response Response, original *Request, ...) (validation.Report, error) + type Error struct + Code string + Message string + OperationID string + Status string + func (e *Error) Error() string + type NativeBindings struct + Operations []NativeOperationBinding + Version string + type NativeHeaderBinding struct + FieldPath []string + Name string + type NativeMediaBinding struct + MediaType string + type NativeOperationBinding struct + OperationID string + Parameters []NativeParameterBinding + RequestBody *NativeMediaBinding + Responses []NativeResponseBinding + type NativeParameterBinding struct + FieldPath []string + In string + Name string + type NativeResponseBinding struct + Body *NativeMediaBinding + Headers []NativeHeaderBinding + Status string + type OperationBinding struct + Method string + OperationID string + Path string + RequestType string + Responses []ResponseBinding + type Request struct + Body value.Data + Headers value.Data + Parameters value.Data + type Response struct + Body value.Data + Headers value.Data + type ResponseBinding struct + ContextType string + ResponseType string + Status string + type Schema struct + Native *NativeBindings + Operations []OperationBinding + Version string