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

Your schema contains $ref. You must provide specification in the third parameter. #90

Closed
JanEggers opened this issue Aug 31, 2018 · 7 comments
Labels

Comments

@JanEggers
Copy link

im trying to update my api with http://editor.asyncapi.org/

I get the errormessage:

Your schema contains $ref. You must provide specification in the third parameter.

Can you please clarify the meaning of that message?

I created the spec back at the 16.03.2018 at that time the document was considered valid.

@fmvilas
Copy link
Member

fmvilas commented Aug 31, 2018

Hey @JanEggers. Could you please provide an example so I can reproduce the bug?

@JanEggers
Copy link
Author

@MikeRalphson
Copy link
Contributor

Sounds suspiciously like a message from https://github.com/APIs-guru/openapi-sampler

@fmvilas
Copy link
Member

fmvilas commented Sep 19, 2018

Mmmm, interesting. Will investigate in the upcoming days. Thanks for reporting @JanEggers and thanks for the clue @MikeRalphson!

@fmvilas
Copy link
Member

fmvilas commented Sep 19, 2018

Hey @JanEggers, I think I found the problem:

"ModeChanged": {
    "properties": {
      "UniqueId": {
         "type": "string"
       },
       "Data": {"$ref": "#/components/schemas/ModeChanged"}
    }
}

The schema ModeChanged is recursive. Its Data property references ModeChanged, which is not supported. However, the editor should not fail this way, so I'll create a fix. Thanks!

@fmvilas
Copy link
Member

fmvilas commented Sep 19, 2018

I updated the editor so it doesn't fail, but documentation will not get rendered correctly anyway.

@fmvilas fmvilas closed this as completed Sep 19, 2018
@JanEggers
Copy link
Author

thx

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

No branches or pull requests

3 participants