package contract

  1. Overview
  2. Docs
Typed HTTP API contracts for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=22bb7430b72c2dd9c141679cc76c0ea5
sha512=d8e8687fd81b1191158ec6d7356887278eb7b7cd60114c4a7f13e52914e9c1ee17eeff37ffa81dd39b4104a553c3e457bacc78907f32ab279130ff5a76b5256f

doc/CHANGES.html

Changes

0.2.0 - 2026-06-09

  • Add pure response validation for declared status codes and JSON response bodies.
  • Add a helper for decoding validated response bodies.
  • Tighten response-validation tests for declared statuses and response body errors.

0.1.0 - 2026-05-24

Initial release of the pure OCaml contract core.

  • Add endpoint definitions, path matching, request validation, scalar and JSON decoding, and OpenAPI output.
  • Add percent-decoding for captured path parameters.
  • Include a users API example and focused Alcotest coverage.

Current scope is intentionally small. There are no HTTP adapters, typed clients, mock servers, or OpenAPI import yet.