Common Target Features
The following features are supported by all code generation targets.
Generator Options
- Output Directory
-
Specifies the output directory for generated files.
CLI Option Gradle Plugin Properties Type Default -out
outputDir
directory None - Output Categories
-
Selects which categories of output types are generated.
CLI Option Gradle Plugin Properties Type Allowed Values Default -category
generateModel
,generateService
flags service
,model
None Note
The option can be specified multiple times, each enabling output of the specified category.
- Service Suffix
-
Specifies the suffix appended to each generated service name.
CLI Option Gradle Plugin Property Type Default -service-suffix
serviceSuffix
string API
- Default Media Type Ordering
-
Specifies the order of default media types.
CLI Option Gradle Plugin Property Type Default -media-type
defaultMediaTypes
strings None Note
The CLI option can be specified multiple times, the order in which they are specified controls the default order of media-types.
- Default Problem Base URI
-
Specifies the default base URI to use for resolving problem type URIs
CLI Option Gradle Plugin Property Type Default -problem-base
None string http://example.com