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

Change handling of default values #19

Closed cebe closed 5 years ago

cebe commented 5 years ago

Currently default values are set when loading data via constructor.

This results in the output of writer to contain all fields for which we have default data being set to these values.

Ideally default values should only be returned when asked for in __get.