Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Definitions seem to be missing from API 2.0 Swagger

Avatar

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
james-ssc
Level 1

20-09-2019

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​

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
james-ssc
Level 1

26-09-2019

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

Answers (4)

Answers (4)

Avatar

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
james-ssc
Level 1

20-09-2019

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

Avatar

Avatar
Affirm 250
Moderator
PratheepArunRaj
Moderator

Likes

295 likes

Total Posts

836 posts

Correct Reply

254 solutions
Top badges earned
Affirm 250
Contributor
Springboard
Shape 1
Validate 10
View profile

Avatar
Affirm 250
Moderator
PratheepArunRaj
Moderator

Likes

295 likes

Total Posts

836 posts

Correct Reply

254 solutions
Top badges earned
Affirm 250
Contributor
Springboard
Shape 1
Validate 10
View profile
PratheepArunRaj
Moderator

20-09-2019

Dear James,

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

Thank You!

Arun

Avatar

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
james-ssc
Level 1

20-09-2019

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

1835942_pastedImage_0.png

Avatar

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
james-ssc
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
james-ssc
Level 1

20-09-2019

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