Skip to content

Commit

Permalink
Don't cast multipleOf to be an integer for the error message
Browse files Browse the repository at this point in the history
While this isn't the best way to deal with multipleOf being either an integer or a float it should suffice for now.
  • Loading branch information
Peter Mead committed Nov 28, 2017
1 parent dfdcb5b commit 6e0a177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonSchema/ConstraintError.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getMessage()
self::MISSING_MAXIMUM => 'Use of exclusiveMaximum requires presence of maximum',
self::MISSING_MINIMUM => 'Use of exclusiveMinimum requires presence of minimum',
/*self::MISSING_ERROR => 'Used for tests; this error is deliberately commented out',*/
self::MULTIPLE_OF => 'Must be a multiple of %d',
self::MULTIPLE_OF => 'Must be a multiple of %s',
self::NOT => 'Matched a schema which it should not',
self::ONE_OF => 'Failed to match exactly one schema',
self::REQUIRED => 'The property %s is required',
Expand Down

0 comments on commit 6e0a177

Please sign in to comment.