Skip to content

Commit

Permalink
Update api reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Nov 12, 2024
1 parent 84038c9 commit c01663c
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 32 deletions.
38 changes: 30 additions & 8 deletions docs/docs/api-reference/difficalcy-catch.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
"name": "Mods",
"in": "query",
"schema": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
}
}
}
],
Expand Down Expand Up @@ -217,10 +217,11 @@
"type": "string"
},
"mods": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
},
"nullable": true
},
"combo": {
"maximum": 2147483647,
Expand Down Expand Up @@ -251,6 +252,27 @@
}
},
"additionalProperties": false
},
"Mod": {
"required": [
"acronym"
],
"type": "object",
"properties": {
"acronym": {
"minLength": 1,
"type": "string"
},
"settings": {
"type": "object",
"additionalProperties": {
"type": "string",
"nullable": true
},
"nullable": true
}
},
"additionalProperties": false
}
}
}
Expand Down
38 changes: 30 additions & 8 deletions docs/docs/api-reference/difficalcy-mania.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
"name": "Mods",
"in": "query",
"schema": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
}
}
}
],
Expand Down Expand Up @@ -227,10 +227,11 @@
"type": "string"
},
"mods": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
},
"nullable": true
},
"misses": {
"maximum": 2147483647,
Expand Down Expand Up @@ -264,6 +265,27 @@
}
},
"additionalProperties": false
},
"Mod": {
"required": [
"acronym"
],
"type": "object",
"properties": {
"acronym": {
"minLength": 1,
"type": "string"
},
"settings": {
"type": "object",
"additionalProperties": {
"type": "string",
"nullable": true
},
"nullable": true
}
},
"additionalProperties": false
}
}
}
Expand Down
38 changes: 30 additions & 8 deletions docs/docs/api-reference/difficalcy-osu.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
"name": "Mods",
"in": "query",
"schema": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
}
}
}
],
Expand Down Expand Up @@ -166,6 +166,27 @@
},
"additionalProperties": false
},
"Mod": {
"required": [
"acronym"
],
"type": "object",
"properties": {
"acronym": {
"minLength": 1,
"type": "string"
},
"settings": {
"type": "object",
"additionalProperties": {
"type": "string",
"nullable": true
},
"nullable": true
}
},
"additionalProperties": false
},
"OsuCalculation": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -245,10 +266,11 @@
"type": "string"
},
"mods": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
},
"nullable": true
},
"combo": {
"maximum": 2147483647,
Expand Down
38 changes: 30 additions & 8 deletions docs/docs/api-reference/difficalcy-taiko.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@
"name": "Mods",
"in": "query",
"schema": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
}
}
}
],
Expand Down Expand Up @@ -156,6 +156,27 @@
},
"additionalProperties": false
},
"Mod": {
"required": [
"acronym"
],
"type": "object",
"properties": {
"acronym": {
"minLength": 1,
"type": "string"
},
"settings": {
"type": "object",
"additionalProperties": {
"type": "string",
"nullable": true
},
"nullable": true
}
},
"additionalProperties": false
},
"TaikoCalculation": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -227,10 +248,11 @@
"type": "string"
},
"mods": {
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"format": "int32"
"type": "array",
"items": {
"$ref": "#/components/schemas/Mod"
},
"nullable": true
},
"combo": {
"maximum": 2147483647,
Expand Down

0 comments on commit c01663c

Please sign in to comment.