Marten::Schema::Field::String
Inherits Marten::Schema::Field::Base / Marten::Template::Object::Auto / Marten::Template::Object / Marten::Template::CanDefineTemplateAttributes / Reference / Object
Represents a string schema field.
Constructors
Instance methods
Deserializes a raw field value to the corresponding field value.
strip?
Returns true if the string value should be stripped of leading and trailing whitespaces.
validate(schema, value)
Runs custom validation logic for a specific schema field and schema object.
This method should be overriden for each field implementation that requires custom validation logic.