refactor: standardize json types
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ use KTXF\Resource\Provider\Node\NodePropertiesBaseInterface;
|
||||
|
||||
interface CollectionPropertiesBaseInterface extends NodePropertiesBaseInterface {
|
||||
|
||||
public const JSON_TYPE = 'chrono.collection';
|
||||
public const JSON_TYPE = 'chrono:collection';
|
||||
public const JSON_PROPERTY_CONTENTS = 'content';
|
||||
|
||||
public const JSON_PROPERTY_LABEL = 'label';
|
||||
|
||||
@@ -13,7 +13,7 @@ use KTXF\Resource\Provider\Node\NodePropertiesBaseInterface;
|
||||
|
||||
interface EntityPropertiesBaseInterface extends NodePropertiesBaseInterface {
|
||||
|
||||
public const JSON_TYPE = 'chrono.entity';
|
||||
public const JSON_TYPE = 'chrono:entity';
|
||||
public const JSON_PROPERTY_DATA = 'data';
|
||||
|
||||
public function getDataRaw(): array|string|null;
|
||||
|
||||
@@ -18,6 +18,6 @@ use KTXF\Resource\Provider\ResourceProviderBaseInterface;
|
||||
*/
|
||||
interface ProviderBaseInterface extends ResourceProviderBaseInterface{
|
||||
|
||||
public const JSON_TYPE = 'chrono.provider';
|
||||
public const JSON_TYPE = 'chrono:provider';
|
||||
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ interface ServiceBaseInterface extends ResourceServiceBaseInterface {
|
||||
public const CAPABILITY_ENTITY_RANGE_TALLY_RELATIVE = 'relative';
|
||||
public const CAPABILITY_ENTITY_RANGE_DATE = 'date';
|
||||
|
||||
public const JSON_TYPE = 'chrono.service';
|
||||
public const JSON_TYPE = 'chrono:service';
|
||||
|
||||
/**
|
||||
* Lists all collections in this service
|
||||
|
||||
Reference in New Issue
Block a user