Add a way to create schemas
- Langage dominant
- PHP
- Étoiles
- 500
- Forks
- 99
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hi,
The library allows to create paths, but apparently doesn't provide any way to add schemas.
Doing something like:
`$objOpenapi->components->schemas['foo'] = new Schema([
'type' => Type::INTEGER,
]);`
gives a warning and the element is not created:
PHP Notice: Indirect modification of overloaded property cebe\openapi\spec\Components::$schemas has no effect in G:\test.php on line 119
Am I missing something ?
If not, it would be nice if we could create dynamically elements using this library.
Thank in advance
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par reproduire l’exemple de l’issue et examinez comment cebe\openapi\spec\Components gère la propriété schemas surchargée. Déterminez la méthode prise en charge pour ajouter dynamiquement un schéma ; le travail est terminé lorsqu’un schéma peut être créé et ajouté sans le PHP notice signalé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php
- Domaine
- api
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100