Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #9386
Closed
Open
Issue created May 03, 2021 by Administrator@rootContributor

[BUG] `python-flask` incorrect boolean literal in unit tests.

Created by: edupo

Description

Given a model where a property is declared with type bool and using the openapi-generator-cli version 5.1.0 and the generator python-flask the generated test body values reads as follows:

body = {
  "boolean_property": true
}

Being true, not the right literal for expressing a True value in python (Note the capital T).

openapi-generator version

5.1.0

Generation Details

Generator python-flask

Suggest a fix

There must be an issue with the defined boolean values in the generator templates.

Assignee
Assign to
Time tracking