Fix response object for /biome/register endpoint
The 200 response object both referenced a non existent schema and
was not structured right. This commit adds the missing schema and
restructures the `content` section to conform withe expected format.
@@ -1136,15 +1136,13 @@ paths:
content:
application/json:
schema:
- type: object
properties:
message:
type: string
example: "User created successfully"
data:
type: object
- example:
- ref: '#/components/schemas/BiomeNewUser'
+ $ref: '#/components/schemas/BiomeNewUser'
'400':
description: Invalid request
content:
@@ -2157,6 +2155,14 @@ components:
example: 2
schemas:
+ BiomeNewUser:
+ additionalProperties: false
+ properties:
+ user_id:
+ type: string
+ username:
+ type: string
+
Error:
additionalProperties: false
properties:
