Class GeneratorMain

java.lang.Object
io.micronaut.jsonschema.generator.GeneratorMain

@Internal public class GeneratorMain extends Object
An entry point to be used in tests, to simulate what the Source Generation from Json Schema plugin would do.
Author:
Elif Kurtay
  • Constructor Details

    • GeneratorMain

      public GeneratorMain()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      The main executable.
      Parameters:
      args - The argument array, consisting of:
      1. URL of input jsonfile.
      2. Input jsonfile location.
      3. Input Path to folder of json schema.
      4. The generation language.
      5. The output path and package name.
      6. An optional file name in case there is only one output file desired.
      7. An optional List of String that has allowed URL patterns that are accepted for the references inside the schema
      Throws:
      IOException - In case definition file path is incorrect.