Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
- [schema] allow forward slash on the facebook username
- [schema] allow array of users or single string on github_user
  • Loading branch information
igorls committed Sep 19, 2020
1 parent bd6530d commit b0e31a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "bp-info-standard",
"version": "1.0.1",
"version": "1.0.2",
"description": "**JSON Standard for Block Producer Information on the EOS Blockchain**",
"main": "index.js",
"repository": {
Expand Down
21 changes: 19 additions & 2 deletions schema.json
Expand Up @@ -50,6 +50,10 @@
"type": "string",
"pattern": "^[\\w\\d_\\-\\.]*$"
},
"facebook_username": {
"type": "string",
"pattern": "^[\\w\\d_\\-\\./]*$"
},
"youtube_username": {
"type": "string",
"pattern": "^[\\w\\d_\\-\\./]*$"
Expand Down Expand Up @@ -104,7 +108,20 @@
"github_user": {
"$id": "/properties/org/properties/github_user",
"description": "Operational github username",
"type": "string"
"oneOf": [
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[\\w\\d_\\-\\.]*$"
}
},
{
"type": "string",
"pattern": "^[\\w\\d_\\-\\.]*$"
}
]
},
"branding": {
"type": "object",
Expand All @@ -127,7 +144,7 @@
"type": "object",
"properties": {
"facebook": {
"$ref": "#/$defs/username",
"$ref": "#/$defs/facebook_username",
"description": "group/page address only, not the entire url"
},
"github": {
Expand Down

0 comments on commit b0e31a6

Please sign in to comment.