Skip to content

Commit

Permalink
refactor(OpenApi): Remove unused schema
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Dec 20, 2024
1 parent 08b6b48 commit 30e38db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
6 changes: 4 additions & 2 deletions lib/Model/BotServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @method void setFeatures(int $features)
* @method int getFeatures()
*
* @psalm-import-type TalkBotWithDetailsAndSecret from ResponseDefinitions
* @psalm-import-type TalkBotWithDetails from ResponseDefinitions as BotWithDetails
*/
class BotServer extends Entity implements \JsonSerializable {
protected string $name = '';
Expand Down Expand Up @@ -62,7 +62,9 @@ public function __construct() {
}

/**
* @return TalkBotWithDetailsAndSecret
* @return BotWithDetails&array{
* secret: string,
* }
*/
public function jsonSerialize(): array {
return [
Expand Down
4 changes: 0 additions & 4 deletions lib/ResponseDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
* url_hash: string,
* }
*
* @psalm-type TalkBotWithDetailsAndSecret = TalkBotWithDetails&array{
* secret: string,
* }
*
* @psalm-type TalkCallPeer = array{
* actorId: string,
* actorType: string,
Expand Down
18 changes: 0 additions & 18 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,24 +189,6 @@
}
]
},
"BotWithDetailsAndSecret": {
"allOf": [
{
"$ref": "#/components/schemas/BotWithDetails"
},
{
"type": "object",
"required": [
"secret"
],
"properties": {
"secret": {
"type": "string"
}
}
}
]
},
"CallPeer": {
"type": "object",
"required": [
Expand Down
3 changes: 0 additions & 3 deletions src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1962,9 +1962,6 @@ export type components = {
url: string;
url_hash: string;
};
BotWithDetailsAndSecret: components["schemas"]["BotWithDetails"] & {
secret: string;
};
CallPeer: {
actorId: string;
actorType: string;
Expand Down

0 comments on commit 30e38db

Please sign in to comment.