https://github.com/complexdatacollective/protocol-validation
Submodule implementing protocol schema validation
https://github.com/complexdatacollective/protocol-validation
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (2.9%) to scientific vocabulary
Keywords from Contributors
Repository
Submodule implementing protocol schema validation
Basic Info
- Host: GitHub
- Owner: complexdatacollective
- License: mit
- Language: TypeScript
- Default Branch: master
- Size: 612 KB
Statistics
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 4
- Releases: 0
Metadata Files
README.md
@codaco/protocol-validation
This npm package implements methods for validating Network Canvas protocol files against an appropriate JSON schema.
It exports three methods:
- validateSchema - validates a schema against the JSON schema
js
const { hasErrors, errors } = validateSchema(schemaJson);
- validateLogic - validates the logic of the protocol to ensure there are no inconsistencies. This includes validations that cannot be implemented within the JSON schema.
js
const { hasErrors, errors } = validateLogic(protocolJson);
- validateProtocol - validates the protocol against the schema and logic.
js
try {
validateProtocol(protocolJson, schemaJson);
// schema is valid
} catch (e) {
if (e instanceof ValidationError) {
// schema is invalid. e.schemaErrors and e.dataErrors contain the errors
} else {
// some other error happened during the process
}
}
It also exports migration functionality for migrating protocols from one version to another.
js
const migratedProtocol = migrateProtocol(8, protocolJson);
Owner
- Name: Complex Data Collective
- Login: complexdatacollective
- Kind: organization
- Email: developers@coda.co
- Location: Chicago, IL
- Website: http://coda.co
- Repositories: 16
- Profile: https://github.com/complexdatacollective
We design, develop, and promote tools that let researchers explore complex structural data.
GitHub Events
Total
- Release event: 1
- Delete event: 27
- Issue comment event: 24
- Push event: 10
- Pull request event: 52
- Create event: 28
Last Year
- Release event: 1
- Delete event: 27
- Issue comment event: 24
- Push event: 10
- Pull request event: 52
- Create event: 28
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Joshua Melville | j****e@n****u | 116 |
| Steve Mckellar | s****e@w****k | 54 |
| Rebecca Madsen | s****w@o****m | 9 |
| dependabot[bot] | 4****] | 7 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 7
- Total pull requests: 108
- Average time to close issues: over 1 year
- Average time to close pull requests: about 2 months
- Total issue authors: 2
- Total pull request authors: 5
- Average comments per issue: 1.29
- Average comments per pull request: 0.59
- Merged pull requests: 46
- Bot issues: 1
- Bot pull requests: 61
Past Year
- Issues: 1
- Pull requests: 39
- Average time to close issues: 7 days
- Average time to close pull requests: 9 days
- Issue authors: 1
- Pull request authors: 3
- Average comments per issue: 1.0
- Average comments per pull request: 0.69
- Merged pull requests: 2
- Bot issues: 1
- Bot pull requests: 35
Top Authors
Issue Authors
- wwqrd (6)
- dependabot[bot] (2)
Pull Request Authors
- dependabot[bot] (77)
- wwqrd (23)
- jthrilly (17)
- rebeccamadsen (7)
- buckhalt (2)