validate() returns true with wrong top level elements
Open
enhancement
- Dominant language
- PHP
- Stars
- 500
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I tried to run validate like this:
```
$spec = cebe\openapi\Reader::readFromJson($jsonstring);
$spec->resolveReferences(new cebe\openapi\ReferenceContext($spec, "/"));
$spec->validate();
```
on a OpenAPI 3 schema that has, for example the property "AAAAAcomponents" instead of "components", and the call returns true.
Is this correct?
Thanks,
Frank
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.