References to incorrect components should be considered invalid
- Langage dominant
- PHP
- Étoiles
- 500
- Forks
- 99
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## Expected
Referencing a component that does not meet the criteria an object requires should be considered invalid.
### Example
A Response object referencing a component that does not contain a "description" should be considered invalid.

### Reasoning
["description" is a **REQUIRED** property for a Response object](https://spec.openapis.org/oas/v3.1.0#response-object).
## Actual
Referencing a component that does not meet the criteria an object requires is considered valid.
### Example
```php
$api = Reader::readFromJson(<<validate()); // bool(true)
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start with the Reader::readFromJson example and the $api->validate() call, then trace how the response $ref is resolved and validated against the referenced component. Add a regression case for a response referencing an invalid schema component; done means validation rejects the example instead of returning true.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100