open-api icon indicating copy to clipboard operation
open-api copied to clipboard

Unlimited recursive inheritance is not handled correctly

Open kibertoad opened this issue 5 years ago • 0 comments

When attempting to validate specification with invalid inheritance that results in endless recursion (e. g. https://github.com/PayU/openapi-validator-middleware/blob/master/test/openapi3/pets-unlimited-recursive.yaml), validation fails with Maximum call stack size exceeded.

It would make sense to fail-fast after going 20-30 levels deep instead.

kibertoad avatar Apr 24 '20 12:04 kibertoad