{"id":26194171,"url":"https://github.com/fl64/d8-doc-ru-linter","last_synced_at":"2026-04-26T02:32:05.176Z","repository":{"id":240523321,"uuid":"802866268","full_name":"fl64/d8-doc-ru-linter","owner":"fl64","description":"CRD linter for d8 doc-ru-*.yaml CRDs","archived":false,"fork":false,"pushed_at":"2024-05-20T08:50:17.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T13:44:41.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fl64.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":"2024-05-19T13:37:58.000Z","updated_at":"2024-05-20T08:50:20.000Z","dependencies_parsed_at":"2024-05-19T14:51:24.628Z","dependency_job_id":null,"html_url":"https://github.com/fl64/d8-doc-ru-linter","commit_stats":null,"previous_names":["fl64/d8-doc-ru-linter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fl64/d8-doc-ru-linter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl64%2Fd8-doc-ru-linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl64%2Fd8-doc-ru-linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl64%2Fd8-doc-ru-linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl64%2Fd8-doc-ru-linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fl64","download_url":"https://codeload.github.com/fl64/d8-doc-ru-linter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl64%2Fd8-doc-ru-linter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32284333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"online","status_checked_at":"2026-04-26T02:00:05.962Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-12T01:55:32.189Z","updated_at":"2026-04-26T02:32:04.944Z","avatar_url":"https://github.com/fl64.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d8-doc-ru-linter\n\n## Build\n\n```bash\ntask local-build\n```\n\n## Test\n\n```bash\ntask test\n```\n\n## Usage\n\n```\nUsage: d8-doc-ru-linter [--debug] [--fail] --source SOURCE [--destination DESTINATION] [--new NEW]\n\nOptions:\n  --debug                turn on debug mode\n  --fail                 fail if there are diffs\n  --source SOURCE, -s SOURCE\n                         origin CRD\n  --destination DESTINATION, -d DESTINATION\n                         destination CRD\n  --new NEW, -n NEW      file to save merged CRD\n  --help, -h             display this help and exit\n\n```\n\n## Examples\n\nGenerate new normalized CRD\n\n```bash\n./d8-doc-ru-linter -s ./testdata/src.yaml -n new.yaml\n```\n\nMerge two CRDs\n\n- Keys that are present in source and missing in destination will be added\n- Keys that are not in source and are in destination will be deleted\n- The values of all other keys in destination will remain unchanged\n\n```bash\n./d8-doc-ru-linter -s ./testdata/src.yaml -d ./testdata/dst.yaml -n new.yaml\n```\n\nJust check if some diffs exist\n\n```bash\n./d8-doc-ru-linter -s ./testdata/src.yaml -d ./testdata/dst.yaml -n /dev/null | jq .\n```\n\nOutput:\n\n```json\n{\n  \"count\": 4,\n  \"operations\": [\n    {\n      \"path\": \"/spec/versions/v2\",\n      \"op\": \"add\"\n    },\n    {\n      \"path\": \"/spec/versions/v1/schema/openAPIV3Schema/properties/p1-object/properties/p1-1-object/properties/only-in-src\",\n      \"op\": \"add\"\n    },\n    {\n      \"path\": \"/spec/versions/v1/schema/openAPIV3Schema/properties/p1-object/properties/p1-1-object/properties/only-in-dst\",\n      \"op\": \"delete\"\n    },\n    {\n      \"path\": \"/spec/versions/v0\",\n      \"op\": \"delete\"\n    }\n  ]\n}\n```\n\nFail with exit code 33 if some diffs exist\n\n```bash\n./d8-doc-ru-linter -s ./testdata/src.yaml -d ./testdata/dst.yaml -n /dev/null --fail\n```\n\nUsing docker\n\n```bash\ndocker run -it -v ${PWD}:/tmp index.docker.io/fl64/d8-doc-ru-linter:v0.0.1-dev0 /d8-doc-ru-linter -s /tmp/testdata/src.yaml -d /tmp/testdata/dst.yaml -n /dev/null\n\n# {\"count\":4,\"operations\":[{\"path\":\"/spec/versions/v2\",\"op\":\"add\"},{\"path\":\"/spec/versions/v1/schema/openAPIV3Schema/properties/p1-object/properties/p1-1-object/properties/only-in-src\",\"op\":\"add\"},{\"path\":\"/spec/versions/v1/schema/openAPIV3Schema/properties/p1-object/properties/p1-1-object/properties/only-in-dst\",\"op\":\"delete\"},{\"path\":\"/spec/versions/v0\",\"op\":\"delete\"}]}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl64%2Fd8-doc-ru-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffl64%2Fd8-doc-ru-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl64%2Fd8-doc-ru-linter/lists"}