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

Property "description" not allowed (when it is $ref sibling) #315

Open
neopaf opened this issue Dec 15, 2020 · 0 comments
Open

Property "description" not allowed (when it is $ref sibling) #315

neopaf opened this issue Dec 15, 2020 · 0 comments

Comments

@neopaf
Copy link

neopaf commented Dec 15, 2020

(thanks for very useful plugin!!)
version: 1.0.28

Input:

          "policyRuleSpec": {
            "$ref": "#/components/schemas/PolicyRuleSpecRef",
            "description": "some text"
          },

Intellij underlines description line red, suggests to remove it, and claims that

Property "description" not allowed.

I'm not sure who and how validates the document, status line has it "No JSON schema".

According to
https://swagger.io/docs/specification/using-ref/

All siblings of $ref must be ignored.

Is this message "not allowed" related to Swagger plugin?

@neopaf neopaf changed the title Property "description" not allowed Property "description" not allowed (when it is $ref sibling) Dec 15, 2020
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