cebe / cebe/php-openapi

Fails on large definitions

Aperta
#224 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
500
Fork
99
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi there, I'm trying to read [Cloudflare's](https://github.com/cloudflare/api-schemas/) API definitions into this package but it's about 5MB and `json_decode()` definitely doesn't like working with files that big. Does anyone have any suggestions for how to read in such a large file, or would the devs be open to replacing the stock `json_decode()` with a reader that can handle larger files?

Thanks!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Review the package's JSON loading path around json_decode() and determine why the 5MB Cloudflare API definition cannot be read. Compare viable approaches for large JSON input, then verify that the reported definition loads successfully without breaking existing JSON handling.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
php
Ambito
api
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.