{"id":15519535,"url":"https://github.com/orasik/json-schema-validator-api","last_synced_at":"2026-05-03T12:34:23.303Z","repository":{"id":85767259,"uuid":"115042874","full_name":"orasik/json-schema-validator-api","owner":"orasik","description":"API example to validate POST json request against Json Schema with go lang","archived":false,"fork":false,"pushed_at":"2017-12-22T23:00:43.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-18T14:43:53.472Z","etag":null,"topics":["gin-gonic","go","json-schema"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/orasik.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,"zenodo":null}},"created_at":"2017-12-21T20:07:58.000Z","updated_at":"2023-03-05T04:04:42.000Z","dependencies_parsed_at":"2023-05-15T12:30:54.172Z","dependency_job_id":null,"html_url":"https://github.com/orasik/json-schema-validator-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orasik/json-schema-validator-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasik%2Fjson-schema-validator-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasik%2Fjson-schema-validator-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasik%2Fjson-schema-validator-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasik%2Fjson-schema-validator-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orasik","download_url":"https://codeload.github.com/orasik/json-schema-validator-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orasik%2Fjson-schema-validator-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32569714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["gin-gonic","go","json-schema"],"created_at":"2024-10-02T10:21:54.389Z","updated_at":"2026-05-03T12:34:23.295Z","avatar_url":"https://github.com/orasik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/orasik/json-schema-validator-api.svg?branch=master)](https://travis-ci.org/orasik/json-schema-validator-api)\n[![Go Report Card](https://goreportcard.com/badge/github.com/orasik/json-schema-validator-api)](https://goreportcard.com/report/github.com/orasik/json-schema-validator-api)\n# Data Validation API\nData validation API example to validate POST json request against Json Schema with go lang.\n\n\n### Packages\n- [Gin Framework](https://gin-gonic.github.io/gin/)\n- [xeipuuv/gojsonschema](https://github.com/xeipuuv/gojsonschema)\n- [logrus](https://github.com/sirupsen/logrus)\n\n### How to run\n\n#### 1) If you have golang installed:\n\n- Clone the repo\n- go get -v \u0026\u0026 go build -o api\n- ./api --port 8080\n\n\nMake a valid request:\n\n```bash\ncurl -X POST \\\n  http://localhost:8080/api/person \\\n  -H 'cache-control: no-cache' \\\n  -H 'content-type: application/json' \\\n  -d '{\n\t\"firstName\": \"Go\",\n\t\"lastName\": \"lang\"\n}'\n```\n\nresponse would be:\n\n```json\n{\n    \"success\": true,\n    \"errors\": {}\n}\n```\n\nInvalid request:\n\n```bash\ncurl -X POST \\\n  http://localhost:8080/api/person \\\n  -H 'cache-control: no-cache' \\\n  -H 'content-type: application/json' \\\n  -d '{\n\t\"noName\": \"Go\",\n\t\"lastName\": \"lang\"\n}'\n```\n\nresponse:\n\n```json\n{\n    \"success\": false,\n    \"errors\": {\n        \"firstName\": \"firstName is required\"\n    }\n}\n```\n\n### 2) With Docker (coming soon ...)\n\n\n### Running test\n\n```bash\ngo test -v\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forasik%2Fjson-schema-validator-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forasik%2Fjson-schema-validator-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forasik%2Fjson-schema-validator-api/lists"}