Skip to content

Json schema meta validation fails on "items": true #799

@vuryss

Description

@vuryss

Hey I'm trying to validate json schema with it's own meta schema as defined in:

https://github.com/json-schema-org/json-schema-spec/tree/main/specs/meta

However in validation of enum schemas, the library fails with error on JsonSchema/Constraints/CollectionConstraint.php:92

Image

Which is reading from this:

https://github.com/json-schema-org/json-schema-spec/blob/5c57ee7de218f8d079227205c1cd0f349b3cf666/specs/meta/validation.json#L23

Because of the "items": true, which seems to be valid according to some:

https://stackoverflow.com/questions/49833963/where-is-defined-behavior-of-true-value-for-schema

May be it's a bug here?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions