Closed czlowiek488 closed 3 years ago
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
add
if(mergeFrom.required instanceof Array) {
mergeTo.required = [...(mergeTo.required || []), ...mergeFrom.required];
}
to line 154 in CommonModel
Good catch @czlowiek488! Do you want to add a PR fixing this? 🙂
Sorry, I don`t have time now and in nearest future. I must finish my generator ASAP.
@czlowiek488 I provided a fix for this bug, feel free to review it if you have the time of course!
:tada: This issue has been resolved in version 0.4.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@all-contributors please add @czlowiek488 for bug
@jonaslagoni
I've put up a pull request to add @czlowiek488! :tada:
Describe the bug
mergeCommonModels doesn`t merge required field
How to Reproduce
use allOf with objects with required properties
Expected behavior
mergeCommonModels does merge required fields