[Spaceapi-devel] Validator for 0.13

Andrew Elwell andrew.elwell at gmail.com
Tue Aug 27 04:39:46 CEST 2013


Hi folks -

I've been checking that my json validates against 0.13 using
http://spaceapi.net/validator but it shows as OK regardless of where I
put the address

ie I had (old)

{
    "space": "Perth Artifactory",
    "url": "http://artifactory.org.au/",
    "issue_report_channels": [
        "email",
        "ml"
    ],
    "contact": {
        "ml": "artifactory-core at googlegroups.com",
        "twitter": "@PerthArtifact",
        "irc": "irc://freenode.net/#artifactory",
        "email": "info at artifactory.org.au"
    },
    "state": {
        "lastchange": 1377570950.880306,
        "open": true,
        "message": "Exact state unknown - check webcam"
    },
    "api": "0.13",
    "location": {
        "lat": -31.901846,
        "lon": 115.810136
    },
    "address": "8/16 Guthrie Street, Osborne Park, WA 6017",
    "logo": "http://artifactory.org.au/branding/artifactory-logo.png",
    "open": true,
    "icon": {
        "open": "http://artifactory.org.au/branding/spaceopen.png",
        "closed": "http://artifactory.org.au/branding/spaceclosed.png"
    }


which validates OK for all versions, but should it insttead be:

  ...
    "api": "0.13",
    "location": {
        "address": "8/16 Guthrie Street, Osborne Park, WA 6017",
        "lat": -31.901846,
        "lon": 115.810136
    },
    "logo": "http://artifactory.org.au/branding/artifactory-logo.png",
 ...
?

both layouts show as OK on the validator but the changelog says

  (9) Moved address to location/address


Andrew


More information about the Spaceapi-devel mailing list