Commit 6b956bb7 authored by Chao Yang's avatar Chao Yang
Browse files

Update descriptions and comments and fix typo

parent 58e318ad
Pipeline #700 failed with stages
in 0 seconds
Showing with 5 additions and 5 deletions
+5 -5
......@@ -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.";
......
......@@ -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 bobies
* @param generateFormAsModel true to generate model for request with url encoded form body
*/
@Override
public void setGenerateFormAsModel(final boolean generateFormAsModel) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment