QuestionSpec

com.softinio.verdict4s.algebra.QuestionSpec
See theQuestionSpec companion object

A question exactly as it goes on the wire.

Closed and non-generic on purpose: the service defines these three shapes, so this is the protocol rather than an extension point. Callers who want a question that answers in their own type use Question[A], which pairs one of these with a decoder — see the typed question builders.

QuestionSpec.Raw exists only for forward compatibility: it lets a caller send a question shape a given release does not model yet, rather than wait for a library version.

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Choice(instructions: Instructions, options: Keys)

Pick one option from a defined set.

Pick one option from a defined set.

Attributes

final case class Noul(instructions: Instructions, criteria: Option[NoulCriteria])

A yes/no question.

A yes/no question.

Attributes

final case class Raw(questionType: String, body: JsonObject)

A question shape this release does not model.

A question shape this release does not model.

Attributes

final case class Score(instructions: Instructions, levels: Descriptions)

Rate against ordered, described levels.

Rate against ordered, described levels.

Attributes