Docspring.Model.SubmissionValidation (docspring v4.5.0)

Whether creating the submission would succeed, checked without saving it or making any files. error is the error that creating it would return (validation_failed, or invalid_data for data that doesn't match the template's fields), and is left out when valid is true.

Summary

Types

t()

@type t() :: %Docspring.Model.SubmissionValidation{
  error: Docspring.Model.ErrorInfo.t() | nil,
  template_id: String.t(),
  template_version: String.t() | nil,
  valid: boolean()
}

Functions

decode(value)