All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java-wrapper.1.5.2.source-code.jsonPackage.schema.json Maven / Gradle / Ivy

Go to download

Java wrapper around RosaeNLG (JavaScript Natural Language Generation library), using GraalVM

There is a newer version: 3.2.2
Show newest version
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://rosaenlg.org/jsonPackage.schema.json",
  "title": "RosaeNLG JsonPackage",
  "description": "A JSON package containing RosaeNLG templates",
  "type": "object",
  "properties": {
    "templateId": {
      "description": "ID of the template",
      "type": "string"
    },
    "entryTemplate": {
      "description": "entry point of the Pug template",
      "type": "string"
    },
    "compileInfo": {
      "description": "informations to compile the template",
      "type": "object",
      "properties": {
        "language": {
          "description": "language",
          "type": "string"
        },
        "compileDebug": {
          "description": "activates Pug compile debug",
          "type": "boolean"
        }
      },
      "required": [ "language" ]
    },

    "templates": {
      "description": "templates: map of template path and name to template content",
      "additionalProperties": {
        "type": "string"
      }
    },

    "autotest": {
      "description": "informations to autotest the template",
      "type": "object",
      "properties": {
        "activate": {
          "description": "autotest is activated",
          "type": "boolean"
        },
        "input": {
          "description": "json input to make the test rendering",
          "type": "object"
        },
        "expected": {
          "description": "expected result: the rendered string must contain each of the string in the list",
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1          
        }
      },
      "required": [ "activate", "input", "expected" ]
    },
    "compiled": {
      "description": "the pre compiled templated",
      "type": "string"
    }
  },
  "required": [ "templateId", "entryTemplate", "compileInfo", "templates" ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy