A validator for Iranian (Persian) national identifier or social number
c#
, java
, javascript
, php
parameter: string (It doesn't support arabic or persian numbers)
return: boolean
#set($allParams = $input.params()) | |
{ | |
"context": { | |
"httpMethod": "$context.httpMethod", | |
"path": "$context.path" | |
}, | |
"params" : { | |
#foreach($type in $allParams.keySet()) | |
#set($params = $allParams.get($type)) | |
"$type": { |