问题是我不知道如何使用 Json Schema 验证个人电子邮件,这是什么模式?
例子@outlook.com
我已经尝试在 google 中查找,但找不到任何内容。
"email": {
"description": "Email of the user",
"type": "string",
"pattern": "",
},
最佳答案
您可以使用 格式在 JSON Schema 中验证电子邮件。
"email": {
"description": "Email of the user",
"type": "string",
"format": "email"
}
关于json - 如何使用 json 模式验证个人电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57578934/