Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Extend the 'our-journey' JSON format to support meta-data #9

Open
nfreear opened this issue Jun 23, 2018 · 1 comment
Open

Extend the 'our-journey' JSON format to support meta-data #9

nfreear opened this issue Jun 23, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@nfreear
Copy link
Contributor

nfreear commented Jun 23, 2018

Hi @timcoughlan,

Can I suggest that you/we nest the journey data deeper in the saved JSON, to allow arbitrary meta-data to be recorded?

So instead of ... :

[
  {
    "eID": "place0",
    "description": "test description 0",
    "emoticon": "happy",
    "icon": "timelost",
    "postit": "post it text"
  },
  {
    "eID": "place1",
    "description": "test description 1",
    "emoticon": "happy",
    "icon": "timelost",
    "postit": "post it text"
  }

  ...
]

... We have, for example:

{
  "schema-version": "1.0",
  "#": "Save date ~ 2017-06-23T22:17:00",
  "summary": "My first journey",
  "url": "https://iet-ou.github.io/our-journey/#!id=ab12cd34ef",
  "generator": "our-journey/v1.2.3",

  ...

  "journey": [
    {
      "eID": "place0",
      "description": "test description 0",
      "emoticon": "happy",
      "icon": "timelost",
      "postit": "post it text"
    },
    {
      "eID": "place1",
      "description": "test description 1",
      "emoticon": "happy",
      "icon": "timelost",
      "postit": "post it text"
    }

    ...
  ]
}

No rush !! ;)

Ta,

Nick

@nfreear
Copy link
Contributor Author

nfreear commented Jun 27, 2018

Note, I've created a draft JSON schema -- with quite tight constraints!

(A useful document about JSON schema.)

To discuss ...

N.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant