Skip to content

Commit 8af6b74

Browse files
[Java] Discriminator lookup should not be case insensitive by default (#5894)
* Add 'discriminatorCaseSensitive' property * Discriminator value lookup should not be case insensitive * fix typo * run scripts * execute ./bin/utils/export_docs_generators.sh * fix discriminator mapping, add code comments
1 parent aca8089 commit 8af6b74

File tree

25 files changed

+93
-20
lines changed

25 files changed

+93
-20
lines changed

docs/generators/groovy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ sidebar_label: groovy
1818
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
1919
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2020
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
21+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2122
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2223
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2324
|groupId|groupId in generated pom.xml| |org.openapitools|

docs/generators/java-inflector.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sidebar_label: java-inflector
2020
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2121
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2222
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
23+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2324
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2425
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2526
|groupId|groupId in generated pom.xml| |org.openapitools|

docs/generators/java-msf4j.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sidebar_label: java-msf4j
2020
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2121
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2222
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
23+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2324
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2425
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2526
|groupId|groupId in generated pom.xml| |org.openapitools|

docs/generators/java-pkmst.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ sidebar_label: java-pkmst
2121
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2222
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2323
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
24+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2425
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2526
|eurekaUri|Eureka URI| |null|
2627
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|

docs/generators/java-play-framework.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ sidebar_label: java-play-framework
2323
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2424
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2525
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
26+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2627
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2728
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2829
|groupId|groupId in generated pom.xml| |org.openapitools|

docs/generators/java-undertow-server.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sidebar_label: java-undertow-server
2020
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2121
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2222
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
23+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2324
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2425
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2526
|groupId|groupId in generated pom.xml| |org.openapitools|

docs/generators/java-vertx-web.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sidebar_label: java-vertx-web
2020
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2121
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2222
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
23+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2324
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2425
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2526
|groupId|groupId in generated pom.xml| |org.openapitools|

docs/generators/java-vertx.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sidebar_label: java-vertx
2020
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2121
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2222
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
23+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2324
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2425
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2526
|groupId|groupId in generated pom.xml| |org.openapitools|

docs/generators/java.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ sidebar_label: java
2121
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2222
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2323
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
24+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2425
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2526
|feignVersion|Version of OpenFeign: '10.x' (default), '9.x' (deprecated)| |false|
2627
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|

docs/generators/jaxrs-cxf-cdi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sidebar_label: jaxrs-cxf-cdi
2020
|developerOrganization|developer organization in generated pom.xml| |OpenAPITools.org|
2121
|developerOrganizationUrl|developer organization URL in generated pom.xml| |http://openapitools.org|
2222
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
23+
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
2324
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
2425
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
2526
|generateBuilders|Whether to generate builders for models.| |false|

0 commit comments

Comments
 (0)