mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Edits to the common/schema/README.md file
This commit is contained in:
parent
96f30da875
commit
7a292ba6ec
@ -4,22 +4,24 @@ This directory contains the schemas for the different JSON documents BigchainDB
|
||||
|
||||
The aim is to provide:
|
||||
|
||||
- a strict definition of the data structures used in BigchainDB
|
||||
- a language independent tool to validate the structure of incoming/outcoming
|
||||
data (there are several ready to use
|
||||
- a strict definition of the data structures used in BigchainDB,
|
||||
- a language-independent tool to validate the structure of incoming/outcoming
|
||||
data. (There are several ready to use
|
||||
[implementations](http://json-schema.org/implementations.html) written in
|
||||
different languages)
|
||||
different languages.)
|
||||
|
||||
## Sources
|
||||
|
||||
The file defining the JSON Schema for votes (`vote.yaml`) is BigchainDB-specific.
|
||||
|
||||
The files defining the JSON Schema for transactions (`transaction_*.yaml`)
|
||||
are copied from the [IPDB Protocol](https://github.com/ipdb/ipdb-protocol).
|
||||
If you want to add a new version, you must add it to the IPDB Protocol first.
|
||||
(You can't change existing versions. Those were used to validate old transactions
|
||||
are based on the [IPDB Transaction Spec](https://github.com/ipdb/ipdb-tx-spec).
|
||||
If you want to add a new transaction version,
|
||||
you must add it to the IPDB Transaction Spec first.
|
||||
(You can't change the JSON Schema files for old versions.
|
||||
Those were used to validate old transactions
|
||||
and are needed to re-check those transactions.)
|
||||
|
||||
The file defining the JSON Schema for votes (`vote.yaml`) is BigchainDB-specific.
|
||||
|
||||
## Learn about JSON Schema
|
||||
|
||||
A good resource is [Understanding JSON Schema](http://spacetelescope.github.io/understanding-json-schema/index.html).
|
||||
|
Loading…
x
Reference in New Issue
Block a user