-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding optional booleanSets and countSets responses
- Loading branch information
Showing
4 changed files
with
123 additions
and
0 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
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"additionalProperties": true, | ||
"definitions": { | ||
"BooleansetInstance": { | ||
"additionalProperties": true, | ||
"properties": { | ||
"exists": { | ||
"type": "boolean" | ||
}, | ||
"id": { | ||
"description": "id of the Booleanset", | ||
"example": "datasetA", | ||
"type": "string" | ||
}, | ||
"info": { | ||
"description": "Additional details that could be of interest about the Booleanset. Provided to clearly enclose any attribute that is not part of the Beacon specification.", | ||
"type": "object" | ||
}, | ||
"resultsHandovers": { | ||
"$ref": "../../common/beaconCommonComponents.json#/definitions/ListOfHandovers", | ||
"description": "List of handovers that apply to this Booleanset, not to the whole Beacon or to a result in particular." | ||
}, | ||
"setType": { | ||
"default": "dataset", | ||
"description": "Entry type of Booleanset. It SHOULD MATCH an entry type declared as collection in the Beacon configuration.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"setType", | ||
"exists" | ||
] | ||
} | ||
}, | ||
"description": "Sets of results to be returned as query response.", | ||
"properties": { | ||
"$schema": { | ||
"$ref": "../../common/beaconCommonComponents.json#/definitions/$schema" | ||
}, | ||
"booleanSets": { | ||
"items": { | ||
"$ref": "#/definitions/BooleansetInstance" | ||
}, | ||
"minItems": 0, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"booleanSets" | ||
], | ||
"title": "Beacon BooleanSet", | ||
"type": "object" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"additionalProperties": true, | ||
"definitions": { | ||
"CountsetInstance": { | ||
"additionalProperties": true, | ||
"properties": { | ||
"exists": { | ||
"type": "boolean" | ||
}, | ||
"id": { | ||
"description": "id of the Countset", | ||
"example": "datasetA", | ||
"type": "string" | ||
}, | ||
"info": { | ||
"description": "Additional details that could be of interest about the Countset. Provided to clearly enclose any attribute that is not part of the Beacon specification.", | ||
"type": "object" | ||
}, | ||
"resultsCount": { | ||
"description": "Number of results in this Countset.", | ||
"type": "integer" | ||
}, | ||
"resultsHandovers": { | ||
"$ref": "../../common/beaconCommonComponents.json#/definitions/ListOfHandovers", | ||
"description": "List of handovers that apply to this Countset, not to the whole Beacon or to a result in particular." | ||
}, | ||
"setType": { | ||
"default": "dataset", | ||
"description": "Entry type of Countset. It SHOULD MATCH an entry type declared as collection in the Beacon configuration.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"setType", | ||
"exists", | ||
"resultsCount" | ||
] | ||
} | ||
}, | ||
"description": "Sets of results to be returned as query response.", | ||
"properties": { | ||
"$schema": { | ||
"$ref": "../../common/beaconCommonComponents.json#/definitions/$schema" | ||
}, | ||
"countSets": { | ||
"items": { | ||
"$ref": "#/definitions/CountsetInstance" | ||
}, | ||
"minItems": 0, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"countSets" | ||
], | ||
"title": "Beacon CountSet", | ||
"type": "object" | ||
} |