Skip to content

Latest commit

 

History

History

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. 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 -g @redocly/cli

Without a global install, make spec-bundle falls back to npx -y @redocly/cli.

Generate the Bundle

make spec-bundle

This runs redocly and then restores the license header, which redocly drops along with the rest of the leading comment block. The script behind the target is spec/bundle.sh.

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.