tree: 9355ecf6777b244c01373a8f07ebdaf16f9cc31e [path history] [tgz]
  1. generated/
  2. polaris-catalog-apis/
  3. iceberg-rest-catalog-open-api.yaml
  4. polaris-catalog-service.yaml
  5. polaris-management-service.yml
  6. README.md
spec/README.md

Apache Polaris API Specifications

Apache Polaris provides the following OpenAPI specifications:

Generated Specification Files

The specification files in the generated folder are automatically created using OpenAPI bundling tools such as Redocly CLI.

These files should not be manually edited (except adding license header). They are intended for preview purposes only, such as rendering a preview on a website.

Whenever the source specification files are updated, the generated files must be re-generated to reflect those changes.

Below are steps to generate bundled-polaris-catalog-service.yaml

Install redocly-cli

npm install @redocly/cli -g

Generate the Bundle

redocly bundle spec/polaris-catalog-service.yaml -o spec/generated/bundled-polaris-catalog-service.yaml

Note: the license header will be removed after the bundle generation, please manually add it back.

Updating the Iceberg specification

The file iceberg-rest-catalog-open-api.yaml is copied from the upstream Iceberg REST catalog spec.

However, when copying it, you may need to make some nonfunctional changes to ensure that the generated Python types still allow all tests to pass. You can regenerate the Python client by running:

make client-regenerate

For more context, see PR #2192.