Skip to content

Eventstate does not default the 'exclusive' field to true. #17

@alankm

Description

@alankm

What happened:

Unmarshaling a workflow with an Event state that has an unspecified 'exclusive' field. The value for the field is 'false'.

What you expected to happen:

The spec states that the default value for 'exclusive' should be 'true'.

Anything else we need to know?:

If a key is missing in JSON Go will unmarshal it to the type's default value. The default value for a boolean in Go is false. To fix this you could either change the field to a pointer to a bool or write a custom json unmarshaler for the struct.

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions