Docs y mejora de deteccion de id de entrada

This commit is contained in:
2026-03-10 17:02:41 +01:00
parent 3428fa00de
commit 4d7e496574
5 changed files with 51 additions and 10 deletions

View File

@@ -26,12 +26,12 @@ runtime:
test("Body must include a data field", () => {
const body = res.getBody()
expect(body.data).toBeDefined()
expect(body.data).to.not.be.undefined
})
test("Body should include the label", () => {
const body = res.getBody()
expect(body.data.label).toBeDefined()
expect(body.data.label).to.not.be.undefined
})
settings:
@@ -50,9 +50,18 @@ examples:
type: json
data: |-
{
"card_id": "",
"card_id": "019cd877-ab5f-718c-9d77-3cbf6972e535",
"override": false
}
{
"card_id": "019cd877-ab5f-718c-9d77-3cbf6972e535",
"override": true
}
{
"card_id": "019cd877-ab5f-718c-9d77-3cbf6972e535",
}
response:
status: 200
statusText: OK
@@ -77,7 +86,7 @@ examples:
type: json
data: |-
{
"card_id": "",
"card_id": "1234", // no es un uuid valido
"override": false
}
response:
@@ -91,8 +100,8 @@ examples:
data: |-
{
"error": {
"msg": "",
"field": ""
"msg": "El campo card_id no es un uuidv7",
"field": "card_id"
}
}
- name: 500 Response