Forum Discussion

CunningFox's avatar
CunningFox
New Member
9 months ago

$ref doesnt work with x-field-extra-annotation

flight:

    $ref: '#/components/schemas/Someclass'

So, I have described SomeClass POJO upper. Now, want to create new POJO class where SomeClass will be a field. But, I want to restrict that field by @NotNull annotation.Screen with no null anntation - expected result. Second one actual result. I tried add nullable, I tried add x-field-extra-annotation: 'f@ull.path.to.NotNull" nothing gonna work

 

 

 

 

No RepliesBe the first to reply