Skip to content

Support for conditional requirement of variables #203

@MB175

Description

@MB175
type Specification struct {
	FEATURETOGGLE   bool `required:"true"`
	FEATURESETTING  string `conditionalRequired:"{FEATURETOGGLE == true}"`

}

Feature description:

  • Be able to make field a requirement based on the fact if a given condition is met or not.
    For example, if the featuretoogle is turned on make all fields with the conditionalRequired Tag required if their condition is met.

Feel free to close this right away if this feature is somehow present already, in case I overlooked it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions