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-02-15 11:07:16 +01:00
|
|
|
---
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#"
|
|
|
|
type: object
|
2018-03-16 16:19:12 +01:00
|
|
|
title: Transaction Schema - CREATE specific constraints
|
2018-02-15 11:07:16 +01:00
|
|
|
required:
|
|
|
|
- asset
|
|
|
|
- inputs
|
|
|
|
properties:
|
|
|
|
asset:
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
|
|
data:
|
|
|
|
anyOf:
|
|
|
|
- type: object
|
|
|
|
additionalProperties: true
|
|
|
|
- type: 'null'
|
|
|
|
required:
|
|
|
|
- data
|
|
|
|
inputs:
|
|
|
|
type: array
|
|
|
|
title: "Transaction inputs"
|
|
|
|
maxItems: 1
|
|
|
|
minItems: 1
|
|
|
|
items:
|
|
|
|
type: "object"
|
|
|
|
required:
|
|
|
|
- fulfills
|
|
|
|
properties:
|
|
|
|
fulfills:
|
|
|
|
type: "null"
|