-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hi, your plugin is amazing.
Just a question.. There is a way to relate an object to an already defined definition?
Example:
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'event',
'type' => 'object',
'properties' => array(...)
);
$other_schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'something_needing_an_array_of_events',
'type' => 'object',
'properties' => array(
'listing' => array(
'description' => __( 'listing of events.' )
'type' => 'array',
'items' => array(
// something like:
//'type' => 'event',
//'$ref' => '#/definitions/event'
),
)
)
);
Thanks in advance
Metadata
Metadata
Assignees
Labels
No labels