Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 818b212

Browse files
committed
Adds html in docs
1 parent b6781e1 commit 818b212

File tree

2 files changed

+4
-4
lines changed
  • modules
    • openapi-json-schema-generator-cli/src/main/java/org/openapitools/codegen/cmd
    • openapi-json-schema-generator/src/main/java/org/openapitools/codegen

2 files changed

+4
-4
lines changed

modules/openapi-json-schema-generator-cli/src/main/java/org/openapitools/codegen/cmd/ConfigHelp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private void generateMdConfigOptions(StringBuilder sb, CodegenConfig config) {
190190
// option
191191
sb.append(escapeHtml4(key)).append("|");
192192
// description
193-
sb.append(escapeHtml4(langCliOption.getDescription())).append("|");
193+
sb.append(langCliOption.getDescription()).append("|");
194194

195195
// values
196196
Map<String, String> enums = langCliOption.getEnum();

modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/CodegenConstants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,12 @@ public static enum ENUM_PROPERTY_NAMING_TYPE {camelCase, PascalCase, snake_case,
407407
public static final String NON_COMPLIANT_USE_DISCR_IF_COMPOSITION_FAILS = "nonCompliantUseDiscriminatorIfCompositionFails";
408408

409409
public static final String NON_COMPLIANT_USE_DISCR_IF_COMPOSITION_FAILS_DESC =
410-
"<p>When true, If the payload fails to validate against composed schemas (allOf/anyOf/oneOf/not) and a " +
410+
"When true, If the payload fails to validate against composed schemas (allOf/anyOf/oneOf/not) and a " +
411411
"discriminator is present, then ignore the composition validation errors and attempt to use the " +
412-
"discriminator to validate the payload.</p>" +
412+
"discriminator to validate the payload." +
413413
"<p>Note: setting this to true makes the generated client not comply with json schema because it ignores " +
414414
"composition validation errors. Please consider making your schemas more restrictive rather than " +
415-
"setting this to true. You can do that by:</p><ul>" +
415+
"setting this to true. You can do that by:<ul>" +
416416
"<li>defining the propertyName as an enum with only one value in the schemas that are in your discriminator map</li>" +
417417
"<li>setting additionalProperties: false in your schemas</li></ul>";
418418

0 commit comments

Comments
 (0)