Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenAPI Tools
openapi-generator
Commits
6b956bb7
Commit
6b956bb7
authored
2 years ago
by
Chao Yang
Browse files
Options
Download
Email Patches
Plain Diff
Update descriptions and comments and fix typo
parent
58e318ad
Pipeline
#700
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConstants.java
+1
-1
.../main/java/org/openapitools/codegen/CodegenConstants.java
modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
+4
-4
...rc/main/java/org/openapitools/codegen/DefaultCodegen.java
with
5 additions
and
5 deletions
+5
-5
modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConstants.java
+
1
-
1
View file @
6b956bb7
...
...
@@ -361,7 +361,7 @@ public class CodegenConstants {
"An 'array' schema is a list of sub schemas in a OAS document"
;
public
static
final
String
GENERATE_FORM_AS_MODEL
=
"generateFormAsModel"
;
public
static
final
String
GENERATE_FORM_AS_MODEL_DESC
=
"Generate model implementation for request form body."
;
public
static
final
String
GENERATE_FORM_AS_MODEL_DESC
=
"Generate model implementation for request
with url encoded
form body."
;
public
static
final
String
USE_COMPARE_NET_OBJECTS
=
"useCompareNetObjects"
;
public
static
final
String
USE_COMPARE_NET_OBJECTS_DESC
=
"Use KellermanSoftware.CompareNetObjects for deep recursive object comparison. WARNING: this option incurs potential performance impact."
;
...
...
This diff is collapsed.
Click to expand it.
modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
+
4
-
4
View file @
6b956bb7
...
...
@@ -262,7 +262,7 @@ public class DefaultCodegen implements CodegenConfig {
// acts strictly upon a spec, potentially modifying it to have consistent behavior across generators.
protected
boolean
strictSpecBehavior
=
true
;
// flag to indicate whether to generate model for request form body
// flag to indicate whether to generate model for request
with url encoded
form body
protected
boolean
generateFormAsModel
=
false
;
// flag to indicate whether enum value prefixes are removed
...
...
@@ -7605,7 +7605,7 @@ public class DefaultCodegen implements CodegenConfig {
}
/**
* Get the boolean value indicating whether to generate model for request form body
* Get the boolean value indicating whether to generate model for request
with url encoded
form body
*/
@Override
public
boolean
isGenerateFormAsModel
()
{
...
...
@@ -7613,9 +7613,9 @@ public class DefaultCodegen implements CodegenConfig {
}
/**
* Set the boolean value indicating whether to generate model for request form body
* Set the boolean value indicating whether to generate model for request
with url encoded
form body
*
* @param generateFormAsModel true to generate model for request form bo
bies
* @param generateFormAsModel true to generate model for request
with url encoded
form bo
dy
*/
@Override
public
void
setGenerateFormAsModel
(
final
boolean
generateFormAsModel
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment