Skip to content

Commit

Permalink
Add missing attribute Schema properties (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann authored Jan 20, 2022
1 parent 069a3b0 commit f00ba9d
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Attributes/AdditionalProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ public function __construct(
?Items $items = null,
?string $collectionFormat = null,
$default = null,
$maximum = null,
?bool $exclusiveMaximum = null,
$minimum = null,
?bool $exclusiveMinimum = null,
?int $maxLength = null,
?int $minLength = null,
?int $maxItems = null,
?int $minItems = null,
?bool $uniqueItems = null,
?string $pattern = null,
?array $enum = null,
?Discriminator $discriminator = null,
Expand Down Expand Up @@ -57,6 +66,15 @@ public function __construct(
'format' => $format ?? Generator::UNDEFINED,
'collectionFormat' => $collectionFormat ?? Generator::UNDEFINED,
'default' => $default ?? Generator::UNDEFINED,
'maximum' => $maximum ?? Generator::UNDEFINED,
'exclusiveMaximum' => $exclusiveMaximum ?? Generator::UNDEFINED,
'minimum' => $minimum ?? Generator::UNDEFINED,
'exclusiveMinimum' => $exclusiveMinimum ?? Generator::UNDEFINED,
'maxLength' => $maxLength ?? Generator::UNDEFINED,
'minLength' => $minLength ?? Generator::UNDEFINED,
'maxItems' => $maxItems ?? Generator::UNDEFINED,
'minItems' => $minItems ?? Generator::UNDEFINED,
'uniqueItems' => $uniqueItems ?? Generator::UNDEFINED,
'pattern' => $pattern ?? Generator::UNDEFINED,
'enum' => $enum ?? Generator::UNDEFINED,
'readOnly' => $readOnly ?? Generator::UNDEFINED,
Expand Down
18 changes: 18 additions & 0 deletions src/Attributes/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ public function __construct(
?Items $items = null,
?string $collectionFormat = null,
$default = null,
$maximum = null,
?bool $exclusiveMaximum = null,
$minimum = null,
?bool $exclusiveMinimum = null,
?int $maxLength = null,
?int $minLength = null,
?int $maxItems = null,
?int $minItems = null,
?bool $uniqueItems = null,
?string $pattern = null,
?array $enum = null,
?Discriminator $discriminator = null,
Expand Down Expand Up @@ -60,6 +69,15 @@ public function __construct(
'format' => $format ?? Generator::UNDEFINED,
'collectionFormat' => $collectionFormat ?? Generator::UNDEFINED,
'default' => $default ?? Generator::UNDEFINED,
'maximum' => $maximum ?? Generator::UNDEFINED,
'exclusiveMaximum' => $exclusiveMaximum ?? Generator::UNDEFINED,
'minimum' => $minimum ?? Generator::UNDEFINED,
'exclusiveMinimum' => $exclusiveMinimum ?? Generator::UNDEFINED,
'maxLength' => $maxLength ?? Generator::UNDEFINED,
'minLength' => $minLength ?? Generator::UNDEFINED,
'maxItems' => $maxItems ?? Generator::UNDEFINED,
'minItems' => $minItems ?? Generator::UNDEFINED,
'uniqueItems' => $uniqueItems ?? Generator::UNDEFINED,
'pattern' => $pattern ?? Generator::UNDEFINED,
'enum' => $enum ?? Generator::UNDEFINED,
'readOnly' => $readOnly ?? Generator::UNDEFINED,
Expand Down
18 changes: 18 additions & 0 deletions src/Attributes/JsonContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ public function __construct(
?Items $items = null,
?string $collectionFormat = null,
$default = null,
$maximum = null,
?bool $exclusiveMaximum = null,
$minimum = null,
?bool $exclusiveMinimum = null,
?int $maxLength = null,
?int $minLength = null,
?int $maxItems = null,
?int $minItems = null,
?bool $uniqueItems = null,
?string $pattern = null,
?array $enum = null,
?Discriminator $discriminator = null,
Expand Down Expand Up @@ -63,6 +72,15 @@ public function __construct(
'format' => $format ?? Generator::UNDEFINED,
'collectionFormat' => $collectionFormat ?? Generator::UNDEFINED,
'default' => $default ?? Generator::UNDEFINED,
'maximum' => $maximum ?? Generator::UNDEFINED,
'exclusiveMaximum' => $exclusiveMaximum ?? Generator::UNDEFINED,
'minimum' => $minimum ?? Generator::UNDEFINED,
'exclusiveMinimum' => $exclusiveMinimum ?? Generator::UNDEFINED,
'maxLength' => $maxLength ?? Generator::UNDEFINED,
'minLength' => $minLength ?? Generator::UNDEFINED,
'maxItems' => $maxItems ?? Generator::UNDEFINED,
'minItems' => $minItems ?? Generator::UNDEFINED,
'uniqueItems' => $uniqueItems ?? Generator::UNDEFINED,
'pattern' => $pattern ?? Generator::UNDEFINED,
'enum' => $enum ?? Generator::UNDEFINED,
'readOnly' => $readOnly ?? Generator::UNDEFINED,
Expand Down
20 changes: 20 additions & 0 deletions src/Attributes/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ public function __construct(
?Items $items = null,
?string $collectionFormat = null,
$default = null,
$maximum = null,
?bool $exclusiveMaximum = null,
$minimum = null,
?bool $exclusiveMinimum = null,
?int $maxLength = null,
?int $minLength = null,
?int $maxItems = null,
?int $minItems = null,
?bool $uniqueItems = null,
?string $pattern = null,
?array $enum = null,
?Discriminator $discriminator = null,
Expand Down Expand Up @@ -61,7 +70,18 @@ public function __construct(
'type' => $type ?? Generator::UNDEFINED,
'format' => $format ?? Generator::UNDEFINED,
'collectionFormat' => $collectionFormat ?? Generator::UNDEFINED,

'default' => $default ?? Generator::UNDEFINED,
'maximum' => $maximum ?? Generator::UNDEFINED,
'exclusiveMaximum' => $exclusiveMaximum ?? Generator::UNDEFINED,
'minimum' => $minimum ?? Generator::UNDEFINED,
'exclusiveMinimum' => $exclusiveMinimum ?? Generator::UNDEFINED,
'maxLength' => $maxLength ?? Generator::UNDEFINED,
'minLength' => $minLength ?? Generator::UNDEFINED,
'maxItems' => $maxItems ?? Generator::UNDEFINED,
'minItems' => $minItems ?? Generator::UNDEFINED,
'uniqueItems' => $uniqueItems ?? Generator::UNDEFINED,

'pattern' => $pattern ?? Generator::UNDEFINED,
'enum' => $enum ?? Generator::UNDEFINED,
'readOnly' => $readOnly ?? Generator::UNDEFINED,
Expand Down
18 changes: 18 additions & 0 deletions src/Attributes/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ public function __construct(
?Items $items = null,
?string $collectionFormat = null,
$default = null,
$maximum = null,
?bool $exclusiveMaximum = null,
$minimum = null,
?bool $exclusiveMinimum = null,
?int $maxLength = null,
?int $minLength = null,
?int $maxItems = null,
?int $minItems = null,
?bool $uniqueItems = null,
?string $pattern = null,
?array $enum = null,
?Discriminator $discriminator = null,
Expand Down Expand Up @@ -60,6 +69,15 @@ public function __construct(
'format' => $format ?? Generator::UNDEFINED,
'collectionFormat' => $collectionFormat ?? Generator::UNDEFINED,
'default' => $default ?? Generator::UNDEFINED,
'maximum' => $maximum ?? Generator::UNDEFINED,
'exclusiveMaximum' => $exclusiveMaximum ?? Generator::UNDEFINED,
'minimum' => $minimum ?? Generator::UNDEFINED,
'exclusiveMinimum' => $exclusiveMinimum ?? Generator::UNDEFINED,
'maxLength' => $maxLength ?? Generator::UNDEFINED,
'minLength' => $minLength ?? Generator::UNDEFINED,
'maxItems' => $maxItems ?? Generator::UNDEFINED,
'minItems' => $minItems ?? Generator::UNDEFINED,
'uniqueItems' => $uniqueItems ?? Generator::UNDEFINED,
'pattern' => $pattern ?? Generator::UNDEFINED,
'enum' => $enum ?? Generator::UNDEFINED,
'readOnly' => $readOnly ?? Generator::UNDEFINED,
Expand Down
18 changes: 18 additions & 0 deletions src/Attributes/XmlContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ public function __construct(
?Items $items = null,
?string $collectionFormat = null,
$default = null,
$maximum = null,
?bool $exclusiveMaximum = null,
$minimum = null,
?bool $exclusiveMinimum = null,
?int $maxLength = null,
?int $minLength = null,
?int $maxItems = null,
?int $minItems = null,
?bool $uniqueItems = null,
?string $pattern = null,
?array $enum = null,
?Discriminator $discriminator = null,
Expand Down Expand Up @@ -63,6 +72,15 @@ public function __construct(
'format' => $format ?? Generator::UNDEFINED,
'collectionFormat' => $collectionFormat ?? Generator::UNDEFINED,
'default' => $default ?? Generator::UNDEFINED,
'maximum' => $maximum ?? Generator::UNDEFINED,
'exclusiveMaximum' => $exclusiveMaximum ?? Generator::UNDEFINED,
'minimum' => $minimum ?? Generator::UNDEFINED,
'exclusiveMinimum' => $exclusiveMinimum ?? Generator::UNDEFINED,
'maxLength' => $maxLength ?? Generator::UNDEFINED,
'minLength' => $minLength ?? Generator::UNDEFINED,
'maxItems' => $maxItems ?? Generator::UNDEFINED,
'minItems' => $minItems ?? Generator::UNDEFINED,
'uniqueItems' => $uniqueItems ?? Generator::UNDEFINED,
'pattern' => $pattern ?? Generator::UNDEFINED,
'enum' => $enum ?? Generator::UNDEFINED,
'readOnly' => $readOnly ?? Generator::UNDEFINED,
Expand Down

0 comments on commit f00ba9d

Please sign in to comment.