Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use description property from $ref #256

Open
autoantwort opened this issue May 4, 2024 · 0 comments
Open

Use description property from $ref #256

autoantwort opened this issue May 4, 2024 · 0 comments

Comments

@autoantwort
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant