Sha256: 5da4e99332e25cc384196295dc37cd6d6f67afd611b39e36e7eb099ac290a240

Contents?: true

Size: 407 Bytes

Versions: 10

Compression:

Stored size: 407 Bytes

Contents

module ThreeScaleToolbox
  module Commands
    module ImportCommand
      module OpenAPI
        # Helper class to validate values for the oidc-issuer-type argument of the import openapi command
        class IssuerTypeTransformer
          def call(issuer_type)
            raise unless %w[rest keycloak].include?(issuer_type)

            issuer_type
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
3scale_toolbox-1.0.1 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-1.0.0 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.20.0 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.19.3 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/commands/import_command/issuer_type_transformer.rb