Mermade / openapi-filter

Filter internal paths, operations, parameters, schemas etc from OpenAPI/Swagger/AsyncAPI definitions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReferenceError: Excessive alias count indicates a resource exhaustion attack

thovden opened this issue · comments

When YAML API specifications that contain many aliases openapi-filter may fail. This is caused by a more strict maxAliasCount in YAML

https://github.com/eemeli/yaml/blob/440aadcd703c76f8920f75bde9d0ea522eb3a08a/src/index.js#L14

Since openapi-filter is a command line tool I think it's safe to turn off this check by setting maxAliasCount=-1 in yaml parse options. I will submit a PR for this later today.