docs: function getMessages(result) {
    let messages = [];
    if (result.messages) {
      messages = messages.concat(result.messages);
    }
    if (result.schemaValidationMessages) {
      messages = messages.concat(
        result.schemaValidationMessages.map((m) => `${m.level}: ${m.message}`)
      );
    }
    return messages;
  }