Skip to content

Commit

Permalink
Problem: "language" values are not being checked in metadata (#2606)
Browse files Browse the repository at this point in the history
Check "language" values in metadata too, not just in `asset.data`.
  • Loading branch information
ttmc committed Nov 25, 2018
1 parent a62cc4e commit 5de2fef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bigchaindb/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def validate_schema(cls, tx_body):
validate_txn_obj('asset', tx_body['asset'], 'data', validate_key)
validate_txn_obj('metadata', tx_body, 'metadata', validate_key)
validate_language_key(tx_body['asset'], 'data')
validate_language_key(tx_body, 'metadata')


class FastTransaction:
Expand Down

0 comments on commit 5de2fef

Please sign in to comment.