Skip to content

Commit

Permalink
fix: update digest + refgetAccession patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Aug 31, 2023
1 parent 248bc9c commit 42105c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions schema/vrs-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $defs:
digest:
description: A sha512t24u digest created using the VRS Computed Identifier algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'

Ga4ghIdentifiableObject:
inherits: ValueObject
Expand Down Expand Up @@ -440,7 +440,7 @@ $defs:
refgetAccession:
description: A `GA4GH RefGet <http://samtools.github.io/hts-specs/refget.html>` identifier for the referenced sequence, using the sha512t24u digest.
type: string
pattern: 'SQ.[0-9A-Za-z_\-]{32}'
pattern: '^SQ.[0-9A-Za-z_\-]{32}$'
residueAlphabet:
type: string
description: >-
Expand Down
16 changes: 8 additions & 8 deletions schema/vrs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $defs:
description: A sha512t24u digest created using the VRS Computed Identifier
algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'
location:
oneOf:
- $ref: '#/$defs/SequenceLocation'
Expand Down Expand Up @@ -110,7 +110,7 @@ $defs:
description: A sha512t24u digest created using the VRS Computed Identifier
algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'
members:
type: array
ordered: false
Expand Down Expand Up @@ -165,7 +165,7 @@ $defs:
description: A sha512t24u digest created using the VRS Computed Identifier
algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'
subject:
oneOf:
- $ref: '#/$defs/SequenceLocation'
Expand Down Expand Up @@ -215,7 +215,7 @@ $defs:
description: A sha512t24u digest created using the VRS Computed Identifier
algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'
subject:
oneOf:
- $ref: '#/$defs/SequenceLocation'
Expand Down Expand Up @@ -274,7 +274,7 @@ $defs:
description: A sha512t24u digest created using the VRS Computed Identifier
algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'
members:
type: array
ordered: false
Expand Down Expand Up @@ -336,7 +336,7 @@ $defs:
description: A sha512t24u digest created using the VRS Computed Identifier
algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'
sequenceReference:
oneOf:
- $ref: '#/$defs/SequenceReference'
Expand Down Expand Up @@ -393,12 +393,12 @@ $defs:
description: A sha512t24u digest created using the VRS Computed Identifier
algorithm.
type: string
pattern: '[0-9A-Za-z_\-]{32}'
pattern: '^[0-9A-Za-z_\-]{32}$'
refgetAccession:
description: A `GA4GH RefGet <http://samtools.github.io/hts-specs/refget.html>`
identifier for the referenced sequence, using the sha512t24u digest.
type: string
pattern: SQ.[0-9A-Za-z_\-]{32}
pattern: ^SQ.[0-9A-Za-z_\-]{32}$
residueAlphabet:
type: string
enum:
Expand Down

0 comments on commit 42105c5

Please sign in to comment.