Skip to content

Commit

Permalink
Merge pull request #1 from morsok/morsok-patch-1
Browse files Browse the repository at this point in the history
Adding oneOf and anyOf keywords
  • Loading branch information
morsok authored Apr 25, 2017
2 parents 57a0b14 + dbe6d96 commit f6ecd01
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 f6ecd01

Please sign in to comment.