Skip to content

Commit

Permalink
Add user profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi committed Sep 11, 2024
1 parent 5b8057f commit 2fbf31e
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 0 deletions.
130 changes: 130 additions & 0 deletions .github/user-profile-schema-validation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"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, 204]
},
"uniqueItems": true
},
"conference_ids": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
}
},
"additionalProperties": false
}
},
"required": ["type"],
"oneOf": [
{
"if": {
"properties": { "type": { "enum": ["osci"] } }
},
"then": {
"properties": {
"details": {
"type": "object",
"properties": {
"years": {
"type": "array",
"items": {
"type": "integer",
"enum": [2023, 204]
},
"uniqueItems": true
}
},
"required": ["years"],
"additionalProperties": false
}
}
}
},
{
"if": {
"properties": { "type": { "enum": ["conference_speaker"] } }
},
"then": {
"properties": {
"details": {
"type": "object",
"properties": {
"conference_ids": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
}
},
"required": ["conference_ids"],
"additionalProperties": false
}
}
}
},
{
"if": {
"properties": { "type": { "enum": ["author"] } }
},
"then": {
"not": {
"required": ["details"]
}
}
}
],
"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.
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"
}

0 comments on commit 2fbf31e

Please sign in to comment.