module Esquema::Model

def self.enhance_schema(&block)

Enhances the schema using the provided block.
def self.enhance_schema(&block)
  schema_enhancements
  enhancer = SchemaEnhancer.new(self, @schema_enhancements)
  enhancer.instance_eval(&block)
end

def self.json_schema

Returns the JSON schema for the model.
def self.json_schema
  Esquema::Builder.new(self).build_schema.to_json
end

def self.schema_enhancements

Returns the schema enhancements.
def self.schema_enhancements
  @schema_enhancements ||= {}
end