Question validation and legacy wire normalization. Strict evaluation uses TypeSafeSDK.Prepared.
Summary
Functions
Validates one question with strict semantic rules, without sending HTTP.
Validates and returns the question, or raises a path-aware SDK error.
Types
@type t() :: TypeSafeSDK.Noul.t() | TypeSafeSDK.Choice.t() | TypeSafeSDK.Score.t() | map()
Functions
@spec normalize_questions(map()) :: {:ok, map()} | {:error, TypeSafeSDK.Error.t()}
@spec validate(term()) :: :ok | {:error, TypeSafeSDK.Error.t()}
Validates one question with strict semantic rules, without sending HTTP.
Validates and returns the question, or raises a path-aware SDK error.