Update api spec (#174)
YOYO NEW API SPEC! Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
15
spec.json
15
spec.json
@ -702,7 +702,8 @@
|
|||||||
"description": "The ID of the API call.",
|
"description": "The ID of the API call.",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"format": "uuid"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -4941,7 +4942,8 @@
|
|||||||
"description": "The ID of the API call.",
|
"description": "The ID of the API call.",
|
||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"format": "uuid"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -7612,7 +7614,7 @@
|
|||||||
"description": "The unique identifier for the AI Prompt.",
|
"description": "The unique identifier for the AI Prompt.",
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/UuidBinary"
|
"$ref": "#/components/schemas/Uuid"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -18839,12 +18841,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Uuid": {
|
"Uuid": {
|
||||||
"description": "A uuid stored as a varchar(191).\n\nA Version 4 UUID is a universally unique identifier that is generated using random numbers.",
|
"description": "A UUID usually v4 or v7",
|
||||||
"type": "string",
|
|
||||||
"format": "uuid"
|
|
||||||
},
|
|
||||||
"UuidBinary": {
|
|
||||||
"description": "A uuid stored as binary(16).\n\nMysql binary(16) storage for UUIDs. Uses Version 7 UUID by default, a universally unique identifier that is generated using random numbers and a timestamp. UUIDv7 are recommended for database ids/primary keys because they are sequential and this helps with efficient indexing, especially on MySQL. For other uses cases, like API tokens, UUIDv4 makes more sense because it's completely random.\n\nHowever, both should be stored as binary on MySQL! Both versions use the same data format, so they can be used interchangeably with this data type.",
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uuid"
|
"format": "uuid"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user