Twipped / joi-to-swagger

A library to convert Joi schema objects into Swagger schema definitions
Other
164 stars 63 forks source link

Combining schemas: "oneOf, anyOf, allOf and not" keywords support #62

Closed kroupacz closed 4 years ago

kroupacz commented 4 years ago

Hello, in our project we need support for the OpenAPI 3 specification and we also would like to continue to use your library without creating our own "fork". Therefore I have prepared this "pull request" with support of "oneOf, anyOf, allOf and not" keywords. Details can be found here: https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/

Added:

Fixed:

Breaking changes:

Could be discussed:

Mairu commented 4 years ago

Hi, thanks for the PR. I will have a look soon.

But I think you should add the additional supported joi functions to the readme. Perhaps even with a more detailed description if needed.

kroupacz commented 4 years ago

Thank you for your reply. I just updated "readme" and "changelog". In case of any question regarding my "pull request", do not hesitate to contact me.

Mairu commented 4 years ago

Thank you very much for the PR!