mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
Properly adds meta and jsonapi
This commit is contained in:
parent
2d7dd77f6e
commit
215c101c98
@ -31,10 +31,10 @@ module Schemable
|
||||
@schema_modifier.add_properties(schema, included_schema, '.')
|
||||
end
|
||||
|
||||
@schema_modifier.add_properties(schema, meta, '.') if collection
|
||||
@schema_modifier.add_properties(schema, jsonapi, '.')
|
||||
@schema_modifier.add_properties(schema, { meta: }, '.') if collection
|
||||
@schema_modifier.add_properties(schema, { jsonapi: }, '.')
|
||||
|
||||
{ type: :object, properties: schema }
|
||||
{ type: :object, properties: schema }.compact_blank
|
||||
end
|
||||
|
||||
def meta
|
||||
|
||||
Loading…
Reference in New Issue
Block a user