apidocs icon indicating copy to clipboard operation
apidocs copied to clipboard

Potential issue with JSON schema output

Open paulyoung opened this issue 10 years ago • 3 comments

I see some JSON schema information displayed like this:

screen shot 2015-08-11 at 3 17 37 pm

In particular, I'm not sure if the "$ref": "base.json#/definitions/uuid" part is supposed to be displayed that way or if something has gone wrong with page rendering.

If it is correct, could someone point me to where base.json lives?

paulyoung avatar Aug 11 '15 22:08 paulyoung

@paulyoung base.json should be built from base.yaml (like all the .json files) https://github.com/the-grid/apidocs/blob/master/schemata/base.yaml

What do you think is wrong here?

jonnor avatar Aug 15 '15 11:08 jonnor

It's not intuitive for me as someone reading the documentation what "$ref": "base.json#/definitions/uuid" means or where base.json can be found for me to view.

I thought maybe the intention was for the UUID section of base.json to be rendered inline here and perhaps something had gone wrong with that.

paulyoung avatar Aug 17 '15 22:08 paulyoung

It definitely would be helpful if the ref was clickable.

hannesstruss avatar Aug 18 '15 08:08 hannesstruss