Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
allow implicit and explicit varianttype for mate
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Apr 26, 2019
1 parent 82ec8e7 commit ce0721e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 24 additions & 2 deletions beacon_api/schemas/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@
"oneOf": [{
"required": [
"variantType"
]
],
"not": {
"required": [
"mateName"
]
}
},
{
"required": [
Expand All @@ -117,7 +122,24 @@
{
"required": [
"mateName"
]
],
"not": {
"required": [
"variantType"
]
}
},
{
"required": [
"mateName",
"variantType"
],
"properties": {
"variantType": {
"type": "string",
"enum": ["BND"]
}
}
}
]
}, {
Expand Down
4 changes: 4 additions & 0 deletions docs/optionals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ Currently querying for a ``BND`` using ``startMin``, ``startMax`` and ``endMin``
with ``variantType=BND`` has the response illustrated below.
Fixed ``start`` and ``end`` can be utilised, as well as ``mateName`` as depicted above.

.. note:: By default when using ``mateName``, ``variantType`` is implicit ``BND``,
but it can also be set in an explicit manner using both ``mateName`` and
``variantType=BND`` in a query.

.. code-block:: javascript
{
Expand Down

0 comments on commit ce0721e

Please sign in to comment.