This project shows how easy it is to:
- Write type-safe Java code against JSON Schema imported into ALFA
- Validate and create clean JSON conforming to the model
- Import newer versions of JSON Schema to update ALFA models
- Quickly see model changes between versions
Suade Fire is used as the example JSON Schema model.
This project publishes documentation generated from ALFA.
As part of the Maven build (mvn clean install -P gen-docs
) of this project, the following is generated, and published on github-pages.
-
Data Model Documentation - https://schemarise.github.io/demo-alfa-with-fire-json-model
-
Data Model Changes - differences between versions;
-
src/main/alfa
contains ALFA definitions imported from Fire models -
JsonDataProcessingTest.java
contains example of reading JSON in Java and validating/processing. -
Branches of this project exist corresponding to Fire github project release tags - e.g. v24.10.
-
ALFA Change Analyzer report is configured to run against the last release tag.
-
Once
mvn clean install
is run on this project.target/generated-sources/java
- contains Java generated code, conforming to the ALFA model
-
Running
mvn install -P gen-docs
, generates documentation and change analysis reportstarget/generated-sources/changeanalyzer
- contains report of changes between the last release and currenttarget/generated-sources/markdown
- contains Markdown documentation for the model, and deployed to < site >
-
src/main/resources/fire
contains the JSON models and test JSON file snapshot fromgithub.com/SuadeLabs/fire
used to build ALFA models
Having the model in ALFA opens the door to many possibilities.
Interested to learn more? Get in touch with us at info@schemarise.com.