diff --git a/spec.yml b/spec.yml index 957cea7..73752db 100644 --- a/spec.yml +++ b/spec.yml @@ -1,4 +1,4 @@ -openapi: 3.1.0 +openapi: 3.0.0 info: title: Geode Index @@ -203,21 +203,15 @@ components: $ref: '#/components/schemas/ModVersion' validated: type: boolean - # geode: - # $ref: '#/components/schemas/ModVersion' - # version: - # $ref: '#/components/schemas/ModVersion' - # name: - # type: string - # examples: - # - Devtools + versions: + type: array + items: + $ref: '#/components/schemas/ModVersion' # developers: # type: array # minItems: 1 # items: # $ref: '#/components/schemas/UserSimple' - # description: - # type: string # tags: # type: array # items: @@ -233,6 +227,31 @@ components: # - developers # - description # - tags + + ModVersion: + type: object + properties: + id: + type: int + name: + type: string + examples: + - Devtools + description: + type: string + geode_version: + $ref: '#/components/schemas/ModVersion' + version: + $ref: '#/components/schemas/ModVersion' + download_link: + type: string + examples: + - 'https://github.com/geode-sdk/DevTools/releases/download/v1.3.0/geode.devtools.geode' + hash: + type: string + description: This is generated serverside + mod_id: + $ref: '#/components/schemas/ModID' Platform: type: string