-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
error: The $ref targets root is not found: #330
Comments
the command of What do you do? |
@horiuchi thans for reply.
@horiuchi If you think this issue is Invalid then please close this |
@horiuchi you should close this issue, it was invalid ;) |
Actually this behavior is not invalid. |
@horiuchi just ran into this trying to process a local openapi v3 yaml. would love to use the tool |
I get this error when I have a response component with an empty content (ie only headers). |
Just ran into this issue too ! I'm investigating... in my case, it seems linked to the content-type value of the response definition. |
Some news : it was on my side ! The response mapped on a schema that contained a This "branching" is better done at response definition level, like this : https://swagger.io/docs/specification/describing-responses/#media-types |
Hi, I've a similar issue but looks related to the remote reference $ref is pointing to a document located in another folder. Any ideas? Thanks for any suggestion... i really like this generator |
Hello, I'm facing the same error when trying to parse JSON Schema of the serverless workflow specification. I downloaded them locally and tried to process
I also tried to process the schema remotely and I think there is a mixup between $id and $ref:
I looks like it uses a relative url from $id (? not even sure because /0.6/ is lost) of the entry schema 'instead of' a relative url of the one provided by |
@JBBianchi As a result, the file linked from The reason for the |
First, thanks for your feedback. Here are my remarks:
It's not strictly compliant but it's still a valid JSON Schema, they can have as many extra properties is still be valid per say. As it is,
I did understand the cause and it's indeed a valid way to see things. But, the specs isn't very specific on that topic, the top-level In the end, I found a way to achieve what I wanted. I used |
@JBBianchi
Yes, I know. But In my implementation, the extra properties are ignored. So if you try to reference it later, it will be treated as if it doesn't exist.
Yes, so if '$id' does not exist, the 'input URL' is treated as the Base URI.
I thought I should reconsider using the |
dtsgen throws error for http://adaptivecards.io/schemas/adaptive-card.json
The $ref targets root is not found: #/definitions/AdaptiveCarD
The text was updated successfully, but these errors were encountered: