Class: Explicit::Type::Any

Inherits:
Explicit::Type show all
Defined in:
lib/explicit/type/any.rb

Instance Attribute Summary

Attributes inherited from Explicit::Type

#auth_type, #default, #description, #nilable, #param_location

Instance Method Summary collapse

Methods inherited from Explicit::Type

#auth_basic?, #auth_bearer?, build, #error_i18n, #mcp_schema, #merge_base_json_schema, #param_location_body?, #param_location_path?, #param_location_query?, #required?, #swagger_i18n, #swagger_schema

Instance Method Details

#json_schema(flavour) ⇒ Object



22
23
24
25
26
# File 'lib/explicit/type/any.rb', line 22

def json_schema(flavour)
  return {} if flavour == :swagger

  { type: "string" }
end

#validate(value) ⇒ Object



4
5
6
# File 'lib/explicit/type/any.rb', line 4

def validate(value)
  [ :ok, value ]
end