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

Output is difficult to read #62

Open
minusdavid opened this issue Mar 20, 2018 · 2 comments
Open

Output is difficult to read #62

minusdavid opened this issue Mar 20, 2018 · 2 comments

Comments

@minusdavid
Copy link
Contributor

minusdavid commented Mar 20, 2018

With the example, this is the output I see using curl or wget:

{"received": "{\n  \"@context\": \"http://iiif.io/api/presentation/2/context.json\", \n  \"@id\": \"http://iiif.io/api/presentation/2.1/example/fixtures/1/manifest.json\", \n  \"@type\": \"sc:Manifest\", \n
 \"label\": \"Test 1 Manifest: Minimum Required Fields\", \n  \"within\": \"http://iiif.io/api/presentation/2.1/example/fixtures/collection.json\", \n  \"sequences\": [\n    {\n      \"@type\": \"sc:Sequence
\", \n      \"canvases\": [\n        {\n          \"@id\": \"http://iiif.io/api/presentation/2.1/example/fixtures/canvas/1/c1.json\", \n          \"@type\": \"sc:Canvas\", \n          \"label\": \"Test 1 Can
vas: 1\", \n          \"height\": 1800, \n          \"width\": 1200, \n          \"images\": [\n            {\n              \"@type\": \"oa:Annotation\", \n              \"motivation\": \"sc:painting\", \n
             \"resource\": {\n                \"@id\": \"http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png\", \n                \"@type\": \"dctypes:Image\", \n                \"h
eight\": 1800, \n                \"width\": 1200\n              }, \n              \"on\": \"http://iiif.io/api/presentation/2.1/example/fixtures/canvas/1/c1.json\"\n            }\n          ]\n        }\n
    ]\n    }\n  ]\n}", "error": "None", "okay": 1, "warnings": ["WARNING: Resource type 'sc:Manifest' should have 'description' set\n", "WARNING: Resource type 'oa:Annotation' should have '@id' set\n", "WARN
ING: Resource type 'dctypes:Image' should have 'format' set\n"]}
@minusdavid
Copy link
Contributor Author

With my own manifest, I notice that "error" also looks like this:

"error": "u'value'"

@minusdavid
Copy link
Contributor Author

It looks like the newlines are just being treated as part of the strings which makes them pretty useless.

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

No branches or pull requests

1 participant