redux-toolkit
redux-toolkit copied to clipboard
$ref schemas result in unknown type
We have encountered an issue with valid swagger files containing refs like this produce response type of unknown.
responses:
"200":
content:
application/json;charset=utf-8:
schema:
$ref: '#/components/schemas/ProductProjections'
description: Current projections for the requested product.
Looks like explicit definitions of object properties (meaning we don't reference) in every schema mitigates this, but it isn't a good solution.