spacebarchat / server

Spacebar server - A reimplementation of the Discord.com backend, built with Typescript and love
https://spacebar.chat
GNU Affero General Public License v3.0
1.48k stars 251 forks source link

Improve schema & OpenAPI generation #1192

Closed DEVTomatoCake closed 3 months ago

DEVTomatoCake commented 3 months ago
  1. Updates description to be in line with the one in the docs
  2. Ignores more schemas in schema generation which are unrelated to Spacebar
  3. Cleans up the code a bit
  4. Routes which are Spacebar-only are now highlighted with a badge (Fixes https://github.com/spacebarchat/docs/issues/77, unless the Discord-only routes are really needed which seems useless, there's https://github.com/spacebarchat/missing-routes after all)

To test, use spec-url="https://raw.githubusercontent.com/DEVTomatoCake/spacebar-server/feat/improve-schema-openapi-generation/assets/openapi.json" in a <rapi-doc> tag, e.g. on https://docs.spacebar.chat/routes . To review, prefer a per-commit review if you want to follow the changes of the spec files.