Initial bug: Creating a guild (POST /api/guilds) returns a lot more properties than just id.
Looking at this more, some schemas extended Guild which caused them to include properties like system_channel (not system_channel_id) or channel_ordering, both of which aren't returned in the response when stringifying a guild.
I'm not really sure about using | undefined as type, it's used in IReadyGuildDTO - they might have to be marked as nullable/optional instead.
Looking at the generated schema (replace with spec-url="https://raw.githubusercontent.com/DEVTomatoCake/spacebar-server/fix/guild-create-response-schema/assets/openapi.json" in <rapi-doc> on https://docs.spacebar.chat/routes/#patch-/guilds/-guild_id-/) looks better.
Initial bug: Creating a guild (
POST /api/guilds
) returns a lot more properties than justid
.Looking at this more, some schemas extended
Guild
which caused them to include properties likesystem_channel
(notsystem_channel_id
) orchannel_ordering
, both of which aren't returned in the response when stringifying a guild.I'm not really sure about using
| undefined
as type, it's used inIReadyGuildDTO
- they might have to be marked as nullable/optional instead.Looking at the generated schema (replace with
spec-url="https://raw.githubusercontent.com/DEVTomatoCake/spacebar-server/fix/guild-create-response-schema/assets/openapi.json"
in<rapi-doc>
on https://docs.spacebar.chat/routes/#patch-/guilds/-guild_id-/) looks better.