cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
466 stars 88 forks source link

Improve customized loading of referenced files #15

Open cebe opened 5 years ago

cebe commented 5 years ago

Currently there is no way to extend the code when loading needs to be customized. Also content detection for JSON vs. YAML could be optimized.

cebe commented 5 years ago

https://github.com/cebe/php-openapi/blob/4a4892dbee51d9578b72d6c42645b5e89473d252/src/spec/Reference.php#L166-L172