Skip to content

Commit 965a5ce

Browse files
committed
update docs
1 parent 4d4e2b3 commit 965a5ce

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

docs/generators/java-camel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
6868
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
6969
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
7070
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
71-
|includeHttpRequestContext|Whether to include HttpServletRequest (blocking) or ServerWebExchange (reactive) as additional parameter in generated methods. Defaults to 'true' for reactive and 'false' for blocking.| |false|
71+
|includeHttpRequestContext|Whether to include HttpServletRequest (blocking) or ServerWebExchange (reactive) as additional parameter in generated methods. Defaults to 'true' for reactive and 'false' for blocking.| |true (reactive) / false (blocking)|
7272
|interfaceOnly|Whether to generate only API interface stubs without the server files.| |false|
7373
|invokerPackage|root package for generated code| |org.openapitools.api|
7474
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C# have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|false|

docs/generators/spring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
6161
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
6262
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
6363
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
64-
|includeHttpRequestContext|Whether to include HttpServletRequest (blocking) or ServerWebExchange (reactive) as additional parameter in generated methods. Defaults to 'true' for reactive and 'false' for blocking.| |false|
64+
|includeHttpRequestContext|Whether to include HttpServletRequest (blocking) or ServerWebExchange (reactive) as additional parameter in generated methods. Defaults to 'true' for reactive and 'false' for blocking.| |true (reactive) / false (blocking)|
6565
|interfaceOnly|Whether to generate only API interface stubs without the server files.| |false|
6666
|invokerPackage|root package for generated code| |org.openapitools.api|
6767
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C# have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|false|

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import io.swagger.v3.oas.models.media.Schema;
2626
import io.swagger.v3.oas.models.servers.Server;
2727
import io.swagger.v3.oas.models.tags.Tag;
28+
import io.swagger.v3.parser.util.SchemaTypeUtil;
2829
import lombok.Getter;
2930
import lombok.Setter;
3031
import org.apache.commons.lang3.StringUtils;
@@ -288,9 +289,9 @@ public SpringCodegen() {
288289
cliOptions.add(CliOption.newBoolean(USE_SPRING_BOOT3,
289290
"Generate code and provide dependencies for use with Spring Boot ≥ 3 (use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.",
290291
useSpringBoot3));
291-
cliOptions.add(CliOption.newBoolean(INCLUDE_HTTP_REQUEST_CONTEXT,
292+
cliOptions.add(new CliOption(INCLUDE_HTTP_REQUEST_CONTEXT,
292293
"Whether to include HttpServletRequest (blocking) or ServerWebExchange (reactive) as additional parameter in generated methods. Defaults to 'true' for reactive and 'false' for blocking.",
293-
defaultIncludeHttpRequestContextForBlocking));
294+
SchemaTypeUtil.BOOLEAN_TYPE).defaultValue("true (reactive) / false (blocking)"));
294295
cliOptions.add(CliOption.newBoolean(GENERATE_CONSTRUCTOR_WITH_REQUIRED_ARGS,
295296
"Whether to generate constructors with required args for models",
296297
generatedConstructorWithRequiredArgs));

0 commit comments

Comments
 (0)