Validate and convert story map files
On this page
Both work on files only, without the server.
Check a file
storymaps validate storymap.ymlValid storymap.
When something's wrong, it lists what, and nothing else happens:
storymaps validate storymap.ymlErrors (1): - Slice "V1" references unknown step "Customize Drink"
It checks that there are steps, that step names aren't used twice, and that every card, user and activity sits under a step that exists. A status that isn't done, in-progress, planned or blocked is a warning, which doesn't stop a push.
A # in a title is kept as you type it, so a card named Drink list with prices (#12) needs no quotes. A # with a space after it is a YAML comment, so the text after it is left out. validate says which line:
storymaps validate storymap.ymlWarnings (1): - line 13: "# check with design" is read as a comment and left out. To keep it, put the value in quotes.Valid storymap.
It reads JSON files too, such as one exported from the app. Push runs the same checks before it sends anything.
Give it a folder to check every story map file in it, such as a project:
storymaps validate storymaps abc12345.yml valid g1ft5c4d.yml valid iajfqtjq.yml valid k3x9w2pq.yml valid m7q2r8tz.yml valid n5b8d2wq.yml valid ougxixd8.yml valid zbyf2k7s.yml validAll 8 maps are valid.
It also checks that a project line holds a project ID.
Turn YAML into JSON
storymaps convert storymap.yml --to json --out storymap.jsonWritten to storymap.json
Turn JSON into YAML
storymaps convert export.json --out storymap.ymlWritten to storymap.yml
YAML is the default, so --to yaml can be left out. Without --out, the result prints in the terminal instead, ready to pipe into another command.
The app imports both, so a converted file can go straight in. See Import a story map.