Thorntail configuration schema generator

Utility that can be used to generate a JSON Schema which can be used to validate Thorntail YAML configuration files

License

License

Categories

Categories

JSON Data
GroupId

GroupId

io.codelens
ArtifactId

ArtifactId

thorntail-json-schema-generator
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Thorntail configuration schema generator
Utility that can be used to generate a JSON Schema which can be used to validate Thorntail YAML configuration files
Project URL

Project URL

https://github.com/codelens-io/thorntail-json-schema-generator
Source Code Management

Source Code Management

https://github.com/codelens-io/thorntail-json-schema-generator

Download thorntail-json-schema-generator

How to add to project

<!-- https://jarcasting.com/artifacts/io.codelens/thorntail-json-schema-generator/ -->
<dependency>
    <groupId>io.codelens</groupId>
    <artifactId>thorntail-json-schema-generator</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.codelens/thorntail-json-schema-generator/
implementation 'io.codelens:thorntail-json-schema-generator:1.1.1'
// https://jarcasting.com/artifacts/io.codelens/thorntail-json-schema-generator/
implementation ("io.codelens:thorntail-json-schema-generator:1.1.1")
'io.codelens:thorntail-json-schema-generator:jar:1.1.1'
<dependency org="io.codelens" name="thorntail-json-schema-generator" rev="1.1.1">
  <artifact name="thorntail-json-schema-generator" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.codelens', module='thorntail-json-schema-generator', version='1.1.1')
)
libraryDependencies += "io.codelens" % "thorntail-json-schema-generator" % "1.1.1"
[io.codelens/thorntail-json-schema-generator "1.1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.reflections : reflections jar 0.9.11
io.thorntail : full jar

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.2.0

Project Modules

There are no modules declared in this project.

License Build Status Coverage Status Maven Central

Thorntail (formerly wildfly-swarm) configuration schema generator

This utility can be used to generate a JSON Schema which can be used to validate Thorntail (wildfly-swarm) YAML configuration files (eg.: project-defaults.yml).

The currently generated schema files can be downloaded from the releases page

  • thorntail-schema-2.4.0.json
  • thorntail-schema-2.4.0-compact.json
  • thorntail-schema-2.4.0.properties

Usage

To generate schema files build the project, and run the jar:

$ mvn clean package
$ cd target;
$ java -jar thorntail-json-schema-generator-1.1.1.jar 2.4.0 ~/Developer/thorntail

Thorntail schema generator
============================================================
version: 2.4.0
output directory: /Users/user/Developer/thorntail/
building schema model...
writing schema files...
... done

The jar file requires at least one parameter, which is the version, the second parameter is the output directory. If omitted, the current directory will be used.

The result thorntail-schema-<version>-compact.json can be used in IntelliJ IDEA to validate the configuration file, ot the validation can be done with other command line tools, like: pajv

pajv -s path/to/thorntail-schema-2.4.0.json -d path/to/project-defaults.yml

The utility also builds a properties file with the available parameters (with type and documentation).

License

This project is licensed under Apache 2.0 license.

io.codelens

CodeLens

Versions

Version
1.1.1
1.1.0