From 0707675c60be2a0317245d1102b437f4291f85ca Mon Sep 17 00:00:00 2001 From: Aleksandar Stojsavljevic Date: Mon, 16 Apr 2018 12:45:46 +0200 Subject: [PATCH] generateUnreferencedSchemas renamed to generateUnreferencedObjects --- README.md | 6 +++--- .../plugin/SpringMvcEndpointGeneratorMojo.java | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8494c8fd..db6a84c8 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Then simply include the following code in the POM of the project you wish to gen false com.gen.wow /api - true + true false ... @@ -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][] diff --git a/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/plugin/SpringMvcEndpointGeneratorMojo.java b/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/plugin/SpringMvcEndpointGeneratorMojo.java index f3dc162b..32d3e790 100644 --- a/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/plugin/SpringMvcEndpointGeneratorMojo.java +++ b/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/plugin/SpringMvcEndpointGeneratorMojo.java @@ -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. @@ -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); }