OpenAPI-Delphi is an OpenAPI 3.0 library for Delphi that helps you to generate (and load) OpenAPI 3.0 documentation (in JSON) starting from plain Delphi classes. Delphi-OpenAPI uses the Neon serialization library to transform the OpenAPI models from Delphi classes to JSON and to load a OpenAPI document into a Delphi (OpenAPI) object. Please take a look at the Demo to see OpenAPI-Delphi in action.
- OpenAPI document generation (JSON) from a Delphi (OpenAPI) object
- OpenAPI loading and parsing into a Delphi (OpenAPI) object (:star2: new in 2.0)
- Use plain Delphi classes to set the OpenAPI specification sections & fields
- Support for JSON Schema (the OpenAPI version)
- Support for Schema field recursion (:star2: new in 2.0)
- Full Support for enum of any type (:star2: new in 2.0)
- Use 1-line code (using the Neon library) to transform from and to JSON documents
This library has been tested with Delphi 12 Athens, Delphi 11 Alexandria, Delphi 10.4 Sydney, Delphi 10.3 Rio, Delphi 10.2 Tokyo.
- Full validation for the OpenAPI models