Hacker News new | ask | show | jobs
by andridk 849 days ago
Neat! Any plans to support OpenAPI schema? It's cool that it's easy to create the API, but consuming and documenting it is also a factor.
2 comments

Thanks! I considered it, but since parameters are defined just because users call a validation function, there's no straighforward way to get them. Maybe I could use PHP8 attributes for this, but maybe it complicates the syntax too much for a microframework.
Oh, now that would be a neat feature to have in the library