Skip to content

Commit 4f15a45

Browse files
committed
Added missing web service documentation properties
1 parent e45b3d3 commit 4f15a45

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

jsonvalidator-common/src/main/java/eu/europa/ec/itb/json/ApplicationConfig.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class ApplicationConfig extends eu.europa.ec.itb.validation.commons.confi
2626
private String defaultExternalSchemaCombinationApproachDescription;
2727
private String defaultValidationTypeDescription;
2828
private String defaultLocationAsPointerDescription;
29+
private String defaultAddInputToReportDescription;
2930
private String defaultLocaleDescription;
3031
private Map<String, String> branchErrorMessages;
3132
private Set<String> branchErrorMessageValues;
@@ -177,6 +178,20 @@ public String getDefaultLocaleDescription() {
177178
return defaultLocaleDescription;
178179
}
179180

181+
/**
182+
* @return The default web service input description for the add input to report option.
183+
*/
184+
public String getDefaultAddInputToReportDescription() {
185+
return defaultAddInputToReportDescription;
186+
}
187+
188+
/**
189+
* @param defaultAddInputToReportDescription The default web service input description for the add input to report option.
190+
*/
191+
public void setDefaultAddInputToReportDescription(String defaultAddInputToReportDescription) {
192+
this.defaultAddInputToReportDescription = defaultAddInputToReportDescription;
193+
}
194+
180195
/**
181196
* @param defaultLocaleDescription The default web service input description for the locale to use.
182197
*/
@@ -197,6 +212,7 @@ public void init() {
197212
defaultLabels.put(ValidationConstants.INPUT_VALIDATION_TYPE, defaultValidationTypeDescription);
198213
defaultLabels.put(ValidationConstants.INPUT_LOCATION_AS_POINTER, defaultLocationAsPointerDescription);
199214
defaultLabels.put(ValidationConstants.INPUT_EXTERNAL_SCHEMA_COMBINATION_APPROACH, defaultExternalSchemaCombinationApproachDescription);
215+
defaultLabels.put(ValidationConstants.INPUT_ADD_INPUT_TO_REPORT, defaultAddInputToReportDescription);
200216
defaultLabels.put(ValidationConstants.INPUT_LOCALE, defaultLocaleDescription);
201217
// Branch error messages.
202218
branchErrorMessageValues = new HashSet<>(getBranchErrorMessages().values());

jsonvalidator-common/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ validator.defaultValidationTypeDescription = The type of validation to perform (
4141
validator.defaultExternalSchemasDescription = A list of maps that defines external schemas to consider in addition to any preconfigured ones. Each map item corresponds to a schema file and defines the following keys: 'content' (the schema content to consider, see 'contentToValidate' for its semantics), 'embeddingMethod' (the way to consider the 'content' value).
4242
validator.defaultLocationAsPointerDescription = Whether or not the location reported for returned errors will be a JSON pointer (default false). False will return the line number in the input.
4343
validator.defaultSchemaCombinationApproachDescription = The way to combine externally provided schemas in case multiple are defined ('allOf', 'anyOf', 'oneOf'). Default is 'allOf'.
44+
validator.defaultAddInputToReportDescription = Whether the returned XML validation report should also include the validated input as context information.
4445
validator.defaultLocaleDescription = Locale (language code) to use for reporting of results. If the provided locale is not supported by the validator the default locale will be used instead (e.g. "fr", "fr_FR").
4546
# Special engine messages for branch reporting.
4647
validator.branchErrorMessages.anyOf = At least one of the following sets of problems must be resolved.

0 commit comments

Comments
 (0)