ESIPFed / science-on-schema.org

science-on-schema.org - providing guidance for publishing schema.org as JSON-LD for the sciences
Apache License 2.0
113 stars 33 forks source link

Run full dataset example through JSONLint #148

Closed amoeba closed 3 years ago

amoeba commented 3 years ago

There was previously inconsistent use of 2-space tabs and 4-space tabs and some properties weren't aligned to the correct tab stop. I ran the previous version through jsonlint and checked that it was equivalent with jsondiff.

Closes #147

ashepherd commented 3 years ago

Looks like a really nice reason for a minor release! Thanks @amoeba

mbjones commented 3 years ago

Thanks, @amoeba I see you went with 2 spaces. I think most of the document was 4 spaces before. Any preferences out there if we are aiming for consistency?

mbjones commented 3 years ago

/me ducks

amoeba commented 3 years ago

I just looked around and found https://github.com/ESIPFed/science-on-schema.org/blob/master/examples/SO_normalize_javascript.ipynb that @datadavev wrote. Maybe that's the better way to normalize the examples?