Module: KeycloakRack::Types Private
- Defined in:
- lib/keycloak_rack/types.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
dry-rb types for this gem.
Constant Summary collapse
- IndifferentHash =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
A type to make indifferent hashes
Types.Constructor(::ActiveSupport::HashWithIndifferentAccess) do |value| Types::Coercible::Hash[value].with_indifferent_access end
- SkipPaths =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
A type to validate skip paths
Types::Hash.map( Types::Coercible::String, Types::Array.of(Types::String | Types.Instance(Regexp)) )
- StringList =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
A type to make arrays of strings
Types::Array.of(Types::String).default { [] }
- Timestamp =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
A type to parse timestamps
Types.Constructor(::Time) do |value| # :nocov: case value when Integer then ::Time.at(value) when ::Time then value when Types.Interface(:to_time) then value.to_time end # :nocov: end.optional