Skip to content

Commit 891a93d

Browse files
committed
Change spec source to have examples
1 parent 3a2310d commit 891a93d

File tree

9 files changed

+12125
-343
lines changed

9 files changed

+12125
-343
lines changed

doc/updating-sdk.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ of the `generated` directory:
3131
rm -Rf generated/*
3232
```
3333

34-
3534
When the versioned specification has been updated, you can run Jane to regenerate the SDK:
3635

3736
```bash

generated/Model/DndTeamInfoGetResponsedefault.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace JoliCode\Slack\Api\Model;
1515

16-
class DndTeamInfoGetResponsedefault
16+
class DndTeamInfoGetResponsedefault extends \ArrayObject
1717
{
1818
/**
1919
* @var bool|null

generated/Normalizer/DndTeamInfoGetResponsedefaultNormalizer.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ public function denormalize($data, $class, $format = null, array $context = [])
5252
}
5353
if (\array_key_exists('ok', $data) && null !== $data['ok']) {
5454
$object->setOk($data['ok']);
55+
unset($data['ok']);
5556
} elseif (\array_key_exists('ok', $data) && null === $data['ok']) {
5657
$object->setOk(null);
5758
}
59+
foreach ($data as $key => $value) {
60+
if (preg_match('/.*/', (string) $key)) {
61+
$object[$key] = $value;
62+
}
63+
}
5864

5965
return $object;
6066
}
@@ -63,6 +69,11 @@ public function normalize($object, $format = null, array $context = [])
6369
{
6470
$data = [];
6571
$data['ok'] = $object->getOk();
72+
foreach ($object as $key => $value) {
73+
if (preg_match('/.*/', (string) $key)) {
74+
$data[$key] = $value;
75+
}
76+
}
6677

6778
return $data;
6879
}

resources/slack-openapi-patched.json

Lines changed: 3947 additions & 6 deletions
Large diffs are not rendered by default.

resources/slack-openapi-sorted.json

Lines changed: 3944 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)