Skip to content

Commit

Permalink
Modifico ejemplo de retorno de errores para la v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
abenassi committed Nov 29, 2016
1 parent 38f5ff8 commit 11bedb5
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions samples/validate_catalog_returns.json
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"
}
]
}
}



0 comments on commit 11bedb5

Please sign in to comment.