Skip to content

Improve validation schema for list_or_dict fields #2008

Closed

Description

@dnephin

Right now extra_hosts and labels use "one of: object or array", but no validation is done on the contents of the object.

I think this can be improved by creating a schema for the object that uses patternProperties, so that it will fail if someone uses nested objects, or arrays within the object.

{
  "type": "object",
  "patternProperties": {"type": "string"},
}

Activity

  1. dnephin commented on Sep 8, 2015

    @dnephin
    Author

    Apparently you've already have a fix for this in #2000!

  2. changed the title [-]Improve validation schema for environment field[/-] [+]Improve validation schema for list_or_dict fields[/+] on Sep 8, 2015
  3. dnephin commented on Sep 8, 2015

    @dnephin
    Author

    I've updated this issue to be about the list_or_dict schema, since it has the same issue, and isn't fixed by #2000

  4. added 5 commits that reference this issue on Nov 13, 2015
    47369c1
    5a5e54a
    cfb0b93
    58efcc8
    efec2aa
  5. added a commit that references this issue on Dec 3, 2015
    5d39813
  6. added a commit that references this issue on Dec 20, 2015
    a709e2d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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