moon0326 / wp-openapi

19 stars 5 forks source link

Add configurable configuration #1

Closed ilyasfoo closed 2 years ago

ilyasfoo commented 2 years ago

It seems currently something is hardcoded here: https://github.com/moon0326/wp-openapi/blob/d0e2e896f88138c3ac84ed32f6ab745a9e799f39/bin/validate.js#L23

I'd like to have a file based configuration, possibly JSON?

Thank you!

moon0326 commented 2 years ago

Thank you for catching it! Oh well...that's a script I used while developing. I'm going to see if there is a composer package I can use for OpenAPI 3.1.0 spec to replace it with PHP. Otherwise, I'll update it to accept an argument instead.

ilyasfoo commented 2 years ago

Sounds good 👍