Definitions seem to be missing from API 2.0 Swagger | Community
Skip to main content
james-ssc
Level 2
Sep 20, 2019 10:06 AM UTC
Solved

Definitions seem to be missing from API 2.0 Swagger

I'm trying to create a client for the Analytics 2.0 APIs, using the Swagger document:

https://adobedocs.github.io/analytics-2.0-apis/swagger.json

However, the document has references to a "definitions" node which doesn't seem to exist in the document, e.g.:

"schema" : { "$ref" : "#/definitions/AnalyticsCalculatedMetric" }

As I understand it, this ref should point to a "definitions" node at the root of the document, but that doesn't seem to exist, so my tool can't parse it.

Can you help?

Many thanks,

James​

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
james-ssc
james-sscAccepted solution
Level 2
Sep 26, 2019 9:09 AM UTC

I'm still having this issue, do I need to create a new ticket?

5 replies

james-ssc
james-sscAuthorAccepted solution
Level 2
Sep 26, 2019 9:09 AM UTC

I'm still having this issue, do I need to create a new ticket?

Translate
james-ssc
james-sscAuthor
Level 2
Sep 20, 2019 4:36 PM UTC

Yes still having problems - the Swagger doc seems to be invalid, please see by looking at the Swagger document here:

https://adobedocs.github.io/analytics-2.0-apis/swagger.json

In the official Swagger editor here:

Swagger Editor

Thanks,

James

Translate
PratheepArunRaj
New Participant
Sep 20, 2019 4:09 PM UTC

Dear James,

I am quarterbacking the question. Do you still having trouble in accessing the relevant documents?

Thank You!

Arun

Translate
james-ssc
james-sscAuthor
Level 2
Sep 20, 2019 3:39 PM UTC

I shouldn't have marked this as answered, there is still a problem, there are references to definitions that don't exist in the document. Do I need to open a new question?

For example, on line 259 there is a reference to #/definitions/CalcMetricFunction which doesn't exist.

You can see the errors by pasting the swagger.json into the online Swagger Editor:  Swagger Editor

Translate
james-ssc
james-sscAuthor
Level 2
Sep 20, 2019 2:29 PM UTC

Actually I do see a definitions node now - I'm not sure why NSwag can't see it.

Translate