Specification documents and API documentation for polyproto.
API documentation built with TypeSpec.
Find the pre-compiled OpenAPI v3.1 schema file(s) in the /build
directory. The schema is automatically built and deployed to the main
branch on every push to the main
branch.
The best way to contribute is to open an issue if you find any problems with the documentation. Creating an issue is generally the best way to contribute to any open source project. Issues allow for an exchange between contributors and maintainers to discuss the viability of implementing an issue, usually minimizing frustration.
You should also read our Code of Conduct and Contributing Guidelines before contributing.
You will need the following things installed on your computer:
Node.js >= 20
npm
. I personally preferpnpm
, but have found it to not work with TypeSpec. Maybe this is a me-issue, but I recommendnpm
for best compatibility nonetheless.git
TypeSpec
- install it globally withnpm install -g @typespec/compiler
- Navigate to the
/polyproto
directory. - Select the project you want to compile. In this example, we are compiling the
core
project. Navigate to that directory. - Run
tsp install
to install the dependencies. - Run
tsp compile .
to compile the project ortsp compile --watch .
to automatically recompile the project when you save a file. - The compiled OpenAPI3 schema will be in the
$PROJECT/tsp-output/@typespec/openapi3
directory.