Open
Description
Describe the bug
In the example, B.x
has constraint maxLength: 100
while BB.x
has constraint maxLength: 1
e.g. Since BB use allOf
and validation will pass the maxLength: 100
but when validating '#/components/schemas/AA'
, it will failed.
The constraint should be intersection.
The problem should caused by inline the properties from generic types. We use $ref
for concrete types which doesn't produce the problem.
Reproduction
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.