Skip to content

Add validation for mandatory args for class constructor in 'configmap.py' #1424

@oharan2

Description

@oharan2

data is a mandatory arg, validation should be more strict.

Draft (TODO after #1422 merged):

if not self.yaml_file:
     if not self.data:
           ---raise
     self.res.setdefault("data", {}).update(self.data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions