-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Description
What I want to do
I want to custimze template with editing mustache file.
I execute following command because I find out which variables are available.
$ java -jar openapi-generator-cli-4.0.0.jar generate -i petstore.yaml -g python -o out -DdebugOperations
"allParams" : [ {
"isFormParam" : false,
"isQueryParam" : true,
"isPathParam" : false,
"isHeaderParam" : false,
"isCookieParam" : false,
"isBodyParam" : false,
"hasMore" : false,
"isContainer" : false,
"secondaryParam" : false,
"isCollectionFormatMulti" : false,
"isPrimitiveType" : true,
"isModel" : false,
"baseName" : "limit",
"paramName" : "limit",
"dataType" : "int",
"dataFormat" : "int32",
"description" : "How many items to return at one time (max 100)",
"unescapedDescription" : "How many items to return at one time (max 100)",
"example" : "56",
"jsonSchema" : "{\r\n \"name\" : \"limit\",\r\n \"in\" : \"query\",\r\n \"description\" : \"How many items to return at one time (max 100)\",\r\n \"required\" : false,\r\n \"style\" : \"form\",\r\n \"explode\" : true,\r\n \"schema\" : {\r\n \"type\" : \"integer\",\r\n \"format\" : \"int32\"\r\n }\r\n}",
"isString" : false,
"isNumeric" : false,
"isInteger" : true,
"isLong" : false,
"isNumber" : false,
"isFloat" : false,
"isDouble" : false,
"isByteArray" : false,
"isBinary" : false,
"isBoolean" : false,
"isDate" : false,
"isDateTime" : false,
"isUuid" : false,
"isEmail" : false,
"isFreeFormObject" : false,
"isListContainer" : false,
"isMapContainer" : false,
"isFile" : false,
"isEnum" : false,
"vendorExtensions" : { },
"hasValidation" : false,
"isNullable" : false,
"required" : false,
"exclusiveMaximum" : false,
"exclusiveMinimum" : false,
"uniqueItems" : false
} ],Question
What is tjhe difference between baseName and paramName in allParams ?
And Where is meaning of variable documented.
Reactions are currently unavailable