From 49984fb8cfa618fedde5b54ee49e9935cf606af4 Mon Sep 17 00:00:00 2001 From: Gravy Boat Date: Mon, 29 Jun 2026 13:09:41 -0230 Subject: [PATCH] fix(docs): create version endpoint missing file_types field --- apps/docs/public/openapi.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/docs/public/openapi.yaml b/apps/docs/public/openapi.yaml index b96b18c13d..b49357c030 100644 --- a/apps/docs/public/openapi.yaml +++ b/apps/docs/public/openapi.yaml @@ -414,7 +414,7 @@ components: - unknown - signature example: required-resource-pack - # https://github.com/modrinth/labrinth/blob/master/src/routes/version_creation.rs#L27-L57 + # https://github.com/modrinth/code/blob/main/apps/labrinth/src/routes/v2/version_creation.rs#L32-L76 CreatableVersion: allOf: - $ref: '#/components/schemas/BaseVersion' @@ -446,6 +446,11 @@ components: - client_or_server_prefers_both - unknown description: The environment that this version is for. + file_types: + type: object + additionalProperties: + $ref: '#/components/schemas/FileTypeEnum' + description: A map of file parts to their associated file type, a file type is used for additional files such as sources jars. required: - file_parts - project_id