Skip to content

JSON Schema Configuration

Alexey Valikov edited this page Apr 27, 2015 · 2 revisions

Synopsis

<jsonix:jsonSchema
    fileName="${module.name}.jsonschema"/>

Configures JSON Schema generation (primarily a file name pattern) for modules.

Configuration attributes

  • fileName, optional - file name pattern for the generated files.
    Supports the special ${module.name} expression which will be substituted with the module name.
    Defaults to ${module.name}.jsonschema.

JSON Schema configuration

If the jsonSchema element is configured within module, it will be used to write out the module's JSON Schema. Every jsonSchema configured for the module will generate its own JSON Schema file (named based on the fileName pattern).

Default JSON Schema configuration

If the jsonSchema is configured on the top level (i.e. not within any module), it provides default JSON Schema configuration for modules. If some module does not declare any JSON Schema configuration, default JSON Schema configuration will be applied.

Clone this wiki locally