- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 7.3k
Closed
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When generating with kotlin-spring on version 7.13.0 or 7.14.0, this schema will produce an error:
"The boolean literal does not conform to the expected type String"
Version 7.12.0 does not cause this problem
openapi-generator version
7.13.0 & 7.14.0 -- it works fine on 7.12.0
OpenAPI declaration file content or url
openapi: 3.0.4
info:
    title: Boolean bug
    version: 1.0.0
paths:
    /example:
        post:
            parameters:
            - name: headerBoolean
              in: header
              schema:
                type: boolean
                default: false
            responses:
                "200":
                    description: "N/A"Generation Details
generator options:
kotlin-spring
delegatePattern true
useSpringBoot3 true
modelMutable true
Steps to reproduce
Just generate with these parameters and it will generate invalid Kotlin.