We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 903ad69 commit c60a15eCopy full SHA for c60a15e
1 file changed
pyswagger/primitives/_model.py
@@ -46,7 +46,7 @@ def apply_with(self, obj, val, ctx):
46
47
not_found = set(obj.required) - set(six.iterkeys(self))
48
if len(not_found):
49
- raise ValueError('requirement not met: {0}'.format(not_found))
+ raise ValueError('Model missing required key(s): {0}'.format(', '.join(not_found)))
50
51
# remove assigned properties to avoid duplicated
52
# primitive creation
0 commit comments