From eb507b288eb3198aa2e8b173aa6f83c35fce2259 Mon Sep 17 00:00:00 2001 From: Joe Littlejohn Date: Fri, 15 Sep 2017 12:19:53 +0100 Subject: [PATCH] Add includeAdditionalProperties Closes #782 --- jsonschema2pojo-gradle-plugin/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jsonschema2pojo-gradle-plugin/README.md b/jsonschema2pojo-gradle-plugin/README.md index 5a3f5074b..b6d4a7ae4 100644 --- a/jsonschema2pojo-gradle-plugin/README.md +++ b/jsonschema2pojo-gradle-plugin/README.md @@ -45,6 +45,12 @@ dependencies { // Each configuration is set to the default value jsonSchema2Pojo { + + // Whether to allow 'additional' properties to be supported in classes by adding a map to + // hold these. This is true by default, meaning that the schema rule 'additionalProperties' + // controls whether the map is added. Set this to false to globabally disable additional properties. + includeAdditionalProperties = false + // Whether to generate builder-style methods of the form withXxx(value) (that return this), // alongside the standard, void-return setters. generateBuilders = false