Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Demonstrates how to validate JSON documents against JSON schemas using Justify.

License

NotificationsYou must be signed in to change notification settings

leadpony/justify-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

This project provides various kinds of code samples demonstrating how to validate JSON documents based onJSON Schema Specification, usingJustify.

How to Build Examples

Prerequisites

The following tools are required to build and run the examples in this repository.

  • JDK 9 or higher
  • One of the following build tools

Downloading Examples

All of the examples can be downloaded fromReleases Page.

For Justify version 2 users

Previously released examples for Justify version 2 can be downloaded fromRelease v2.1.0.

Building Examples

The commands below build all of the examples.

Build with Maven

$cd path/to/justify-examples$ mvn package

Build with Gradle

$cd path/to/justify-examples$ gradle build

Examples

This code sample shows how to validate a JSON document using the Streaming API ofJakarta JSON Processing API (JSON-P).

This code sample shows how to validate a JSON document using the Object Model API ofJakarta JSON Processing API (JSON-P).

This code sample shows how to validate a JSON document while unmarshalling the JSON document into a Plain Old Java Object, usingJakarta JSON Binding API (JSON-B).

This code sample shows how to implement your own problem handler,which processes the problems found in the validation.

This code sample shows how to build a JSON schema programmatically.The code validates a JSON document against the built schema.

This code sample shows how to resolve a referenced external JSON schema usingthe implementation class of JsonSchemaResolver.

This code sample shows how to implement your own format attribute,which can be used as the value of "format" keyword in the schema definition.

This code sample shows how to fill the missing properties and/or items in the instance with default values given bydefault keyword in the schema.

This code sample demonstrates how to validate a YAML document using JsonParser and JsonReader ofJakarta JSON Processing API.

License

All code samples in this repository are free and unencumbered software released into the public domain. Please readLICENSE file for more information.

About

Demonstrates how to validate JSON documents against JSON schemas using Justify.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp