Skip to content

Add type properties #53

@blakeembrey

Description

@blakeembrey
  • Any
    • @id - for referencing across schema and to other schemas
    • description - user description of type
  • String
    • minLength - string validation
    • maxLength - string validation
    • pattern - string validation
  • String, Number, Date, DateTime, Property
    • min - minimum valid value (e.g. 1900-01-01, aaa, 1)
    • max - maximum valid value (e.g. 2010-01-01, bbb, 9)
  • Intersection, Union
    • types - list of valid types
  • List
    • minItems - minimum number of items
    • maxItems - maximum number of items
  • Object
    • properties - list of valid properties
    • additionalProperties - validate additional properties not matched (e.g. "force invalid here")
  • Property, Object
    • minProperties - minimum matching properties when using key schema
    • maxProperties - maximum matching properties when using key schema
  • Property
    • key - allow key to be a schema or primitive value
    • required - equal to minProperties == 1
  • Tuple
    • tuple - list of valid properties for ordered tuple

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions