open-api
open-api copied to clipboard
Unlimited recursive inheritance is not handled correctly
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.