Skip to content

Commit

Permalink
generateUnreferencedSchemas renamed to generateUnreferencedObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Stojsavljevic committed Apr 16, 2018
1 parent 23c9fd3 commit 0707675
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Then simply include the following code in the POM of the project you wish to gen
<addTimestampFolder>false</addTimestampFolder>
<basePackage>com.gen.wow</basePackage>
<baseUri>/api</baseUri>
<generateUnreferencedSchemas>true</generateUnreferencedSchemas>
<generateUnreferencedObjects>true</generateUnreferencedObjects>
<generationConfig>
<includeAdditionalProperties>false</includeAdditionalProperties>
...
Expand Down Expand Up @@ -96,8 +96,8 @@ Then simply include the following code in the POM of the project you wish to gen
### baseUri
(optional) Base URI for generated Spring controllers. This overrules the baseUri attribute from inside the .raml spec.

### generateUnreferencedSchemas
(optional) Determines whether POJOs for unreferenced schemas included in the RAML file should be generated.
### generateUnreferencedObjects
(optional) Determines whether POJOs for unreferenced schemas or data types included in the RAML file should be generated.

### generationConfig
(optional) This object contains a map of configuration for the JsonSchema2Pojo generator. The full list of configurable attributes, their description and default values can be found here [GenerationConfig][]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ public class SpringMvcEndpointGeneratorMojo extends AbstractMojo {
protected String schemaLocation;

/**
* A boolean indicating whether the POJOs for unreferenced schemas defined
* in the RAML file should be generated. By default, such schemas are not
* generated.
* A boolean indicating whether the POJOs for unreferenced objects (schemas
* and data types) defined in the RAML file should be generated. By default,
* such schemas/types are not generated.
*/
@Parameter(required = false, readonly = true, defaultValue = "false")
protected Boolean generateUnreferencedSchemas;
protected Boolean generateUnreferencedObjects;

/**
* The explicit base path under which the rest endpoints should be located.
Expand Down Expand Up @@ -268,7 +268,7 @@ protected void generateEndpoints() throws IOException {
}

generateCode(null, controllers, rootDir);
if (this.generateUnreferencedSchemas) {
if (this.generateUnreferencedObjects) {
generateUnreferencedObjects(codeModel, loadRamlFromFile, resolvedRamlPath, rootDir, controllers);
}

Expand Down

0 comments on commit 0707675

Please sign in to comment.