Skip to content

[schema-definition] empty directive that allows some additional values to any type #2

@0exp

Description

@0exp
data = { "a" => "x", "b" => "" }
# Pseudo-Code
SmartTypes::Value::Enum => ["x", "y", "z"] # our enum type
# some part of scheme that validates "b" key
required(:b).type(our-enum-type).empty("") # empty allows a series of values. empty allows different types

should allow data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions