close
The Wayback Machine - https://web.archive.org/web/20250121091519/https://github.com/noirbizarre/flask-restplus/commit/fdfa3c06d079337e5df7e0d64aecffbfac75f870
Skip to content

Commit

Permalink
Todo model's id readonly property typo fix
Browse files Browse the repository at this point in the history
The `readonly` property had a typo, corrected that, so now the swagger UI displays the example API payload correctly (without the id field), as originally intended.
  • Loading branch information
Kamforka authored Jun 20, 2018
1 parent 9032694 commit fdfa3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/todomvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ns = api.namespace('todos', description='TODO operations')

todo = api.model('Todo', {
'id': fields.Integer(readOnly=True, description='The task unique identifier'),
'id': fields.Integer(readonly=True, description='The task unique identifier'),
'task': fields.String(required=True, description='The task details')
})

Expand Down

0 comments on commit fdfa3c0

Please sign in to comment.