Skip to content

Commit

Permalink
Fix some patterns on JSON schemas (#786)
Browse files Browse the repository at this point in the history
Signed-off-by: Cintia Sánchez García <cynthiasg@icloud.com>
  • Loading branch information
cynthia-sg authored Jan 16, 2025
1 parent 78c5155 commit 24405fe
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
19 changes: 10 additions & 9 deletions docs/config/schema/data.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@
"title": "Crunchbase URL of the organization this item belongs to",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?crunchbase.com/organization/.*",
"pattern": "^https?://(www\\.)?crunchbase.com/organization/.*",
"examples": ["https://www.crunchbase.com/organization/org-name"]
},
"twitter": {
"title": "Twitter URL",
"type": "string",
"pattern": "^https://(twitter|x).com/.*",
"pattern": "^https?://(twitter|x).com/.*",
"examples": ["https://twitter.com/org-name", "https://x.com/org-name"]
},
"url_for_bestpractices": {
Expand Down Expand Up @@ -256,7 +256,7 @@
"title": "Facebook URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?facebook.com/.*"
"pattern": "^https?://(www\\.)?facebook.com/.*"
},
"github_discussions_url": {
"title": "GitHub discussions URL",
Expand Down Expand Up @@ -288,7 +288,7 @@
"title": "LinkedIn URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?linkedin.com/.*",
"pattern": "^https?://(www\\.)?linkedin.com/.*",
"examples": ["https://www.linkedin.com/url"]
},
"mailing_list_url": {
Expand Down Expand Up @@ -323,7 +323,7 @@
"description": "Link to the package manager where the item is available",
"type": "string",
"format": "uri",
"pattern": "https?://.*"
"pattern": "^https?://.*"
},
"parent_project": {
"title": "Name of the parent project",
Expand All @@ -335,20 +335,21 @@
"title": "Pinterest URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?pinterest.com/.*",
"pattern": "^https?://(www\\.)?pinterest.com/.*",
"examples": ["https://www.pinterest.com/url"]
},
"reddit_url": {
"title": "Reddit URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?reddit.com/.*",
"pattern": "^https?://(www\\.)?reddit.com/.*",
"examples": ["https://www.reddit.com/url"]
},
"slack_url": {
"title": "Slack URL",
"type": "string",
"format": "uri",
"pattern": "^https?://.*",
"examples": ["https://slack.url"]
},
"specification": {
Expand All @@ -359,7 +360,7 @@
"title": "Stack Overflow URL",
"type": "string",
"format": "uri",
"pattern": "^https://stackoverflow.com/.*"
"pattern": "^https?://stackoverflow.com/.*"
},
"summary_business_use_case": {
"title": "Description of the business use case",
Expand Down Expand Up @@ -422,7 +423,7 @@
"title": "YouTube URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?youtube.com/.*",
"pattern": "^https?://(www\\.)?youtube.com/.*",
"examples": ["https://www.youtube.com/url"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/config/schema/guide.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
}
},
"required": ["category", "content"]
"required": ["category"]
}
}
},
Expand Down
24 changes: 12 additions & 12 deletions docs/config/schema/settings.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"container_id": {
"title": "Landscape web application container ID",
"type": "string",
"pattern": "GTM-[A-Z0-9]{6,7}",
"pattern": "^GTM-.*",
"examples": ["GTM-XXXXX"]
}
}
Expand Down Expand Up @@ -209,21 +209,21 @@
"title": "Facebook URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?facebook.com/.*",
"pattern": "^https?://(www\\.)?facebook.com/.*",
"examples": ["https://www.facebook.com/url"]
},
"flickr": {
"title": "Flickr URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?flickr.com/.*",
"pattern": "^https?://(www\\.)?flickr.com/.*",
"examples": ["https://www.flickr.com/url"]
},
"github": {
"title": "GitHub URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?github.com/.*",
"pattern": "^https?://(www\\.)?github.com/.*",
"examples": ["https://github.com/owner/repo"]
},
"homepage": {
Expand All @@ -237,49 +237,49 @@
"title": "Instagram URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?instagram.com/.*",
"pattern": "^https?://(www\\.)?instagram.com/.*",
"examples": ["https://www.instagram.com/url"]
},
"linkedin": {
"title": "LinkedIn URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?linkedin.com/.*",
"pattern": "^https?://(www\\.)?linkedin.com/.*",
"examples": ["https://www.linkedin.com/url"]
},
"slack": {
"title": "Slack URL",
"type": "string",
"format": "uri",
"pattern": "^https://.*",
"pattern": "^https?://.*",
"examples": ["https://example.slack.com"]
},
"twitch": {
"title": "Twitch URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?twitch.tv/.*",
"pattern": "^https?://(www\\.)?twitch.tv/.*",
"examples": ["https://www.twitch.tv/url"]
},
"twitter": {
"title": "Twitter URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?(twitter|x).com/.*",
"pattern": "^https?://(www\\.)?(twitter|x).com/.*",
"examples": ["https://www.twitter.com/url", "https://x.com/url"]
},
"wechat": {
"title": "WeChat URL",
"type": "string",
"format": "uri",
"pattern": "^https://.*",
"pattern": "^https?://.*",
"examples": ["https://example.com"]
},
"youtube": {
"title": "YouTube URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?youtube.com/.*",
"pattern": "^https?://(www\\.)?youtube.com/.*",
"examples": ["https://www.youtube.com/url"]
}
}
Expand Down Expand Up @@ -343,7 +343,7 @@
"title": "GitHub URL",
"type": "string",
"format": "uri",
"pattern": "^https://(www\\.)?github.com/.*",
"pattern": "^https?://(www\\.)?github.com/.*",
"examples": ["https://github.com/owner/repo"]
}
}
Expand Down

0 comments on commit 24405fe

Please sign in to comment.