| Crates.io | amalgam-parser |
| lib.rs | amalgam-parser |
| version | 0.6.4 |
| created_at | 2025-08-28 10:48:37.934429+00 |
| updated_at | 2025-09-01 23:47:04.152961+00 |
| description | Schema parsers for CRD, OpenAPI, and Go types for amalgam |
| homepage | https://github.com/seryl/amalgam |
| repository | https://github.com/seryl/amalgam |
| max_upload_size | |
| id | 1814005 |
| size | 290,645 |
Schema parsing library for amalgam, supporting multiple input formats.
amalgam-parser reads schemas from various sources and converts them to amalgam's unified intermediate representation.
use amalgam_parser::{Parser, CrdParser, OpenApiParser};
// Parse Kubernetes CRDs
let crd_parser = CrdParser::new();
let schema = crd_parser.parse_file("my-crd.yaml")?;
// Parse from live cluster
let schema = crd_parser.parse_from_cluster("my.crd.io", "v1")?;
// Parse OpenAPI spec
let openapi_parser = OpenApiParser::new();
let schema = openapi_parser.parse_file("openapi.yaml")?;