removed spaital type response and will be using the json type for the spatial responses

This commit is contained in:
ArnabChatterjee20k 2025-09-04 12:57:43 +05:30
parent 5a6955debd
commit e7113a080d
8 changed files with 7 additions and 9 deletions

View file

@ -57,8 +57,7 @@ class Mapper
'datetime' => Type::string(),
'json' => Types::json(),
'none' => Types::json(),
'any' => Types::json(),
'spatial' => Types::json(),
'any' => Types::json()
];
foreach ($defaults as $type => $default) {

View file

@ -15,7 +15,6 @@ abstract class Model
public const TYPE_DATETIME_EXAMPLE = '2020-10-15T06:38:00.000+00:00';
public const TYPE_RELATIONSHIP = 'relationship';
public const TYPE_PAYLOAD = 'payload';
public const TYPE_SPATIAL = 'spatial';
/**
* @var bool

View file

@ -12,7 +12,7 @@ class AttributeLine extends Attribute
$this
->addRule('default', [
'type' => self::TYPE_SPATIAL,
'type' => self::TYPE_JSON,
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
'default' => null,
'required' => false,

View file

@ -12,7 +12,7 @@ class AttributePoint extends Attribute
$this
->addRule('default', [
'type' => self::TYPE_SPATIAL,
'type' => self::TYPE_JSON,
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
'default' => null,
'required' => false,

View file

@ -12,7 +12,7 @@ class AttributePolygon extends Attribute
$this
->addRule('default', [
'type' => self::TYPE_SPATIAL,
'type' => self::TYPE_JSON,
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
'default' => null,
'required' => false,

View file

@ -12,7 +12,7 @@ class ColumnLine extends Column
$this
->addRule('default', [
'type' => self::TYPE_SPATIAL,
'type' => self::TYPE_JSON,
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
'default' => null,
'required' => false,

View file

@ -12,7 +12,7 @@ class ColumnPoint extends Column
$this
->addRule('default', [
'type' => self::TYPE_SPATIAL,
'type' => self::TYPE_JSON,
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
'default' => null,
'required' => false,

View file

@ -12,7 +12,7 @@ class ColumnPolygon extends Column
$this
->addRule('default', [
'type' => self::TYPE_SPATIAL,
'type' => self::TYPE_JSON,
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
'default' => null,
'required' => false,