Skip to content

Scenario🔗

TODO: Should this live here given it's not used in the dataquery?

Definition🔗

type Scenario struct {
    Id string `json:"id"`
    Name string `json:"name"`
    StringInput string `json:"stringInput"`
    Description *string `json:"description,omitempty"`
    HideAliasField *bool `json:"hideAliasField,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode Scenario from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (scenario *Scenario) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two Scenario objects.

func (scenario *Scenario) Equals(other Scenario) bool

Validate🔗

Validate checks all the validation constraints that may be defined on Scenario fields for violations and returns them.

func (scenario *Scenario) Validate() error

See also🔗