Method: Explicit::Type::Hash#json_schema

Defined in:
lib/explicit/type/hash.rb

#json_schema(flavour) ⇒ Object



49
50
51
52
53
54
55
56
57
# File 'lib/explicit/type/hash.rb', line 49

def json_schema(flavour)
  {
    type: "object",
    additionalProperties: value_type.mcp_schema,
    description_topics: [
      empty == false ? swagger_i18n("hash_not_empty") : nil
    ]
  }
end