Skip to content

Commit

Permalink
Merge pull request #11 from sunrise-php/release/v1.2.0
Browse files Browse the repository at this point in the history
Extended support for the "additionalProperties" JSON schema property
  • Loading branch information
fenric authored Feb 7, 2020
2 parents ecbc6ea + 6519891 commit 1041422
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Annotation/OpenApi/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,21 @@ final class Schema extends AbstractAnnotation implements SchemaInterface, Compon
*/
protected const IGNORE_FIELDS = ['refName'];

/**
* {@inheritDoc}
*/
protected const FIELD_ALIASES = ['allowAdditionalProperties' => 'additionalProperties'];

/**
* @var string
*/
public $refName;

/**
* @var bool
*/
public $allowAdditionalProperties;

/**
* @var \Sunrise\Http\Router\OpenApi\Annotation\OpenApi\SchemaInterface
*/
Expand Down

0 comments on commit 1041422

Please sign in to comment.