Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"test": "NODE_ENV=test jest --config config/jest.config.js --detectOpenHandles --forceExit",
"jsdoc": "jsdoc -r src -R README.md -d jsdoc -c config/jsdoc.config.js",
"lint": "eslint src test --config .eslintrc.json --ext .ts,.tsx --quiet",
Comment thread
mathieulemieux marked this conversation as resolved.
"lint": "eslint src --config .eslintrc.json --ext .ts,.tsx --quiet",
"build": "tsc",
"prepublishOnly": "npm ci && npm run build"
},
Expand Down
7 changes: 6 additions & 1 deletion src/definitions/variant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,14 @@ const models: PartialSchemaDefn = {
type: 'string',
pattern: '^(hg\\d+)|(grch\\d+)$',
description: 'Flag which is optionally used for genomic variants that are not linked to a fixed assembly reference',
deprecated: true,
},
{
name: 'hgvsType', type: 'string', examples: ['delins'], description: 'the short form of this type to use in building an HGVS-like representation',
name: 'hgvsType',
type: 'string',
examples: ['delins'],
description: 'the short form of this type to use in building an HGVS-like representation',
deprecated: true,
},
],
indices: [
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export interface PropertyDefinition {
/** enum representing acceptable values */
choices?: unknown[];
default?: unknown;
/** flag property as deprecated yet not removed, so the client should not show it */
deprecated?: boolean;
/** description for the openapi spec */
description?: string;
/** example values to use for help text */
Expand Down
Loading