☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

root_value_boundary_optional.*

Table of contents

Description:

This key represents an individual optional root value boundary configuration in the root_value_boundary_optional object.

The value is a boolean that determines whether the root value boundary is optional for a specific parameter name. When set to true, the boundary tokens are optional for that parameter.

Appears in:
└── Snippet Format
    └── root_value_boundary_optional
        └── *
Type:
boolean
Examples:

In this example, we have configured root value boundaries to be optional for the title parameter.

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[param]]>>
    params:
      param:
        parser: argument
        options:
          format:
            root_value_boundary_optional:
              title: true
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[param]]>>",
      "params": {
        "param": {
          "parser": "argument",
          "options": {
            "format": {
              "root_value_boundary_optional": {
                "title": true
              }
            }
          }
        }
      }
    }
  }
}
Open in a new tab