2020-04-06 11:52:18 +02:00
|
|
|
# Copyright © 2020 Interplanetary Database Association e.V.,
|
|
|
|
# BigchainDB and IPDB software contributors.
|
2018-08-16 12:31:32 +02:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
|
|
|
# Code is Apache-2.0 and docs are CC-BY-4.0
|
|
|
|
|
2018-08-02 11:49:59 +02:00
|
|
|
---
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#"
|
|
|
|
type: object
|
2018-09-11 15:39:46 +02:00
|
|
|
title: Vote Schema - Vote on an election
|
2018-08-02 11:49:59 +02:00
|
|
|
required:
|
|
|
|
- operation
|
|
|
|
- outputs
|
|
|
|
properties:
|
2018-08-20 16:57:32 +02:00
|
|
|
operation:
|
|
|
|
type: string
|
2018-09-11 15:39:46 +02:00
|
|
|
value: "VOTE"
|
2018-08-02 11:49:59 +02:00
|
|
|
outputs:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
"$ref": "#/definitions/output"
|
|
|
|
definitions:
|
|
|
|
output:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
condition:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- uri
|
|
|
|
properties:
|
|
|
|
uri:
|
|
|
|
type: string
|
|
|
|
pattern: "^ni:///sha-256;([a-zA-Z0-9_-]{0,86})[?]\
|
|
|
|
(fpt=ed25519-sha-256(&)?|cost=[0-9]+(&)?|\
|
|
|
|
subtypes=ed25519-sha-256(&)?){2,3}$"
|