Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 28 May 18:56
· 47 commits to main since this release
dc9a4f6

Added

  • (generate) integrate envelope detection into build()
  • (generate) integrate operationId strategy into builder
  • (cli) add envelope detection CLI flags
  • (generate) integrate tag rules strategy into builder
  • add envelope module for discriminator-based response splitting
  • (cli) add operationId and tag strategy CLI flags
  • add operation_id module with camelCase derivation and collision resolution
  • add tag_rules module with regex-based tag matching

Fixed

  • (cli) show correct value name and help text for --redact-patterns
  • (cli) stop splitting --redact-patterns on comma, fail invalid regex under --strict
  • (envelope) pin discriminator field to boolean enum:[false] in ApiError
  • (envelope) merge all error bodies in infer_api_error, not just first
  • (test) normalize CRLF in snapshot comparison, add .gitattributes eol=lf
  • (output) sort maps for deterministic YAML output

Other

  • (changelog) add bugfix entries from MEXC integration testing
  • document operationId, tags, and envelope features
  • (integration) add end-to-end test for operationId, tags, and envelope
  • add snapshot test pinning current generate output

Added

  • (generate) add --operation-id-strategy {none,path,template} flag for stable operationId generation
  • (generate) add --operation-id-overrides <path> for per-operation overrides via YAML
  • (generate) add --operation-id-template <string> for custom operationId templates
  • (generate) add --tag-strategy {legacy,none,path-segment,rules} flag
  • (generate) add --tag-rules <path> for regex-based tag assignment from YAML
  • (generate) add --tag-segment-index <N> to use a specific path segment as tag
  • (generate) add --envelope-discriminator <field> for discriminator-based response splitting
  • (generate) add --envelope-error-shape <path> for hand-supplied ApiError schema
  • (generate) add --envelope-success-component-suffix <string> (default Success)
  • (output) sort paths and component schemas alphabetically for deterministic YAML output

Fixed

  • (envelope) infer_api_error now merges all error bodies, not just the first — an outlier msg: 0 no longer overrides thousands of msg: "string" samples
  • (envelope) inferred ApiError schema now includes the discriminator field pinned with enum: [false]
  • (cli) --redact-patterns no longer splits on , — regex quantifiers like {32,} now work correctly (pass multiple patterns via repeated flags)
  • (cli) invalid --redact-patterns regex now hard-fails under --strict instead of silently skipping redaction

Found and fixed by integration testing against a 3.1 GB MEXC capture in mexc-reversed-sdk.