class Esquema::SchemaEnhancer
def property(name, options = {})
-
options
(Hash
) -- Additional options for the property. -
name
(Symbol
) -- The name of the property.
def property(name, options = {}) validate_property_as_attribute_for(name, options) type = resolve_type(name, options) KeywordValidator.validate!(name, type, options) @schema_enhancements[:properties] ||= {} @schema_enhancements[:properties][name] = options end