|
|
|
@ -46,6 +46,11 @@ struct json_enum ap_object_type_enum[] = {
|
|
|
|
|
{ "Service", apot_service },
|
|
|
|
|
{ "Document", apot_document },
|
|
|
|
|
{ "Image", apot_image },
|
|
|
|
|
|
|
|
|
|
{ "Collection", apot_collection },
|
|
|
|
|
{ "CollectionPage", apot_collection_page },
|
|
|
|
|
{ "OrderedCollection", apot_ordered_collection },
|
|
|
|
|
{ "OrderedCollectionPage", apot_ordered_collection_page },
|
|
|
|
|
{ NULL, 0 },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -194,6 +199,21 @@ struct json_object_field ap_activity_layout[] = {
|
|
|
|
|
.tagged_item_types = signature_types
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
JSON_FIELD_STRING( next, false ),
|
|
|
|
|
JSON_FIELD_STRING( prev, false ),
|
|
|
|
|
{
|
|
|
|
|
.key = "partOf",
|
|
|
|
|
.offset = offsetof( struct ap_object, part_of ),
|
|
|
|
|
.required = false,
|
|
|
|
|
.type = &json_field_string,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.key = "totalItems",
|
|
|
|
|
.offset = offsetof( struct ap_object, total_items ),
|
|
|
|
|
.required = false,
|
|
|
|
|
.type = &json_field_integer,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
JSON_FIELD_ENUM( type, ap_object_type_enum, true ),
|
|
|
|
|
|
|
|
|
|
JSON_FIELD_END,
|
|
|
|
|