-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
- Loading branch information
1 parent
5b8057f
commit 2fbf31e
Showing
6 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |