mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
Invokes attributes from @model_definition
This commit is contained in:
parent
15fae701b5
commit
00c4b7fc7e
@ -14,7 +14,7 @@ module Schemable
|
|||||||
def generate_attributes_schema
|
def generate_attributes_schema
|
||||||
schema = {
|
schema = {
|
||||||
type: :object,
|
type: :object,
|
||||||
properties: attributes.index_with do |attr|
|
properties: @model_definition.attributes&.index_with do |attr|
|
||||||
generate_attribute_schema(attr)
|
generate_attribute_schema(attr)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user