-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifico ejemplo de retorno de errores para la v0.1
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// ejemplos de lo que devuelve DataJson().validate_catalog() | ||
|
||
// toda la estructura del data.json está OK | ||
{ | ||
"status": "OK", | ||
"error": { | ||
"catalog": { | ||
"status": "OK", | ||
"title": "Título del Catálogo" | ||
}, | ||
"dataset": [ | ||
{ | ||
"status": "OK", | ||
"title": "Título Dataset 1" | ||
}, | ||
{ | ||
"status": "OK", | ||
"title": "Título Dataset 2" | ||
} | ||
] | ||
} | ||
} | ||
|
||
// la estructura a nivel de catálogo está OK / algunos datasets tienen ERROR | ||
{ | ||
"status": "ERROR", | ||
"catalog": { | ||
"status": "OK", | ||
"title": "Título del Catálogo" | ||
}, | ||
"dataset": [ | ||
{ | ||
"status": "OK", | ||
"title": "Título Dataset 1" | ||
}, | ||
{ | ||
"status": "ERROR", | ||
"title": null | ||
} | ||
] | ||
} | ||
|
||
// la estructura a nivel de catálogo tiene ERROR | ||
{ | ||
"status": "OK", | ||
"error": { | ||
"catalog": { | ||
"status": "ERROR", | ||
"title": "Título del Catálogo" | ||
}, | ||
"dataset": [ | ||
{ | ||
"status": "OK", | ||
"title": "Título Dataset 1" | ||
}, | ||
{ | ||
"status": "OK", | ||
"title": "Título Dataset 2" | ||
} | ||
] | ||
} | ||
} | ||
|
||
|
||
|