Skip to content

forge@0.4.0

Latest

Choose a tag to compare

@Swimburger Swimburger released this 30 Nov 15:06
· 7 commits to main since this release
92a192f

Bumps Forge to 0.4.0. Adds OpenAPI Overlay 1.0/1.1/1.2 support and unifies CLI diagnostic logging.

Breaking changes

  • forge normalize -v / --verbose is replaced by a global --log-level <error|warn|info|debug|trace> flag and the FORGE_LOG environment variable. The new flag controls diagnostic logging across every subcommand. Scripts that passed -v or --verbose to forge normalize must switch to --log-level or FORGE_LOG. (#116)

Added

  • forge openapi overlay <inputs>... applies one or more OpenAPI Overlay 1.0, 1.1, or 1.2 documents to a JSON or YAML OpenAPI spec. Prints the merged spec to stdout, or writes it with --out (atomic in-place rewrite preserving permissions, symlinks, and hard links). Supports Mode A (overlay drives the spec via extends) and Mode B (spec plus one or more overlays applied in order). Composes upstream of forge generate through a pipe. No network access: $self and extends accept only relative references, urn:, and local file: URIs. (#116)

Changed

  • forge generate and forge inspect accept a prepared, self-contained OpenAPI document. OpenAPI-to-OpenAPI transforms (forge normalize, forge openapi overlay, future transforms) are separate commands that compose upstream through a pipe. (#116)

Full changelog: https://github.com/cloudflare/forge/compare/forge@0.3.0...forge@0.4.0