Skip to content

Commit

Permalink
chore: use correct type for tag (array)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Nov 4, 2024
1 parent 652577c commit 89514b5
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/Model/Botd.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Contains all the information from Bot Detection product
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bot** | [**\Fingerprint\ServerAPI\Model\BotdBot**](BotdBot.md) | |
**meta** | **mixed** | | [optional]
**meta** | array | | [optional]
**linked_id** | **string** | A customer-provided id that was sent with the request. | [optional]
**url** | **string** | Page URL from which the request was sent. |
**ip** | **string** | IP address of the requesting browser or bot. |
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/EventsUpdateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**linked_id** | **string** | LinkedID value to assign to the existing event | [optional]
**tag** | **mixed** | | [optional]
**tag** | array | | [optional]
**suspect** | **bool** | Suspect flag indicating observed suspicious or fraudulent event | [optional]

[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/Identification.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. |
**time** | [**\DateTime**](\DateTime.md) | Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. |
**url** | **string** | Page URL from which the request was sent. |
**tag** | **mixed** | |
**tag** | array | |
**confidence** | [**\Fingerprint\ServerAPI\Model\IdentificationConfidence**](IdentificationConfidence.md) | | [optional]
**visitor_found** | **bool** | Attribute represents if a visitor had been identified before. |
**first_seen_at** | [**\Fingerprint\ServerAPI\Model\IdentificationSeenAt**](IdentificationSeenAt.md) | |
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/Visit.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. |
**time** | [**\DateTime**](\DateTime.md) | Time expressed according to ISO 8601 in UTC format, when the request from the client agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. |
**url** | **string** | Page URL from which the request was sent. |
**tag** | **mixed** | |
**tag** | array | |
**confidence** | [**\Fingerprint\ServerAPI\Model\IdentificationConfidence**](IdentificationConfidence.md) | | [optional]
**visitor_found** | **bool** | Attribute represents if a visitor had been identified before. |
**first_seen_at** | [**\Fingerprint\ServerAPI\Model\IdentificationSeenAt**](IdentificationSeenAt.md) | |
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/Webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**request_id** | **string** | Unique identifier of the user's request. |
**url** | **string** | Page URL from which the request was sent. |
**ip** | **string** | IP address of the requesting browser or bot. |
**tag** | **mixed** | | [optional]
**tag** | array | | [optional]
**time** | [**\DateTime**](\DateTime.md) | Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. |
**timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. |
**ip_location** | [**\Fingerprint\ServerAPI\Model\DeprecatedGeolocation**](DeprecatedGeolocation.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ platform=$(uname)
# clean models before generating
rm -f ./src/Model/*

java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json --type-mapping RawDeviceAttributes=array,WebhookRawDeviceAttributes=array,Tag=mixed
java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json --type-mapping RawDeviceAttributes=array,WebhookRawDeviceAttributes=array,Tag=array

if [ ! -f .php-cs-fixer.php ]; then
echo ".php-cs-fixer.php configuration file not found!"
Expand Down
8 changes: 4 additions & 4 deletions src/Model/Botd.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Botd implements ModelInterface, \ArrayAccess
*/
protected static array $swaggerTypes = [
'bot' => '\Fingerprint\ServerAPI\Model\BotdBot',
'meta' => 'mixed',
'meta' => 'array',
'linked_id' => 'string',
'url' => 'string',
'ip' => 'string',
Expand Down Expand Up @@ -274,19 +274,19 @@ public function setBot(BotdBot $bot): self
/**
* Gets meta.
*/
public function getMeta(): mixed
public function getMeta(): ?array
{
return $this->container['meta'];
}

/**
* Sets meta.
*
* @param mixed $meta meta
* @param ?array $meta meta
*
* @return $this
*/
public function setMeta(mixed $meta): self
public function setMeta(?array $meta): self
{
$this->container['meta'] = $meta;

Expand Down
8 changes: 4 additions & 4 deletions src/Model/EventsUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class EventsUpdateRequest implements ModelInterface, \ArrayAccess
*/
protected static array $swaggerTypes = [
'linked_id' => 'string',
'tag' => 'mixed',
'tag' => 'array',
'suspect' => 'bool'];

/**
Expand Down Expand Up @@ -221,19 +221,19 @@ public function setLinkedId(?string $linked_id): self
/**
* Gets tag.
*/
public function getTag(): mixed
public function getTag(): ?array
{
return $this->container['tag'];
}

/**
* Sets tag.
*
* @param mixed $tag tag
* @param ?array $tag tag
*
* @return $this
*/
public function setTag(mixed $tag): self
public function setTag(?array $tag): self
{
$this->container['tag'] = $tag;

Expand Down
8 changes: 4 additions & 4 deletions src/Model/Identification.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Identification implements ModelInterface, \ArrayAccess
'timestamp' => 'int',
'time' => '\DateTime',
'url' => 'string',
'tag' => 'mixed',
'tag' => 'array',
'confidence' => '\Fingerprint\ServerAPI\Model\IdentificationConfidence',
'visitor_found' => 'bool',
'first_seen_at' => '\Fingerprint\ServerAPI\Model\IdentificationSeenAt',
Expand Down Expand Up @@ -536,19 +536,19 @@ public function setUrl(string $url): self
/**
* Gets tag.
*/
public function getTag(): mixed
public function getTag(): array
{
return $this->container['tag'];
}

/**
* Sets tag.
*
* @param mixed $tag tag
* @param array $tag tag
*
* @return $this
*/
public function setTag(mixed $tag): self
public function setTag(array $tag): self
{
$this->container['tag'] = $tag;

Expand Down
8 changes: 4 additions & 4 deletions src/Model/Visit.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Visit implements ModelInterface, \ArrayAccess
'timestamp' => 'int',
'time' => '\DateTime',
'url' => 'string',
'tag' => 'mixed',
'tag' => 'array',
'confidence' => '\Fingerprint\ServerAPI\Model\IdentificationConfidence',
'visitor_found' => 'bool',
'first_seen_at' => '\Fingerprint\ServerAPI\Model\IdentificationSeenAt',
Expand Down Expand Up @@ -505,19 +505,19 @@ public function setUrl(string $url): self
/**
* Gets tag.
*/
public function getTag(): mixed
public function getTag(): array
{
return $this->container['tag'];
}

/**
* Sets tag.
*
* @param mixed $tag tag
* @param array $tag tag
*
* @return $this
*/
public function setTag(mixed $tag): self
public function setTag(array $tag): self
{
$this->container['tag'] = $tag;

Expand Down
8 changes: 4 additions & 4 deletions src/Model/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Webhook implements ModelInterface, \ArrayAccess
'request_id' => 'string',
'url' => 'string',
'ip' => 'string',
'tag' => 'mixed',
'tag' => 'array',
'time' => '\DateTime',
'timestamp' => 'int',
'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedGeolocation',
Expand Down Expand Up @@ -505,19 +505,19 @@ public function setIp(string $ip): self
/**
* Gets tag.
*/
public function getTag(): mixed
public function getTag(): ?array
{
return $this->container['tag'];
}

/**
* Sets tag.
*
* @param mixed $tag tag
* @param ?array $tag tag
*
* @return $this
*/
public function setTag(mixed $tag): self
public function setTag(?array $tag): self
{
$this->container['tag'] = $tag;

Expand Down

0 comments on commit 89514b5

Please sign in to comment.