java-to-zod-maven-plugin – java-to-zod:generate (original) (raw)
Full name:
sh.ivan:java-to-zod-maven-plugin:0.6.2:generate
Description:
Generates Zod schemas from specified java classes.
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
compile
. - The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
process-classes
.
Required Parameters
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
List | - | Classes to process. | |
List | - | Classes to process specified by extended superclasses. | |
boolean | - | Scans JAX-RS resources for JSON classes to process. It is possible to exclude particular REST resource classes using excludeClasses parameter. | |
String | - | Scans specified JAX-RS javax.ws.rs.core.Application for classes to process. Parameter contains fully-qualified class name. It is possible to exclude particular REST resource classes using excludeClasses parameter. | |
List | - | Classes to process specified by implemented interface. | |
List | - | Classes to process specified by annotations. | |
List | - | Classes to process specified using glob patterns so it is possible to specify package or class name suffix. Glob patterns support two wildcards: Single * wildcard matches any character except for . and $. Double ** wildcard matches any character. For more information and examples see Class Names Glob Patterns Wiki page. | |
List | - | List of classes excluded from processing. | |
List | - | Excluded classes specified using glob patterns. For more information and examples see Class Names Glob Patterns Wiki page. | |
List | - | Properties with any of these annotations will be excluded. | |
GsonConfiguration | - | Specifies Gson global configuration. Description of individual parameters is in GsonConfiguration class on GitHub (latest version). | |
List | - | If this list is not empty then only properties with any of these annotations will be included. | |
Jackson2Configuration | - | Specifies Jackson 2 global configuration. Description of individual parameters is in Jackson2Configuration class on GitHub (latest version). | |
JsonbConfiguration | - | Specifies JSON-B global configuration. Description of individual parameters is in Jackson2Configuration class on GitHub (latest version). | |
Logger$Level | - | Specifies level of logging output. Supported values are: Debug Verbose Info Warning Error Default value is Verbose. | |
List | - | Allows to speed up classpath scanning by limiting scanning to specified packages. This optimization applies to following parameters: classPatterns classesImplementingInterfaces classesExtendingClasses classesWithAnnotations classesFromAutomaticJaxrsApplication This parameter is passed directly to underlying classpath scanning library (ClassGraph) without any validation or interpretation. | |
boolean | - | If true Spring REST application will be loaded and scanned for classes to process. It is needed to specify application class using another parameter (for example classes). | |
String | - | Prefix added to generated schema names. | |
String | - | Suffix added to generated schema names.Default value is: Schema. | |
boolean | - | (no description)User property is: java.to.zod.skip. |
Parameter Details
Classes to process.
- Type:
java.util.List<java.lang.String>
- Required:
No
Classes to process specified by extended superclasses.
- Type:
java.util.List<java.lang.String>
- Required:
No
Scans JAX-RS resources for JSON classes to process. It is possible to exclude particular REST resource classes using excludeClasses
parameter.
- Type:
boolean
- Required:
No
Scans specified JAX-RS javax.ws.rs.core.Application
for classes to process. Parameter contains fully-qualified class name. It is possible to exclude particular REST resource classes using excludeClasses
parameter.
- Type:
java.lang.String
- Required:
No
Classes to process specified by implemented interface.
- Type:
java.util.List<java.lang.String>
- Required:
No
Classes to process specified by annotations.
- Type:
java.util.List<java.lang.String>
- Required:
No
Classes to process specified using glob patterns so it is possible to specify package or class name suffix. Glob patterns support two wildcards:
- Single
*
wildcard matches any character except for.
and$
. - Double
**
wildcard matches any character.
For more information and examples see Class Names Glob Patterns Wiki page.
- Type:
java.util.List<java.lang.String>
- Required:
No
List of classes excluded from processing.
- Type:
java.util.List<java.lang.String>
- Required:
No
Excluded classes specified using glob patterns. For more information and examples see Class Names Glob Patterns Wiki page.
- Type:
java.util.List<java.lang.String>
- Required:
No
Properties with any of these annotations will be excluded.
- Type:
java.util.List<java.lang.String>
- Required:
No
Specifies Gson global configuration. Description of individual parameters is in GsonConfiguration class on GitHub (latest version).
- Type:
cz.habarta.typescript.generator.GsonConfiguration
- Required:
No
If this list is not empty then only properties with any of these annotations will be included.
- Type:
java.util.List<java.lang.String>
- Required:
No
Specifies Jackson 2 global configuration. Description of individual parameters is in Jackson2Configuration class on GitHub (latest version).
- Type:
cz.habarta.typescript.generator.Jackson2Configuration
- Required:
No
Specifies JSON-B global configuration. Description of individual parameters is in Jackson2Configuration class on GitHub (latest version).
- Type:
cz.habarta.typescript.generator.JsonbConfiguration
- Required:
No
Library used in JSON classes. Supported values are:
jackson2
- annotations from `com.fasterxml.jackson.annotation` packagejaxb
- annotations from `javax.xml.bind.annotation` packagegson
- annotations from `com.google.gson.annotations` packagejsonb
- annotations from `javax.json.bind.annotation` package
Required parameter, recommended value is jackson2
.
- Type:
cz.habarta.typescript.generator.JsonLibrary
- Required:
Yes
Specifies level of logging output. Supported values are:
Debug
Verbose
Info
Warning
Error
Default value is Verbose
.
- Type:
cz.habarta.typescript.generator.Logger$Level
- Required:
No
Path and name of generated file.
- Type:
java.io.File
- Required:
Yes
- Default:
${project.build.directory}/java-to-zod/${project.artifactId}-schemas.js
Allows to speed up classpath scanning by limiting scanning to specified packages. This optimization applies to following parameters:
classPatterns
classesImplementingInterfaces
classesExtendingClasses
classesWithAnnotations
classesFromAutomaticJaxrsApplication
This parameter is passed directly to underlying classpath scanning library (ClassGraph) without any validation or interpretation.
- Type:
java.util.List<java.lang.String>
- Required:
No
If true
Spring REST application will be loaded and scanned for classes to process. It is needed to specify application class using another parameter (for example classes
).
- Type:
boolean
- Required:
No
Prefix added to generated schema names.
- Type:
java.lang.String
- Required:
No
Suffix added to generated schema names.
- Type:
java.lang.String
- Required:
No
- Default:
Schema
(no description)
- Type:
boolean
- Required:
No
- User Property:
java.to.zod.skip