Closed canvural closed 4 years ago
Hello,
Given a JSON schema like below:
{ "type": "array", "items": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" } ] }
this library produces a Schema object, which it's items property is also a single Schema object. In this inner Schema there is no way to access to the data. Data is in the private _properties property.
Schema
items
_properties
private $_properties => array(3) { [0] => array(1) { 'type' => string(6) "string" } [1] => array(1) { 'type' => string(6) "string" } [2] => array(1) { 'type' => string(6) "string" } }
To support this I think $schema->items should return an array of Schema objects.
$schema->items
Also, I'm not sure if this is really a missing feature or a bug.
Oh, it looks like this is not supported in OpenAPI.
Hello,
Given a JSON schema like below:
this library produces a
Schema
object, which it'sitems
property is also a singleSchema
object. In this innerSchema
there is no way to access to the data. Data is in the private_properties
property.To support this I think
$schema->items
should return an array ofSchema
objects.Also, I'm not sure if this is really a missing feature or a bug.