Bug Report Checklist
[DataMember(Name="true", EmitDefaultValue=false)]
Expected:
[DataMember(Name="on", EmitDefaultValue=false)]
Description
I created a schema component for which one of the propties is called on. Somewhere in the generation step, the value on gets lost is translated to true
openapi-generator version
I'm using version 6.2.0
It's a regression. It used to work in version 5.x.x
OpenAPI declaration file content or url
openapi: 3.0.0
info:
version: 0.0.1
title: Test
paths:
/:
get:
summary: get test
responses:
'200':
description: OK
servers:
- url: http://localhost:81
components:
schemas:
Effect:
properties:
on:
description: If true, turns on the visual effect. If false, turn off the visual effect.
type: boolean
Generation Details
Steps to reproduce
- save the yml file as
example.yml
- Run:
openapi-generator-cli generate -g csharp -i ./file.yml -o client
Related issues/PRs
Suggest a fix
Bug Report Checklist
Actual:
Expected:
Description
I created a schema component for which one of the propties is called
on. Somewhere in the generation step, the valueongets lost is translated totrueopenapi-generator version
I'm using version 6.2.0
It's a regression. It used to work in version 5.x.x
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
example.ymlopenapi-generator-cli generate -g csharp -i ./file.yml -o clientRelated issues/PRs
Suggest a fix