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

archival projection interactive profiles social-network sna research public-health network-canvas sequences
Last synced: 11 months ago · JSON representation

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
Created over 7 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

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:

  1. validateSchema - validates a schema against the JSON schema

js const { hasErrors, errors } = validateSchema(schemaJson);

  1. 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);

  1. 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

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

All Time
  • Total Commits: 186
  • Total Committers: 4
  • Avg Commits per committer: 46.5
  • Development Distribution Score (DDS): 0.376
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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)
Top Labels
Issue Labels
Architect (2) dependencies (2) NC (1) enhancement (1)
Pull Request Labels
dependencies (77) #st-01-2021 (1)