Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justin-tay/json-schema-validator-native-example
https://github.com/justin-tay/json-schema-validator-native-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/justin-tay/json-schema-validator-native-example
- Owner: justin-tay
- License: apache-2.0
- Created: 2024-06-10T05:16:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T05:57:35.000Z (4 months ago)
- Last Synced: 2024-07-10T06:29:59.797Z (4 months ago)
- Language: Java
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Schema Validator Native Example
Example to demonstrate the JSON Schema Validator can compile and run as a native binary.
## Building
This project used GraalVM for JDK 21.
The prerequisites and instructions for compiling native images are listed at [Getting Started with GraalVM](https://www.graalvm.org/jdk21/docs/getting-started/).
#### JDK Regular Expressions
The default maven profile only enables the use of JDK Regular Expressions.
```shell
mvn clean
mvn -Pnative native:compile
```#### GraalJS Regular Expressions
```shell
mvn clean
mvn -Pnative,graaljs native:compile
```#### Joni Regular Expressions
```shell
mvn clean
mvn -Pnative,joni native:compile
```## Running
The default will run against a sample schema and input.
```shell
cd target
json-schema-validator-native-example
```The schema and input can be specified.
```shell
cd target
json-schema-validator-native-example -input file:///d:/input.json -schema file:///d:/schema.json
```