summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/openapi (follow)
Commit message (Collapse)AuthorAgeFilesLines
* merge upstreamHazelnoot2025-03-251-2/+8
|\
| * fix(backend): use unique `operationId` in the OpenAPI schema (#15420)zyoshoka2025-02-081-2/+8
| | | | | | | | | | * fix(backend): use unique `operationId` in the OpenAPI schema * fix: read with UTF-8 encoding
* | merge upstream 2025-02-03Hazelnoot2025-02-031-1/+3
|\|
| * fix(backend): clone schema before converting to OAS schema to avoid mutation ↵zyoshoka2025-01-181-1/+3
| | | | | | | | | | | | | | | | | | (#15294) * fix(backend): clone schema before converting to OAS schema to avoid mutation * Update CHANGELOG.md * fix: use deepClone
| * fix(backend/misskey-js): タイポ修正 (#15046)かっこかり2024-11-241-1/+1
| |
* | fix typo "to many requests"Hazelnoot2024-11-221-1/+1
| |
* | Merge remote-tracking branch 'misskey/master' into feature/misskey-2024.07dakkar2024-08-022-2/+1
|\|
| * fix(backend): api-docをScalarに変更 (#14152)かっこかり2024-07-092-2/+1
| | | | | | | | | | * fix(backend): api-docをScalarに変更 * Update Changelog
* | Merge remote-tracking branch 'misskey/develop' into future-2024-03-23dakkar2024-03-241-1/+1
|\|
| * fix(backend): fix openAPI operationId formatsyuilo2024-03-231-1/+1
| |
* | Switch source code bitsdakkar2024-02-201-2/+2
|/
* (re) update SPDX-FileCopyrightTexttamaina2024-02-134-4/+4
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-134-4/+4
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-124-4/+4
|
* fix: api-docが開けない問題を修正 (#13132)yukineko2024-02-022-38/+40
| | | | | | | | | | | * refactor: 自己参照を使用している箇所に`selfRef`を持たせるように * feat: スキーマ生成時に自己参照を含むかどうかを指定できるように * fix: api.jsonにselfRefが含まれているのを修正 * refactor: 他の箇所と同様にselfRefの除去を行うように * remove: 不要なimportを削除
* fix(backend): 虚無ノートを投稿できる問題の修正と `api.json` ↵zyoshoka2024-01-132-17/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | の OpenAPI Specification 3.1.0 への対応 (#12969) * fix(backend): `text: null`だけのノートは投稿できないように * add test * Update CHANGELOG.md * chore: bump OpenAPI Specification from 3.0.0 to 3.1.0 * chore: テストがすでにコメントで記述されていたのでそっちを使うことにする * fix test * fix(backend): prohibit posting whitespace-only notes * Update CHANGELOG.md * fix(backend): `renoteId`または`fileIds`(`mediaIds`)または`poll`が`null`でない場合に、`text が空白文字のみで構成されたリクエストになることを許可して、結果は`text: null`を返すように * test(backend): 引用renoteで空白文字のみで構成されたtextにするとレスポンスが`text: null`になることをチェックするテストを追加 * fix(frontend): `text`が`null`であって`renoteId`と`replyId`が`null`でないようなノートは引用リノートとして表示するように * fix(misskey-js): OpenAPI 3.1に対応 * fix(misskey-js): 型生成をOpenAPI Specification 3.1.0に対応 * fix(ci): `validate-api.json`をOpenAPI Specification 3.1.0に対応 * fix(ci): スキーマ書き換えの際のミスを修正 * Revert "fix(frontend): `text`が`null`であって`renoteId`と`replyId`が`null`でないようなノートは引用リノートとして表示するように" This reverts commit a9ca55343df6ea1679599acbc4801f78aa3a242b. * fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように * Revert "fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように" This reverts commit 865458989f9ddacc38d1bb3743a41ea828dbf324. * fix(misskey-js): `openapi-parser`で`validate`のかわりに`parse`を用いるように * Update CHANGELOG.md
* fix: `secure: true` なエンドポイントの型が misskey-js ↵ikasoba2023-12-081-1/+6
| | | | | | | | | に含まれていない (#12603) * 作った * 修正 * 修正
* swagger-cli validateがvalidとなるapi.jsonを作れるようにする ↵おさむのひと2023-11-222-15/+37
| | | | | | | | | | | | | | | | | | | | | | | | (#12403) * api.jsonがswagger-cli validateでエラーにならないように生成ロジックを修正 * フィールドの消し方に不備があったので変更 * バックエンドを起動しなくてもapi.jsonを作れるようにした * deepCopyしてからレスポンス部分を作るようにした * fix CHANGELOG.md * securitySchemesの定義を復活&ApiCallServiceの実装的にベアラトークンなのでその形で * bodyが無い(空オブジェクト)のときはrequestBodyを描画しないようにする * allowGetがtrueな項目はget用の記載も作成 --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* Update schemas.ts (#12103)Acid Chicken (硫酸鶏)2023-10-221-1/+6
|
* chore: ↵Shun Sakai2023-07-274-0/+19
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor: rename schema to json-schemasyuilo2023-03-101-2/+2
|
* enhance(backend): restore OpenAPI endpoints (#10281)Kagami Sascha Rosylight2023-03-102-0/+224
| | | | | | | | | | | | | | | | | * enhance(backend): restore OpenAPI endpoints * Update CHANGELOG.md * version * set max-age * update redoc * follow redoc documentation --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* lintsyuilo2022-09-201-2/+3
|
* なんかもうめっちゃ変えたsyuilo2022-09-181-190/+0
|
* fix: remove unused parameterJohann1502022-06-141-1/+1
|
* fix(docs): correct information for drive upload (#8736)Johann1502022-05-271-2/+14
|
* refactor: Use ESM (#8358)syuilo2022-02-272-5/+5
| | | | | | | | | | | | | | | * wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
* refactor: use ajv instead of cafy (#8324)syuilo2022-02-192-61/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * Update abuse-user-reports.ts * Update files.ts * Update list-remote.ts * Update list.ts * Update show-users.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update update.ts * Update search.ts * Update reactions.ts * Update search.ts * wip * wip * wip * wip * Update update.ts * Update relation.ts * Update available.ts * wip * wip * wip * Update packages/backend/src/server/api/define.ts Co-authored-by: Johann150 <johann.galle@protonmail.com> * Update define.ts * Update define.ts * typo * wip * wip * wip * wip * wip * wip * wip * wip * Update update.ts * wip * Update signup.ts * Update call.ts * minimum for limit * type * remove needless annotation * wip * Update signup.ts * wip * wip * fix * Update create.ts Co-authored-by: Johann150 <johann.galle@protonmail.com>
* fix: code url in documentation (#8117)Johann1502022-01-211-1/+1
| | | It seems this was not changed while refactoring the modules apart.
* refactor: ↵tamaina2022-01-181-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | APIエンドポイントファイルの定義を良い感じにする (#8154) * Fix API Schema Error * Delete SimpleSchema/SimpleObj and Move schemas to dedicated files * Userのスキーマを分割してみる * define packMany type * add , * Ensure enum schema and Make "as const" put once * test? * Revert "test?" This reverts commit 97dc9bfa70851bfb7d1cf38e883f8df20fb78b79. * Revert "Fix API Schema Error" This reverts commit 21b6176d974ed8e3eb73723ad21a105c5d297323. * :v: * clean up * test? * wip * wip * better schema def * :v: * fix * add minLength property * wip * wip * wip * anyOf/oneOf/allOfに対応? ~ relation.ts * refactor! * Define MinimumSchema * wip * wip * anyOf/oneOf/allOfが動作するようにUnionSchemaTypeを修正 * anyOf/oneOf/allOfが動作するようにUnionSchemaTypeを修正 * Update packages/backend/src/misc/schema.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * fix * array oneOfをより正確な型に * array oneOfをより正確な型に * wip * :v: * なんかもういろいろ * remove * very good schema * api schema * wip * refactor: awaitAllの型定義を変えてみる * fix * specify types in awaitAll * specify types in awaitAll * :v: * wip * ... * :v: * AllowDateはやめておく * 不必要なoptional: false, nullable: falseを廃止 * Packedが展開されないように * 続packed * wip * define note type * wip * UserDetailedをMeDetailedかUserDetailedNotMeかを区別できるように * wip * wip * wip specify user type of other schemas * ok * convertSchemaToOpenApiSchemaを改修 * convertSchemaToOpenApiSchemaを改修 * Fix * fix * :v: * wip * 分割代入ではなくallOfで定義するように Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* fix lintsyuilo2021-12-093-74/+74
|
* refactoringsyuilo2021-11-123-0/+360
Resolve #7779