Skip to content

Commit

Permalink
removed required stores when posting new item types
Browse files Browse the repository at this point in the history
  • Loading branch information
dutradda committed Jul 20, 2017
1 parent 24af6b3 commit 4ef8309
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions myreco/item_types/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
},{
"name": "stores",
"in": "query",
"required": true,
"type": "array",
"items": {
"type": "object",
Expand Down Expand Up @@ -250,7 +249,7 @@
"items": {
"type": "object",
"additionalProperties": false,
"required": ["name", "schema", "stores"],
"required": ["name", "schema"],
"properties": {
"name": {"type": "string"},
"schema": {"$ref": "#/definitions/items"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def test_post_with_invalid_body(self, init_db, headers, client):
'schema': {
'type': 'object',
'additionalProperties': False,
'required': ['name', 'schema', 'stores'],
'required': ['name', 'schema'],
'properties': {
'name': {'type': 'string'},
'stores': {'$ref': '#/definitions/ItemTypesModel.stores'},
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
# SOFTWARE.


VERSION = '0.54.0'
VERSION = '0.55.1'

0 comments on commit 4ef8309

Please sign in to comment.