Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add missing assertions and missing exception-param
  • Loading branch information
tvdijen committed Dec 6, 2024
1 parent ba0be34 commit 189f992
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ Currently this library provides the following additional assertions:

### Assertions

Method | Description
-----------------------------------------------|-----------------------------------------------------------------------------
`stringPlausibleBase64($value, $message = '')` | Check that a value is plausibly base64
`validDateTime($value, $message = '')` | Check that a value is a valid ISO8601 compliant DateTime
`notInArray($value, $values, $message = '')` | Check that a value is _NOT_ one of a list of values
`validURI($value, $message = '')` | Check that a value is a valid RFC3986 URI
`validURL($value, $message = '')` | Check that a value is a valid RFC2396 URL
`validURN($value, $message = '')` | Check that a value is a valid RFC8141 URN
`validNCName($value, $message = '')` | Check that a value is a valid xs:NCName
`validQName($value, $message = '')` | Check that a value is a valid xs:QName
`validDuration($value, $message = '')` | Check that a value is a xs:duration
Method | Description
-----------------------------------------------------------------------------|-----------------------------------------------------------------
`stringPlausibleBase64($value, $message = '', ?Throwable $exception = null)` | Check that a value is plausibly base64
`validDateTime($value, $message = '', ?Throwable $exception = null)` | Check that a value is a valid ISO8601 compliant DateTime
`notInArray($value, $values, $message = '', ?Throwable $exception = null)` | Check that a value is _NOT_ one of a list of values
`validURI($value, $message = '', ?Throwable $exception = null)` | Check that a value is a valid RFC3986 URI
`validURL($value, $message = '', ?Throwable $exception = null)` | Check that a value is a valid RFC2396 URL
`validURN($value, $message = '', ?Throwable $exception = null)` | Check that a value is a valid RFC8141 URN
`validNCName($value, $message = '', ?Throwable $exception = null)` | Check that a value is a valid xs:NCName
`validQName($value, $message = '', ?Throwable $exception = null)` | Check that a value is a valid xs:QName
`validDuration($value, $message = '', ?Throwable $exception = null)` | Check that a value is a xs:duration
`validNMTokens($value, $message = '', ?Throwable $exception = null)` | Check that a value is a xs:NMTokens
`validNMToken($value, $message = '', ?Throwable $exception = null)` | Check that a value is a xs:NMToken
`validHexBinary($value, $message = '', ?Throwable $exception = null)` | Check that a value is a xs:hexBinary

0 comments on commit 189f992

Please sign in to comment.