From 65198912fee6affe126e4c21e1e0baed42ea2493 Mon Sep 17 00:00:00 2001 From: "@fenric" Date: Fri, 7 Feb 2020 22:58:57 +0300 Subject: [PATCH] extended support for the "additionalProperties" JSON schema property --- src/Annotation/OpenApi/Schema.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Annotation/OpenApi/Schema.php b/src/Annotation/OpenApi/Schema.php index 1ecdd31..1d1fbdf 100644 --- a/src/Annotation/OpenApi/Schema.php +++ b/src/Annotation/OpenApi/Schema.php @@ -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 */