Module: Familia::Features::SchemaValidation::ClassMethods
- Defined in:
- lib/familia/features/schema_validation.rb
Overview
Class-level schema access methods
Instance Method Summary collapse
-
#schema ⇒ Hash?
Get the JSON schema for this class.
-
#schema_defined? ⇒ Boolean
Check if a schema is defined for this class.
Instance Method Details
#schema ⇒ Hash?
Get the JSON schema for this class
96 97 98 |
# File 'lib/familia/features/schema_validation.rb', line 96 def schema Familia::SchemaRegistry.schema_for(name) end |
#schema_defined? ⇒ Boolean
Check if a schema is defined for this class
102 103 104 |
# File 'lib/familia/features/schema_validation.rb', line 102 def schema_defined? Familia::SchemaRegistry.schema_defined?(name) end |