The Redocly quick start has the following:
info:
description:
$ref: ./info-description.md
Running the Redocly CLI behaves correctly with this definition. Likewise running "redocly lint". Visual Studio, however, complains that the value of description
must be a string,
and indeed, the specification agrees. The Swagger documentation also notes that $ref
is not available just anywhere (but doesn't give very much information on exactly where it is allowed).
It seems unlikely that Redocly, as one of the principal tools in the world of OpenAPI, would violate the standard in its own canonical example of how to use the standard. Is this a problem with Redocly, Visual Studio or something else? If this usage is correct, is there a way to tell Visual Studio to stand down?