diff --git a/src/CollectionSchema.php b/src/CollectionSchema.php index d73279f..596ede5 100644 --- a/src/CollectionSchema.php +++ b/src/CollectionSchema.php @@ -50,7 +50,7 @@ protected function getRange(): ?int return null; } - protected function getSchema(): array + public function getSchema(): array { $schema = [ 'type' => 'array', diff --git a/src/EnumSchema.php b/src/EnumSchema.php index 2db3285..abedb36 100644 --- a/src/EnumSchema.php +++ b/src/EnumSchema.php @@ -15,7 +15,7 @@ public function getExamples(): iterable return $this->getEnum(); } - protected function getSchema(): array + public function getSchema(): array { return [ 'enum' => [...$this->getEnum()], diff --git a/src/ObjectSchema.php b/src/ObjectSchema.php index 1d8849e..026bbdf 100644 --- a/src/ObjectSchema.php +++ b/src/ObjectSchema.php @@ -59,7 +59,7 @@ protected function addProperty(string $name, JsonSchema $schema, bool $required } } - protected function getSchema(): array + public function getSchema(): array { return [ 'type' => 'object',