Skip to content

Commit

Permalink
fix: getSchema scope in CollectionSchema, EnumSchema and ObjectSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Lelaisant committed Oct 3, 2022
1 parent 8a0e084 commit 8de165d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CollectionSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function getRange(): ?int
return null;
}

protected function getSchema(): array
public function getSchema(): array
{
$schema = [
'type' => 'array',
Expand Down
2 changes: 1 addition & 1 deletion src/EnumSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getExamples(): iterable
return $this->getEnum();
}

protected function getSchema(): array
public function getSchema(): array
{
return [
'enum' => [...$this->getEnum()],
Expand Down
2 changes: 1 addition & 1 deletion src/ObjectSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function addProperty(string $name, JsonSchema $schema, bool $required
}
}

protected function getSchema(): array
public function getSchema(): array
{
return [
'type' => 'object',
Expand Down

0 comments on commit 8de165d

Please sign in to comment.