class

Marten::Schema::BoundField

Inherits Marten::Template::Object / Marten::Template::CanDefineTemplateAttributes / Reference / Object

A field used in the context of a specific schema instance.

Constructors

new(schema : Schema, field : Field::Base)
Source

Instance methods

errored?

Returns true if the field is errored.

Source
errors

Returns the validation errors associated with the considered field.

Source
field

Returns the associated field definition.

Source
id(*args, **options)

Returns the field identifier.

Source
id(*args, **options, &)

Returns the field identifier.

Source
required?(*args, **options)

Returns true if the field is required.

Source
required?(*args, **options, &)

Returns true if the field is required.

Source
schema

Returns the associated schema instance.

Source
value

Returns the field value.

Source