class Lutaml::Model::Schema::JsonSchema
def self.generate_property_schema(attr)
def self.generate_property_schema(attr) if attr.type <= Lutaml::Model::Serialize { "$ref" => "#/$defs/#{attr.type.name}" } elsif attr.collection? { "type" => "array", "items" => { "type" => get_json_type(attr.type) }, } else { "type" => get_json_type(attr.type) } end end