Skip to content

Commit 72a64e7

Browse files
committed
Merge branch 'main' into better-documentation
2 parents 671e52d + 8c2a4b3 commit 72a64e7

File tree

6 files changed

+225
-155
lines changed

6 files changed

+225
-155
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
* Add a new Client to ease iteration over Slack paginated endpoints thanks to `iterateXxxx` methods (where `xxxx` is the endpoint name to iterate over)
6+
* **Specification override** Add missing `locale` for `objs_conversation` model
67
* Improve the documentation
78

89
## 4.1.1 (2021-03-16)

generated/Model/ObjsConversation.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ class ObjsConversation
155155
* @var mixed|null
156156
*/
157157
protected $latest;
158+
/**
159+
* @var string|null
160+
*/
161+
protected $locale;
158162
/**
159163
* @var string[]|null
160164
*/
@@ -678,6 +682,18 @@ public function setLatest($latest): self
678682
return $this;
679683
}
680684

685+
public function getLocale(): ?string
686+
{
687+
return $this->locale;
688+
}
689+
690+
public function setLocale(?string $locale): self
691+
{
692+
$this->locale = $locale;
693+
694+
return $this;
695+
}
696+
681697
/**
682698
* @return string[]|null
683699
*/

generated/Normalizer/ObjsConversationNormalizer.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ public function denormalize($data, $class, $format = null, array $context = [])
233233
} elseif (\array_key_exists('latest', $data) && null === $data['latest']) {
234234
$object->setLatest(null);
235235
}
236+
if (\array_key_exists('locale', $data) && null !== $data['locale']) {
237+
$object->setLocale($data['locale']);
238+
} elseif (\array_key_exists('locale', $data) && null === $data['locale']) {
239+
$object->setLocale(null);
240+
}
236241
if (\array_key_exists('members', $data) && null !== $data['members']) {
237242
$values_2 = [];
238243
foreach ($data['members'] as $value_2) {
@@ -474,6 +479,9 @@ public function normalize($object, $format = null, array $context = [])
474479
if (null !== $object->getLatest()) {
475480
$data['latest'] = $object->getLatest();
476481
}
482+
if (null !== $object->getLocale()) {
483+
$data['locale'] = $object->getLocale();
484+
}
477485
if (null !== $object->getMembers()) {
478486
$values_2 = [];
479487
foreach ($object->getMembers() as $value_2) {

resources/slack-openapi-patched.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,9 @@
571571
}
572572
]
573573
},
574+
"locale": {
575+
"type": "string"
576+
},
574577
"members": {
575578
"items": {
576579
"$ref": "#/definitions/defs_user_id"

0 commit comments

Comments
 (0)