Skip to content

[Question] What is the difference between baseName and paramName in allParams? #3015

@yuji38kwmt

Description

@yuji38kwmt

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions