alexis-martel / Open-Crossword

An open-source crossword puzzle platform, focused on design and ease of use.
https://graphe.me/Open-Crossword/
GNU General Public License v3.0
8 stars 0 forks source link

Clue object structure #81

Closed alexis-martel closed 1 year ago

alexis-martel commented 1 year ago

Change the structure of the clues object from this:

"clues": {
    "across": {
      "1": "Example clue 1-Across"
    }
  }

to something like this:

"clues": {
    "across": {
      "1": {
        "content": "Example clue 1-Across",
        "hint": "This is the hint to 1-Across",
        "links": ["1-Down", "2-Across"],
        "media": [
          {
          "type": "image",
          "source": "example.com/image.png"
          }
        ]
      }
    }
  }

to allow fixing issues #77 and #60.