-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(schema): start documenting graphql schema
- Loading branch information
1 parent
cb178b3
commit 0925267
Showing
5 changed files
with
52 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,9 @@ | ||
import gql from 'graphql-tag'; | ||
|
||
export const typeDef = gql` | ||
type ComplianceCheck { | ||
checkPasses: Boolean | ||
metadata: JSON | ||
} | ||
` | ||
|
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,8 @@ | ||
import gql from 'graphql-tag'; | ||
|
||
export const typeDef = gql` | ||
type RepoCheck { | ||
vulnerabilityAlertsEnabled: ComplianceCheck | ||
hasSecurityMd: ComplianceCheck | ||
} | ||
` |
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,14 @@ | ||
import gql from 'graphql-tag'; | ||
|
||
export const typeDef = gql` | ||
type URLCheck { | ||
accessibility: AccessibilityReport | ||
} | ||
type AccessibilityReport { | ||
minimumColourContrast: ComplianceCheck | ||
ariaLabelsIncluded: ComplianceCheck | ||
} | ||
` | ||
|
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,9 @@ | ||
# URL (Service) Checks | ||
|
||
Some products have one or more services exposed through URLs. URL compliance checks perform a series of automated accessibility and security compliance checks using information that can be retrieved via these public URLs. | ||
|
||
## GraphQL Schema | ||
|
||
```javascript | ||
--8<-- "api/src/schema/url-check.js:4:11" | ||
``` |
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,12 @@ | ||
# Observatory (R U OK?) | ||
|
||
Observatory is an automated real-time scanning framework for products whose source code is managed on [`PHACDataHub`](https://github.com/PHACDataHub/). The purpose of Observatory is to ensure compliance with requirements around concerns such as security and accessibility. | ||
|
||
## Term Glossary | ||
|
||
For the purposes of Observatory, we use the glossary below to define several terms used throughout our GraphQL Schema and data models. | ||
|
||
| Term | Meaning | | ||
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **Product** | Any software product managed under [`PHACDataHub`](https://github.com/PHACDataHub/). | | ||
| **Service** | Any software product managed under [`PHACDataHub`](https://github.com/PHACDataHub/) that is exposed through one or more service URLs (i.e. not all products deploy services). | |