FHIR Chat · Nested mappings are not allowed · shorthand

Stream: shorthand

Topic: Nested mappings are not allowed


view this post on Zulip David Pyke (May 06 2021 at 19:32):

What does "Error parsing configuration: Nested mappings are not allowed in compact mappings" mean? I can't find it in the docs anywhere and it doesn't point to a line number.

view this post on Zulip David Pyke (May 06 2021 at 19:33):

It's in sushi-config.yaml but I don't understand the error

view this post on Zulip David Pyke (May 06 2021 at 19:36):

Here's the file for the curious sushi-config.yaml

view this post on Zulip Chris Moesel (May 06 2021 at 20:18):

It looks like this is an error coming out of the YAML parsing library we are using... I tried putting your sushi-config.yaml file into an online YAML parser and that provided a little more guidance. The issue is with this part of the YAML:

  Introduction: overview.html
    Use Cases: usecases.html

YAML doesn't allow a key to have both a value (overview.html) and nested keys (Use Cases) at the same time.

If your intent is to have Introduction be both a link to a page and the root of a sub-menu, the sushi-config.yaml menu format does not support that -- but honestly, I'm not sure the IG Publisher templating framework does either (because if you click on the menu item, it either expands a sub-menu or goes to a page; I'm not sure how it could do both).

view this post on Zulip David Pyke (May 06 2021 at 20:53):

Okay, I can fix that


Last updated: Apr 12 2022 at 19:14 UTC