Overview of openapi-format
mainopenapi-format is a tool for formatting OpenAPI documents by ordering fields, applying casing rules, filtering elements, and applying overlays. It helps standardize OpenAPI specifications for public documentation, maintenance, and CI/CD pipelines.
Key Capabilities:
- Ordering: Sort OpenAPI fields hierarchically or alphabetically.
- Formatting: Apply casing (camelCase, PascalCase, etc.) and clean indentation for JSON/YAML.
- Filtering: Remove specific elements like internal endpoints, beta tags, or unused components based on methods, tags, or operationIDs.
- Transformation: Split large documents into multi-file structures, bundle references, or convert between OpenAPI versions (3.0/3.1 to 3.1/3.2).
- Customization: Use OpenAPI Overlays to extend or customize existing documents.