Skip to content

Commit

Permalink
add mod_version to openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jan 9, 2024
1 parent 02ccc47 commit 1f9c761
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions spec.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.1.0
openapi: 3.0.0

info:
title: Geode Index
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 1f9c761

Please sign in to comment.