forked from bioboxes/rfc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(profiling): updated schema issue bioboxes#207
- Loading branch information
Showing
1 changed file
with
67 additions
and
54 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 |
---|---|---|
@@ -1,56 +1,69 @@ | ||
--- | ||
$schema: "http://json-schema.org/draft-04/schema#" | ||
title: "Bioboxes Profiling validator" | ||
type: "object" | ||
properties: | ||
version: | ||
type: "string" | ||
pattern: "^1.0.\\d+$" | ||
arguments: | ||
type: "object" | ||
required: | ||
- "reads" | ||
"$schema": http://json-schema.org/draft-04/schema# | ||
title: Bioboxes Profiling | ||
type: object | ||
properties: | ||
version: | ||
type: string | ||
pattern: "^1.0.\\d+$" | ||
arguments: | ||
type: array | ||
required: | ||
- fastq | ||
- database | ||
additionalItems: false | ||
minItems: 1 | ||
items: | ||
oneOf: | ||
- "$ref": "#/definitions/fastq" | ||
- "$ref": "#/definitions/database" | ||
- "$ref": "#/definitions/cache" | ||
required: | ||
- version | ||
- arguments | ||
additionalProperties: false | ||
definitions: | ||
fastq: | ||
type: object | ||
minItems: 1 | ||
required: | ||
- fastq | ||
properties: | ||
fastq: | ||
"$ref": "#/definitions/values" | ||
values: | ||
type: array | ||
uniqueItems: true | ||
minItems: 1 | ||
items: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
reads: | ||
$ref: "#/definitions/fastq" | ||
databases: | ||
$ref: "#/definitions/databases" | ||
cache: {} | ||
required: | ||
- "version" | ||
- "arguments" | ||
additionalProperties: false | ||
definitions: | ||
fastq: | ||
type: "array" | ||
minItems: 1 | ||
items: | ||
type: "object" | ||
additionalProperties: false | ||
required: | ||
- "format" | ||
- "path" | ||
properties: | ||
format: | ||
enum: | ||
- "bioboxes.org:/fastq" | ||
path: {} | ||
databases: | ||
type: "object" | ||
required: | ||
- "taxonomy" | ||
properties: | ||
taxonomy: | ||
type: "object" | ||
required: | ||
- "path" | ||
- "format" | ||
properties: | ||
format: | ||
enum: | ||
- "bioboxes.org:/taxonomy_ncbi_dumps" | ||
type: | ||
enum: | ||
- "ncbi" | ||
path: {} | ||
required: | ||
- type | ||
- value | ||
properties: | ||
type: {} | ||
value: {} | ||
cache: | ||
type: object | ||
required: | ||
- cache | ||
properties: | ||
cache: | ||
required: | ||
- type | ||
- value | ||
properties: | ||
type: {} | ||
value: {} | ||
database: | ||
required: | ||
- database | ||
properties: | ||
database: | ||
required: | ||
- type | ||
- value | ||
properties: | ||
type: {} | ||
value: {} |