cebe / php-openapi

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

Add convenience functions for extension properties #169

Open fxedel opened 1 year ago

fxedel commented 1 year ago

Resolves #121

I just added the getExtension and setExtension methods, which allow you to set/get the x-* properties without having to use the not-very-well-known ->{'x-*'} syntax. It also leaves the decision to the user whether to omit the x- prefix or not.

Happy Hacktoberfest! :tada: