Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

Commit

Permalink
Adicionando alguns ajustes que fazem sentido para o faker
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogerio Angeliski authored and hdamaich committed Oct 30, 2017
1 parent 5ee2368 commit f5a86c2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
26 changes: 14 additions & 12 deletions config/schemas/materia.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"properties": {
"descricao": {
"id": "/properties/descricao",
"type": "string"
},
"id": {
"id": "/properties/id",
"type": "integer"
}
},
"type": "object"
}
"properties": {
"descricao": {
"id": "/properties/descricao",
"type": "string"
},
"id": {
"id": "/properties/id",
"type": "integer",
"minimum": 1
}
},
"type": "object",
"required": ["id", "descricao"]
}
12 changes: 9 additions & 3 deletions config/schemas/pessoa.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"id": {
"description": "Codigo identificador do usuário",
"id": "/properties/id",
"type": "integer"
"type": "integer",
"minimum": 1
},
"name": {
"description": "O nome principal do usuário",
Expand All @@ -21,14 +22,17 @@
"id": {
"description": "O level atual do usuário",
"id": "/properties/level/properties/id",
"type": "integer"
"type": "integer",
"minimum": 1
},
"name": {
"description": "A descrição do level",
"id": "/properties/level/properties/name",
"type": "string"
}
},
"required": ["id", "name"],

"type": "object"
},
"status": {
Expand Down Expand Up @@ -64,10 +68,12 @@
"type": "string"
}
},
"required": ["name", "description"],
"type": "object"
},
"type": "array"
}
},
"type": "object"
"type": "object",
"required": ["id", "name", "email", "status", "level"]
}

0 comments on commit f5a86c2

Please sign in to comment.