You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When composing a model with allOf, the validation of required fields doesn't work if an object is defined inside that same allOf. It works if the composed model references a component model outside of it.
To Reproduce
I'm using version 1.6 of the plugin. When trying the latest 1.8 version it fails with an internal error (see Additional context section).
[ERROR] OpenAPI Specification does not meet the requirements. Issues:
[ERROR] *ERROR* in Model 'This', property 'something' -> This property should be present or removed from the list of required
Minimal project to reproduce: test-required-fields.zip. Run mvn verify with inputFile as build-success-but-should-fail.yaml and fails-and-it-should-fail.yaml.
Expected behavior
Both of those examples should fail the validation of required fields.
Additional context
Internal error that I get in the minimal project on 1.8 version and validating build-success-but-should-fail.yaml:
Describe the bug
When composing a model with
allOf
, the validation of required fields doesn't work if an object is defined inside that sameallOf
. It works if the composed model references a component model outside of it.To Reproduce
I'm using version
1.6
of the plugin. When trying the latest1.8
version it fails with an internal error (see Additional context section).This doesn't fail:
This does fail:
...with this error:
Minimal project to reproduce: test-required-fields.zip. Run
mvn verify
withinputFile
asbuild-success-but-should-fail.yaml
andfails-and-it-should-fail.yaml
.Expected behavior
Both of those examples should fail the validation of required fields.
Additional context
Internal error that I get in the minimal project on
1.8
version and validatingbuild-success-but-should-fail.yaml
:The text was updated successfully, but these errors were encountered: