Skip to content

Commit

Permalink
Merge pull request #115 from HubSpot/fix/ObjectSerializer
Browse files Browse the repository at this point in the history
fix ObjectSerializer s (Codegen only)
  • Loading branch information
ksvirkou-hubspot authored Mar 25, 2022
2 parents 4e983ae + 4615d29 commit 685a217
Show file tree
Hide file tree
Showing 45 changed files with 135 additions and 135 deletions.
6 changes: 3 additions & 3 deletions codegen/Auth/OAuth/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Automation/Actions/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/AuditLogs/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/Blogs/Authors/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/Blogs/Tags/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/Domains/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/Hubdb/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/Performance/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/SiteSearch/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/SourceCode/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Cms/UrlRedirects/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/CommunicationPreferences/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Associations/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Companies/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Contacts/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Deals/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Extensions/Accounting/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Extensions/Calling/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Extensions/Cards/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Imports/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/LineItems/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Objects/Calls/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Objects/Emails/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Objects/FeedbackSubmissions/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
6 changes: 3 additions & 3 deletions codegen/Crm/Objects/Meetings/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function toQueryValue($object)
{
if (is_array($object)) {
return implode(',', $object);
} elseif (is_bool($value)) {
return $value ? 'true' : 'false';
} elseif (is_bool($object)) {
return $object ? 'true' : 'false';
} else {
return $value;
return $object;
}
}

Expand Down
Loading

0 comments on commit 685a217

Please sign in to comment.