module Esquema::Model
def self.enhance_schema(&block)
def self.enhance_schema(&block) schema_enhancements enhancer = SchemaEnhancer.new(self, @schema_enhancements) enhancer.instance_eval(&block) end
def self.json_schema
def self.json_schema Esquema::Builder.new(self).build_schema.to_json end
def self.schema_enhancements
def self.schema_enhancements @schema_enhancements ||= {} end