{"id":22696983,"url":"https://github.com/szykol/yang-validator","last_synced_at":"2025-03-29T18:22:43.949Z","repository":{"id":265316228,"uuid":"895764129","full_name":"szykol/yang-validator","owner":"szykol","description":"Backend for yang-validator app. Validate yang files on the fly.","archived":false,"fork":false,"pushed_at":"2024-11-28T21:23:26.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T19:17:57.636Z","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/szykol.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-11-28T21:17:37.000Z","updated_at":"2024-11-28T21:23:30.000Z","dependencies_parsed_at":"2024-11-28T22:25:36.880Z","dependency_job_id":"95dd9f22-ab5a-4803-b77c-93aedd3ef03a","html_url":"https://github.com/szykol/yang-validator","commit_stats":null,"previous_names":["szykol/yang-validator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szykol%2Fyang-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szykol%2Fyang-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szykol%2Fyang-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szykol%2Fyang-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szykol","download_url":"https://codeload.github.com/szykol/yang-validator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246224520,"owners_count":20743386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-12-10T05:11:47.061Z","updated_at":"2025-03-29T18:22:43.928Z","avatar_url":"https://github.com/szykol.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yang Validator\n\nWIP\n\nSimple backend for Yang Validator app.\nThe aim is to provide easy adhoc yang validation.\n\n## Credits\n\nThis project uses [openconfig/goyang](https://github.com/openconfig/goyang) for the yang validation.\n\n## Usage\n\nFor MVP implementation the yang validation is done via HTTP server to get the project up \u0026 running without need of creating my own protocol.\nThis will be adjusted to the needs of frontend and probably changed in the future.\n\nThe one and only endpoint is `/validate` that simply accepts bytes and returns `200 OK` if provided yang is valid. Otherwise `400 Bad Request` will be returned with validation error details sent as bytes.\n\n\u003e **NOTE**: User inputs are not yet sanitized or validated and are passed directly to the parsing lib.\n\n```bash\n# example of valid yang\ncurl localhost:1337/validate -d 'module small { namespace \"http://example.com/small\"; prefix small; }'\nOK\n# example of invalid yang\ncurl localhost:1337/validate -d 'module {'\nError: Invalid YANG: :2:0: missing 1 closing brace\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszykol%2Fyang-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszykol%2Fyang-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszykol%2Fyang-validator/lists"}