redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

$ref schemas result in unknown type

Open Void0Walker opened this issue 2 years ago • 2 comments

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.

Void0Walker avatar Mar 21 '23 12:03 Void0Walker