home.social

#dry_schema — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #dry_schema, aggregated by home.social.

fetched live
  1. Ran into a weird NilClass exception in dry-logic via dry-validation when trying to validate an empty String value. ¯\(°_o)/¯
    discourse.dry-rb.org/t/strange
    #dry_validations #dry_schema

  2. Ran into a weird NilClass exception in dry-logic via dry-validation when trying to validate an empty String value. ¯\(°_o)/¯
    discourse.dry-rb.org/t/strange
    #dry_validations #dry_schema

  3. Ran into a weird NilClass exception in dry-logic via dry-validation when trying to validate an empty String value. ¯\(°_o)/¯
    discourse.dry-rb.org/t/strange
    #dry_validations #dry_schema

  4. Ran into a weird NilClass exception in dry-logic via dry-validation when trying to validate an empty String value. ¯\(°_o)/¯
    discourse.dry-rb.org/t/strange
    #dry_validations #dry_schema

  5. Ran into a weird NilClass exception in dry-logic via dry-validation when trying to validate an empty String value. ¯\(°_o)/¯
    discourse.dry-rb.org/t/strange
    #dry_validations #dry_schema

  6. How would you use dry-types/dry-schema to map a finite set of possible Strings to
    a finite set of Symbols? `Types::String.enum('string' => :symbol)` only seems to map Strings and Symbols to Strings. I need the output to be Symbols.

    Input: ['syn', 'ack']
    Output: [:syn, :ack]

    #dry_rb #dry_types #dry_schema

  7. How would you use dry-types/dry-schema to map a finite set of possible Strings to
    a finite set of Symbols? `Types::String.enum('string' => :symbol)` only seems to map Strings and Symbols to Strings. I need the output to be Symbols.

    Input: ['syn', 'ack']
    Output: [:syn, :ack]

    #dry_rb #dry_types #dry_schema

  8. How would you use dry-types/dry-schema to map a finite set of possible Strings to
    a finite set of Symbols? `Types::String.enum('string' => :symbol)` only seems to map Strings and Symbols to Strings. I need the output to be Symbols.

    Input: ['syn', 'ack']
    Output: [:syn, :ack]

    #dry_rb #dry_types #dry_schema

  9. How would you use dry-types/dry-schema to map a finite set of possible Strings to
    a finite set of Symbols? `Types::String.enum('string' => :symbol)` only seems to map Strings and Symbols to Strings. I need the output to be Symbols.

    Input: ['syn', 'ack']
    Output: [:syn, :ack]

    #dry_rb #dry_types #dry_schema

  10. How would you use dry-types/dry-schema to map a finite set of possible Strings to
    a finite set of Symbols? `Types::String.enum('string' => :symbol)` only seems to map Strings and Symbols to Strings. I need the output to be Symbols.

    Input: ['syn', 'ack']
    Output: [:syn, :ack]

    #dry_rb #dry_types #dry_schema