discord-api-spec icon indicating copy to clipboard operation
discord-api-spec copied to clipboard

Request: Include documentation in objects and fields

Open diamondburned opened this issue 1 year ago • 2 comments

Currently, the schema doesn't include any documentation at all. This would be a very nice addition for autogenerated documentation and code.

diamondburned avatar Aug 06 '23 03:08 diamondburned

we agree :)

mbialecka avatar Aug 06 '23 06:08 mbialecka

I think for starter, a requirement to link a table of the hand-written doc to a reference key within the OpenAPI documentation or vice versa would go a very long way without being too difficult. For example, Embed Image Structure could be linked to #/components/schemas/MessageEmbedImageResponse.

Or perhaps we could use some LLM AI to autogenerate the comments just by feeding it the documentation...

diamondburned avatar Aug 06 '23 07:08 diamondburned