Skip to content

Commit

Permalink
feature(profiling): updated schema issue bioboxes#207
Browse files Browse the repository at this point in the history
  • Loading branch information
pbelmann authored Mar 2, 2017
1 parent f5406e4 commit 5a4b261
Showing 1 changed file with 67 additions and 54 deletions.
121 changes: 67 additions & 54 deletions container/profiling/schema.yaml
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: {}

0 comments on commit 5a4b261

Please sign in to comment.