Skip to content

Commit

Permalink
update format for group schema
Browse files Browse the repository at this point in the history
  • Loading branch information
npauzenga committed Feb 16, 2016
1 parent 0e912f2 commit c6ebb34
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions config/schema/schemata/group.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,20 @@
"type": ["object"]
},
"title": "Create",
"targetSchema": {
"targetSchema": { "$ref": "/schemata/jsonapi#/definitions/response"
"type": "object",
"properties": {
"id": { "$ref": "/schemata/group#/definitions/id" },
"name": { "$ref": "/schemata/group#/definitions/name" },
"city": { "$ref": "/schemata/group#/definitions/city" },
"state": { "$ref": "/schemata/group#/definitions/state" },
"country": { "$ref": "/schemata/group#/definitions/country" },
"facebook": { "$ref": "/schemata/group#/definitions/facebook" },
"twitter": { "$ref": "/schemata/group#/definitions/twitter" }
}
"data": {
"type": "object",
"properties": {
"id": { },
"type": {},
"attributes": {}
},
"required": ["id", "type", "attributes"]
}
},
"required":["data"],
}
},
{
Expand Down

0 comments on commit c6ebb34

Please sign in to comment.