Skip to content

Commit

Permalink
Adding oneOf and anyOf keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
morsok authored Apr 25, 2017
1 parent 57a0b14 commit dbe6d96
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Annotations/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,18 @@ class Schema extends AbstractAnnotation
*/
public $allOf;

/**
* An instance validates successfully against this property if it validates successfully against at least one schema defined by this property's value.
* @var Schema[]
*/
public $anyOf;

/**
* An instance validates successfully against this property if it validates successfully against exactly one schema defined by this property's value.
* @var type
*/
public $oneOf;

/**
* http://json-schema.org/latest/json-schema-validation.html#anchor64
* @var bool|object
Expand Down

0 comments on commit dbe6d96

Please sign in to comment.