-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Describe the bug
Boolean default values are resolved as class instead of primitive type. Generated output looks like this:
public bool Test { get; set; } = Namespace.bool.False;
Object description in source:
TestObject:
type: object
properties:
test:
type: boolean
default: false
example: true
enum:
- false
- trueVersion of NSwag toolchain, computer and .NET runtime used
v14.6.1.0
Expected behavior
public bool Test { get; set; } = false;
Metadata
Metadata
Assignees
Labels
No labels