Allow a more convenient method of working with "x-" specifications
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia leggendo la specifica delle estensioni OpenAPI collegata nell'issue e il comportamento esistente di getSerializableData() della libreria. Traccia come vengono esposti gli attributi delle parole chiave e come viene usato isset() per questi attributi. Il lavoro è completo quando i chiamanti possono accedere comodamente ai nomi delle estensioni contenenti trattini senza ricevere l'errore PHP segnalato, continuando a comprendere il workaround di serializzazione esistente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
First Point: Excellent project. I've written an OpenApi loader myself. Yours is much better.
Second Point: The openapi specification of keywords allows for the possibility of extending them with the "x-" syntax: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specification-extensions
In a project I am working on we have made use of this feature. When using cebe/php-openapi I've run into a problem.
- openapi requires the use of the "x-" syntax
- php interprets "x-" not as a variable (or something similar) but sees the "-" as an operation. Particularly with the function isset()
- cebe/php-openapi relies on the native php convention variable/(class attribute names)
- When using isset() to determine if a keyword has been specified PHP reports an error. I have been able to work around this problem by using getSerializableData(). However it would be nice and more convenient if one could access openapi variables (keywords) which use a "-" as part of their name.
- Lingua principale
- PHP
- Stelle
- 500
- Fork
- 99
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cebe/php-openapi
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
cebe/php-openapi#250 ·
-
BC break in 1.8 Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
cebe/php-openapi#247 · 1 commento · 1 reazione ·
-
php 8.4 deprecations Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
cebe/php-openapi#245 · 3 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
cebe/php-openapi#242 · 6 commenti · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
cebe/php-openapi#238 ·
Tutte le issue di cebe/php-openapi
Issue simili
-
tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
UX
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MagnaCapax/PMSS#949 ·
-
responsive-media kses allow-list strips clipPathUnits, collapsing objectBoundingBox clip paths Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Automattic/static-site-importer#1829 ·