Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
Better JSON and YAML support
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos Pasztor committed Mar 8, 2021
1 parent 5b732c3 commit 9ec42ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.9.11: Better JSON and YAML support

Explicitly disabled internal fields in JSON or YAML.

## 0.9.10: Minor fixes

This release cleans up various log messages and adds small fixes.
Expand Down
3 changes: 2 additions & 1 deletion config_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (e ExecutionMode) Validate() error {
}

// ExecutionConfig contains the configuration of what container to run in Docker.
//goland:noinspection GoVetStructTag
type ExecutionConfig struct {
// Launch contains the Docker-specific launch configuration.
Launch LaunchConfig `json:",inline" yaml:",inline"`
Expand Down Expand Up @@ -59,7 +60,7 @@ type ExecutionConfig struct {

// disableCommand is a configuration option to support legacy command disabling from the dockerrun config.
// See https://containerssh.io/deprecations/dockerrun for details.
disableCommand bool
disableCommand bool `json:"-" yaml:"-"`
}

// Validate validates the docker config structure.
Expand Down

0 comments on commit 9ec42ba

Please sign in to comment.