{"id":15710104,"url":"https://github.com/perlpunk/yamlpp-tools","last_synced_at":"2026-04-29T18:33:00.535Z","repository":{"id":141768160,"uuid":"273318535","full_name":"perlpunk/yamlpp-tools","owner":"perlpunk","description":"YAML Schema Converter","archived":false,"fork":false,"pushed_at":"2020-06-20T01:17:36.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T16:31:22.478Z","etag":null,"topics":["yaml"],"latest_commit_sha":null,"homepage":"","language":"Perl","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/perlpunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-06-18T19:05:11.000Z","updated_at":"2020-06-23T17:49:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"0619039e-46f1-4ab8-a538-ce6096045cbd","html_url":"https://github.com/perlpunk/yamlpp-tools","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"2d7f50828552831a48de192bb555da4257212131"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perlpunk/yamlpp-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fyamlpp-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fyamlpp-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fyamlpp-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fyamlpp-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perlpunk","download_url":"https://codeload.github.com/perlpunk/yamlpp-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fyamlpp-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["yaml"],"created_at":"2024-10-03T21:03:19.917Z","updated_at":"2026-04-29T18:33:00.521Z","avatar_url":"https://github.com/perlpunk.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"Just a place for tools using YAML::PP\n\n## yamlpp-schema-convert\n\nExperimental script to convert types like booleans and numbers in a given\nYAML file from YAML 1.1 to 1.2. Keeps all whitespace and comments.\n\nTo get an impression on how many things are different in the two YAML versions,\nhave a look at the comparison of the [YAML 1.2 Core Schema and YAML 1.1\nTypes](https://perlpunk.github.io/yaml-test-schema/data.html).\nNot only booleans are different, but also tiny details in number formats.\n\nSee example files [in.yaml](/data/in.yaml) and [out.yaml](/data/out.yaml).\n\nExample usage:\n\n    % echo 'yes' | perl bin/yamlpp-schema-convert -\n    true\n    % echo '0o7' | perl bin/yamlpp-schema-convert -\n    '0o7'\n    % perl bin/yamlpp-schema-convert data/in.yaml \u003e data/out.yaml\n    % vimdiff data/in.yaml data/out.yaml\n\nTo highlight the files and see things like trailing spaces, you can use:\n\n    % yamlpp-highlight data/in.yaml\n    % yamlpp-highlight data/out.yaml\n\n### Dependencies\n\nPerl modules:\n* YAML::PP 0.22 [Repology](https://repology.org/project/perl:yaml-pp/versions)\n* Getopt::Long::Descriptive [Repology](https://repology.org/project/perl:getopt-long-descriptive/versions)\n\n### Limitations\n\nBecause this uses the lowlevel token API, it can't detect certain things.\n\nCorrect:\n\n    - YES\n    # will be converted to\n    - true\n\nCorrect:\n\n    - !!str YES\n    # not converted\n    - !!str YES\n\nNot correct:\n\n    - !!str\n       YES\n    # will be converted to\n    - !!str\n       true\n\nAlso it doesn't convert quoted strings:\n\n    - !!bool 'yes'\n    # not converted\n    - !!bool 'yes'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlpunk%2Fyamlpp-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperlpunk%2Fyamlpp-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlpunk%2Fyamlpp-tools/lists"}