Skip to content

Commit 7daf104

Browse files
feat: add operation registry generator, robust YAML/JSON parsing, and 50+ real-world OpenAPI specs
Add a new registry generator that emits static operation metadata (method, path, params, body, response schema) for CLI/proxy routing use cases. Support registry_only mode to skip types/client generation entirely. Harden spec parsing: handle YAML integers exceeding i64/u64 range, add lossy JSON fallback, and improve $ref schema name extraction for non-standard ref patterns. Make Info.version optional since some specs omit it. Include 50+ real-world OpenAPI specs (Stripe, GitHub, Cloudflare, etc.) with download script and batch test harness for validation coverage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cb6f34e commit 7daf104

72 files changed

Lines changed: 3338976 additions & 25 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/complete_workflow.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ fn demonstrate_rust_api(
311311
streaming_config: None,
312312
nullable_field_overrides: std::collections::BTreeMap::new(),
313313
schema_extensions: vec![],
314+
enable_registry: false,
315+
registry_only: false,
314316
};
315317

316318
// Generate code

specs/anthropic.yaml

Lines changed: 15757 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)