Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sample user profile #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/user-profile-schema-validation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"type": "object",
"properties": {
"name": { "type": "string" },
"github_username": { "type": "string" },
"opensearch_slack_username": { "type": "string" },
"company": { "type": "string" },
"job_title": { "type": "string" },
"location": { "type": "string" },
"profile_image": {
"type": "string",
"pattern": "^\\.\\./assets/profile-images/.*\\.jpg$"
},
"social_media_profiles": {
"type": "object",
"properties": {
"linkedin_id": { "type": "string" },
"twitter_id": { "type": "string" }
},
"additionalProperties": false
},
"personas": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"osci",
"conference_speaker",
"author"
]
},
"details": {
"type": "object",
"properties": {
"years": {
"type": "array",
"items": {
"type": "integer",
"enum": [2023, 2024]
},
"uniqueItems": true
},
"conference_ids": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
}
},
"required": [],
"additionalProperties": false
}
},
"required": ["type"],
"additionalProperties": false
},
"uniqueItems": true
},
"description": {
"type": "string",
"maxLength": 255
}
},
"required": [
"name",
"github_username",
"opensearch_slack_username",
"company",
"job_title",
"description"
],
"additionalProperties": false
}
20 changes: 20 additions & 0 deletions .github/workflows/user-profile-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate User Profiles

on:
workflow_dispatch:
pull_request:
paths:
- 'user-profiles/*.json'

jobs:
json-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: json-yaml-validate
id: json-yaml-validate
uses: GrantBirki/json-yaml-validate@v3.2.1
with:
json_schema: '.github/user-profile-schema-validation.json'
comment: "true"
Binary file added assets/profile-images/getsaurabh02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/profile-images/prudhvigodithi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions user-profiles/CMDWillYang.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Will Yang",
"github_username": "CMDWillYang",
"opensearch_slack_username": "Will Yang",
"company": "Purdue University",
"job_title": "Senior",
"personas": [
{
"type": "osci",
"details": {
"years": [2023]
}
}
],
"description": "A senior at Purdue University studying CS!"
}
24 changes: 24 additions & 0 deletions user-profiles/getsaurabh02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Saurabh Singh",
"github_username": "getsaurabh02",
"opensearch_slack_username": "Saurabh Singh",
"company": "AWS",
"job_title": "Software Development Manager",
"location": "Seattle WA",
"social_media_profiles": {
"linkedin_id": "getsaurabh02"
},
"personas": [
{
"type": "conference_speaker",
"details": {
"conference_ids": ["2023-north-america"]
}
},
{
"type": "author"
}
],
"description": "Saurabh is a Software Development Manager at AWS leading the core search, release, and benchmarking areas of the OpenSearch Project. His passion lies in finding solutions for intricate challenges within large-scale distributed systems.",
"profile_image": "../assets/profile-images/getsaurabh02.jpg"
}
19 changes: 19 additions & 0 deletions user-profiles/prudhvigodithi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Prudhvi Godithi",
"github_username": "prudhvigodithi",
"opensearch_slack_username": "prudhvi godithi",
"company": "Amazon",
"job_title": "Software Development Engineer",
"location": "Seattle WA",
"social_media_profiles": {
"linkedin_id": "prudhvi-godithi",
"twitter_id": "PGodithi"
},
"personas": [
{
"type": "author"
}
],
"description": "Prudhvi Godithi is an AWS Software Development Engineer working on the OpenSearch project.",
"profile_image": "../assets/profile-images/prudhvigodithi.jpg"
}