Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type properties #53

Open
blakeembrey opened this issue Sep 3, 2018 · 0 comments
Open

Add type properties #53

blakeembrey opened this issue Sep 3, 2018 · 0 comments

Comments

@blakeembrey
Copy link
Member

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant