Static types for JSON APIs
Browse cluster: OCaml Systems and Utilities →ATD (Adaptable Type Definitions) is a cross-language type definition system that generates efficient serializers, deserializers, and validators for JSON APIs. The project provides code generators targeting C++, D, Java, OCaml, Python, Scala, and TypeScript, along with companion tools like atdcat for syntax checking and reformatting, atddiff for detecting incompatibilities between type revisions, and the ability to export definitions to JSON Schema. The implementation is built in OCaml and uses libraries like RapidJSON for C++ output and Yojson for OCaml, with individual generators handling language-specific code generation and JSON interoperability. The project is developed and maintained by volunteers in the open-source community.