Coder Social home page Coder Social logo

codelens-io / thorntail-json-schema-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 28 KB

Thorntail configuration schema generator

License: Other

Java 100.00%
json-schema-generator json-schema thorntail wildfly-swarm java java-8 yaml yaml-validator yml

thorntail-json-schema-generator's Introduction

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.

thorntail-json-schema-generator's People

Contributors

majk1 avatar

Watchers

 avatar

Forkers

zigc raambabun

thorntail-json-schema-generator's Issues

Example simple thorntail project

It would be good if the generator result could be tested on a simple example thorntail project with a yaml configuration file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.