json-schema-viewer icon indicating copy to clipboard operation
json-schema-viewer copied to clipboard

Use description property from $ref

Open autoantwort opened this issue 1 year ago • 0 comments

Context

if i have the following schema:

...
"properties": {
      "compile_features": {
          "$ref": "#/definitions/attributes/compile_features@0"
      },
}
...
"compile_features@0": {
      "description": "Specifies a list of Compiler Features that must be enabled or disabled when compiling code that consumes the component.",
      "$ref": "#/definitions/types/list(string)"
  },

No description is displayed in the ui (VS Code displays the description)

Current Behavior

No description is displayed

Expected Behavior

Description from '$ref' is displayed

Possible Workaround/Solution

Move description attribute

Steps to Reproduce

Use file from https://github.com/cps-org/cps/files/15203794/cps.schema.json Set is as schema here: https://stoplightio.github.io/json-schema-viewer

autoantwort avatar May 04 '24 16:05 autoantwort