open-traffic-generator / openapiart

OpenAPI artifact generator
MIT License
6 stars 4 forks source link

No validation for required properties with default value #384

Closed Vibaswan closed 1 year ago

Vibaswan commented 1 year ago

Version information 0.2.6

Describe the bug A required property should not have a default value, the validation is missing and should be thrown

To Reproduce Add a default value to a required property and open api art does not throw an error

Expected behavior Open api art should not allow this use case if a default value is given in a required property it should throw an exception to the user

Vibaswan commented 1 year ago

FYI @ashutshkumr it was a mistake before the support is already https://github.com/open-traffic-generator/openapiart/blob/main/openapiart/bundler.py#L475 closing this issue