@workchain/postal-code
v1.0.2
Published
```sh yarn add @workchain/postal-code ```
Readme
install:
yarn add @workchain/postal-codeadd to api schema.json:
{
"attributes": {
"postalCode": {
"type": "customField",
"customField": "plugin::postal-code.postal",
"maxLength": 8,
"regex": "^\\d{3}-?\\d{4}$",
"required": true,
},
"prefecture": {
"type": "customField",
"customField": "plugin::postal-code.prefecture",
"maxLength": 40,
"required": true,
},
"address1": {
"type": "string",
"maxLength": 40,
},
},
}