Validation errors

Reading SCHEMA_VIOLATION and semantic errors. Troubleshooting in the DocStudio designer user guide.

Symptom

The JSON tab refuses Apply, or Problems shows SCHEMA_VIOLATION.

Likely causes

  • A value is outside its allowed range or of the wrong type.
  • A property name is unknown: templates are closed objects.
  • An id is duplicated or has invalid characters.
  • An element type needs a property it does not have (for example a barcode without a format).
  • An image source uses a forbidden scheme.

Diagnose

  1. Read the path in the message: it is a JSON Pointer to the exact value.
  2. Click the severity button to select the element.

Solution

  • Correct the value, or remove the unknown property.
  • Give every element a unique id.
  • Use an asset: reference or an https address for images.

Limitation

The designer refuses edits that would make the template invalid, so these errors mostly come from the JSON tab or from stored templates.