Skip to content

[REQ] [Php] Convert boolean value for query string #11683

@ksvirkou-hubspot

Description

@ksvirkou-hubspot

Is your feature request related to a problem? Please describe.

our API gets bool value in query string
valid value are "param=true" or "param=false"

but Codegen converts it to "param=1" or "param=0"

Can we create some config param or setting where we can choose method for converting bool value for query string?

Describe the solution you'd like

{
    "name": "archived",
    "in": "query",
    "description": "Whether to include archived custom actions.",
    "required": false,
    "style": "form",
    "explode": true,
    "schema": {
        "type": "boolean",
        "default": false
    }
}

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