kenspirit / joi-to-json

Capable of converting different versions' joi object to json schema
MIT License
39 stars 18 forks source link

Support readOnly and writeOnly properties in OpenAPI spec #33

Closed jandppw closed 2 years ago

jandppw commented 2 years ago

Thanks for this glorious project. I am looking into this for a while, and am very happy with the results based on this package after 2 days.

I have a problem with marking properties as readOnly in OpenAPI specs. Is is this supported yet?

If not, after going through the code, I suggest adding it to lib/parsers/open-api.js, the same way you handle depracated (line 45), as a meta property.

kenspirit commented 2 years ago

Thanks for loving this tool and making such a great contribution! Version 2.6.0 is released.