{"id":18863601,"url":"https://github.com/neiljbrown/json-schema-validation-examples","last_synced_at":"2026-04-29T22:07:24.413Z","repository":{"id":89469409,"uuid":"69118023","full_name":"neiljbrown/json-schema-validation-examples","owner":"neiljbrown","description":"JSON Schema validation examples","archived":false,"fork":false,"pushed_at":"2016-09-26T20:30:31.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T13:46:37.778Z","etag":null,"topics":["json-schema"],"latest_commit_sha":null,"homepage":"https://neiljbrown.com","language":"Java","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/neiljbrown.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":"2016-09-24T17:45:44.000Z","updated_at":"2023-02-21T15:12:24.000Z","dependencies_parsed_at":"2023-03-13T18:09:29.452Z","dependency_job_id":null,"html_url":"https://github.com/neiljbrown/json-schema-validation-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neiljbrown/json-schema-validation-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjson-schema-validation-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjson-schema-validation-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjson-schema-validation-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjson-schema-validation-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neiljbrown","download_url":"https://codeload.github.com/neiljbrown/json-schema-validation-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjson-schema-validation-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["json-schema"],"created_at":"2024-11-08T04:37:58.756Z","updated_at":"2026-04-29T22:07:24.369Z","avatar_url":"https://github.com/neiljbrown.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Schema Validation Examples\n\n## Overview\nThis project provides examples of how to test that your generated JSON conforms to an authored [JSON Schema](http://json-schema.org/) and, just as importantly, that your schema is a valid JSON Schema.\n\nThe JSON Schema validation used in these examples is implemented using the [json-schema-validator](https://github.com/daveclayton/json-schema-validator) library, which is written in Java. \n\nThe examples are implemented as a set of unit tests, themselves implemented using Java, JUnit (and AssertJ).\n\nThe supporting blog post [json schema part 2 - automating JSON validation tests in java](https://neiljbrown.com/2016/09/25/json-schema-part-2-automating-json-validation-tests/) \ncontains more details, including an explanation of the use-case used in the examples and the json-schema-validator library's API.\n\nIf you're new to JSON Schema you might find my earlier blog post useful - [Introducing JSON Schema](https://neiljbrown.com/2016/06/28/introducing-json-schema/). \n\n## Code\nThis project uses the [Maven Standard directory layout for Java](https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html). \n\nThe source code for the examples can be found in the src/test/java folder. The place to start is class \ncom.neiljbrown.examples.jsonschemavalidator.ViewingActivitySerialisationIntegrationTest.  (See the aforementioned \nblog post for more details). \n\n## Building and Running the Examples \nThe examples can be compiled and run using Gradle (see build.gradle).\n\nTo compile and run all the example tests, enter the  following command in the project's root folder:\n\n``gradle test``\n\nTo generate the Javadoc use, the following command:\n \n``gradle javadocTests``\n\nHope you find it useful.\n\n---\nBlog - [https://neiljbrown.com](https://neiljbrown.com)\n\nOther code - [https://bitbucket.org/neilbrown](https://bitbucket.org/neilbrown) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneiljbrown%2Fjson-schema-validation-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneiljbrown%2Fjson-schema-validation-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneiljbrown%2Fjson-schema-validation-examples/lists"}