Skip to content

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Dec 20, 2022

No description provided.

types/types.go Outdated
//
// When marshaled to YAML, nil command fields will be omitted if `omitempty`
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `''`)
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or ``)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ndeloof you're IDE again?

Suggested change
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or ``)
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `''`)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😓 I thought I found the right option to prevent this.

types/types.go Outdated
// When marshaled to JSON, the `omitempty` struct must NOT be specified.
// If the command field is nil, it will be serialized as `null`.
// Explicitly empty commands (i.e. `[]` or `''`) will serialize to an empty
// Explicitly empty commands (i.e. `[]` or ``) will serialize to an empty
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same?

Suggested change
// Explicitly empty commands (i.e. `[]` or ``) will serialize to an empty
// Explicitly empty commands (i.e. `[]` or `''`) will serialize to an empty

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndeloof ndeloof merged commit b764b46 into compose-spec:master Dec 20, 2022
@ndeloof ndeloof deleted the sync branch December 20, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants