{"id":13439341,"url":"https://github.com/mandrean/postman-collection-rs","last_synced_at":"2026-04-01T23:27:35.256Z","repository":{"id":43918110,"uuid":"158004752","full_name":"mandrean/postman-collection-rs","owner":"mandrean","description":"A Postman Collection serialization \u0026 deserialization library, written in Rust.","archived":false,"fork":false,"pushed_at":"2026-03-22T11:01:18.000Z","size":121,"stargazers_count":11,"open_issues_count":1,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-22T11:07:37.301Z","etag":null,"topics":["deserialization","postman","postman-collection","rust","rust-library","serde","serde-json","serde-serialization","serialization"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandrean.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-17T16:48:14.000Z","updated_at":"2026-03-22T11:01:21.000Z","dependencies_parsed_at":"2024-10-27T23:11:22.524Z","dependency_job_id":"672cfc7b-0c14-4a79-a329-268f404432a4","html_url":"https://github.com/mandrean/postman-collection-rs","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"1a4b3758cf8214a30b58e1ecfd7ebe41ed9dcd98"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mandrean/postman-collection-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fpostman-collection-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fpostman-collection-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fpostman-collection-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fpostman-collection-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandrean","download_url":"https://codeload.github.com/mandrean/postman-collection-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fpostman-collection-rs/sbom","scorecard":{"id":614834,"data":{"date":"2025-08-11","repo":{"name":"github.com/mandrean/postman-collection-rs","commit":"bcdd3692b4190ec6a318a9b48a460f3c24474915"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":1,"reason":"Found 2/11 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T03:37:31.740Z","repository_id":43918110,"created_at":"2025-08-21T03:37:31.740Z","updated_at":"2025-08-21T03:37:31.740Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deserialization","postman","postman-collection","rust","rust-library","serde","serde-json","serde-serialization","serialization"],"created_at":"2024-07-31T03:01:13.094Z","updated_at":"2026-04-01T23:27:35.248Z","avatar_url":"https://github.com/mandrean.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries","库"],"sub_categories":["Encoding","加密 Encoding","编码(Encoding)"],"readme":"postman-collection-rs\n=====================\n[Postman Collection][postman_collection] serialization and deserialization library, written in Rust.\n\n[![CI](https://github.com/mandrean/postman-collection-rs/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mandrean/postman-collection-rs/actions/workflows/ci.yml)\n[![Latest version](https://img.shields.io/crates/v/postman_collection.svg)](https://crates.io/crates/postman_collection)\n[![Documentation](https://docs.rs/postman_collection/badge.svg)](https://docs.rs/postman_collection)\n![License](https://img.shields.io/crates/l/postman_collection.svg)\n\nOverview\n--------\n`postman_collection` provides typed Rust models for working with Postman Collection files.\nIt deserializes collections from JSON, identifies the supported collection version,\nand serializes the typed model back to JSON. YAML parsing and serialization are\navailable behind the optional `yaml` feature.\n\nCurrent highlights:\n\n- typed support for Postman Collection `v1.0.0`, `v2.0.0`, and `v2.1.0`\n- version-specific models exposed as `v1_0_0`, `v2_0_0`, and `v2_1_0`\n- strict version detection through the top-level `PostmanCollection` enum\n- convenient parsing helpers: `from_path`, `from_reader`, `from_str`, and `from_slice`\n- JSON serialization with `to_json`\n- optional YAML parsing and serialization with the `yaml` feature\n- regression coverage for version dispatch, round-tripping, and representative schema branches\n\nSupported Versions\n------------------\nThis crate currently supports Postman Collection:\n\n- `v1.0.0`\n- `v2.0.0`\n- `v2.1.0`\n\nVersion detection follows the collection format:\n\n- `v1.0.0` is detected from the legacy root collection shape.\n- `v2.0.0` and `v2.1.0` are detected from `info.schema`.\n\nCollections that look like `v2` but omit `info.schema`, or point at an unsupported schema\nversion, fail to deserialize instead of being guessed into the wrong version module.\n\nInstall\n-------\nJSON-only use (default):\n\n```toml\n[dependencies]\npostman_collection = \"0.3\"\n```\n\nEnable YAML serialization:\n\n```toml\n[dependencies]\npostman_collection = { version = \"0.3\", features = [\"yaml\"] }\n```\n\nUsage\n-----\n```rust\nfn main() -\u003e postman_collection::Result\u003c()\u003e {\n    let collection = postman_collection::from_path(\"path/to/postman-collection.json\")?;\n    println!(\n        \"Found {:?} collection named {}\",\n        collection.version(),\n        collection.name()\n    );\n    Ok(())\n}\n```\n\nIf you need version-specific fields, match on `PostmanCollection` directly:\n\n```rust\nuse postman_collection::{from_path, PostmanCollection};\n\nfn main() -\u003e postman_collection::Result\u003c()\u003e {\n    match from_path(\"path/to/postman-collection.json\")? {\n        PostmanCollection::V1_0_0(spec) =\u003e println!(\"v1 collection: {}\", spec.name),\n        PostmanCollection::V2_0_0(spec) =\u003e println!(\"v2.0.0 collection: {}\", spec.info.name),\n        PostmanCollection::V2_1_0(spec) =\u003e println!(\"v2.1.0 collection: {}\", spec.info.name),\n    }\n\n    Ok(())\n}\n```\n\nSee [examples/printer.rs](examples/printer.rs) for a complete runnable example.\n\nWith the `yaml` feature enabled, parsing helpers also accept YAML input and you can\nserialize a parsed collection as YAML:\n\n```rust\nuse postman_collection::{from_str, to_yaml};\n\nfn main() -\u003e postman_collection::Result\u003c()\u003e {\n    let input = r#\"{\n        \"info\": {\n            \"name\": \"Example\",\n            \"schema\": \"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\"\n        },\n        \"item\": []\n    }\"#;\n\n    let collection = from_str(input)?;\n    println!(\"{}\", to_yaml(\u0026collection)?);\n    Ok(())\n}\n```\n\nCurrent State\n-------------\nThe crate currently focuses on:\n\n- accurate deserialization into version-specific Rust types\n- stable serialization back to JSON\n- optional YAML parsing and serialization for callers that opt into the `yaml` feature\n- explicit handling of collection version selection\n- preserving representative schema branches exercised by the bundled fixtures and regression tests\n\nExamples of supported modeled areas include:\n\n- collection metadata and variables\n- folders and nested items\n- requests, headers, bodies, and URLs\n- responses and response metadata\n- auth helpers across the supported versions\n\nContribute\n----------\nThis project follows [semver], [conventional commits], and uses GitHub Actions plus\n[release-plz] for CI and releases.\n\nNote\n----\nInspired by [softprops/openapi](https://github.com/softprops/openapi).\n\n[postman_collection]: https://www.getpostman.com/collection\n[semver]: https://semver.org/\n[conventional commits]: https://www.conventionalcommits.org\n[release-plz]: https://release-plz.dev/docs/github/quickstart\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandrean%2Fpostman-collection-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandrean%2Fpostman-collection-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandrean%2Fpostman-collection-rs/lists"}