Swift Package Registry - OpenAPI Specification
June 15, 2021 ยท View on GitHub
This project generates an OpenAPI (v3) Specification describing the endpoints of the proposed Swift package registry interface It uses OpenAPIKit to construct and verify the specification in Swift.
Rendered documentation from the latest build of the specification can be found here.
Requirements
- Swift 5.3+
- Node v14+
- npm
Usage
Build and run the generate executable to print the specification to stdout.
$ swift run generate
Run the following command to generate a static HTML reference
in the dist directory:
$ make