Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Asserting a schema attribute must require presence of minimal set of attributes #797

Open
grigoryk opened this issue Jul 21, 2018 · 1 comment
Labels
A-transact Issues or requests in the transactor. A-vocab Vocabulary management.

Comments

@grigoryk
Copy link
Contributor

These assertions are legit:

[[:db/add "testProp" :db/ident :testProp]]

and:

[:db/add "testProp" :db/ident :testProp]
[:db/add "testProp :db/valueType :db.type/string]
[:db/add "testProp :add/cardinality :db.cardinality/one]]

However, assertion sets which are missing one of the required attributes, such as:

[:db/add "testProp" :db/ident :testProp]
[:db/add "testProp :db/valueType :db.type/string]]

should be illegal.

Similarly,

[[:db/add "testProp :db/valueType :db.type/string]
[:db/add "testProp :add/cardinality :db.cardinality/one]]

should also be illegal.

@grigoryk
Copy link
Contributor Author

This is relevant to #796 in spirit, although should require much less changes to implement.

@grigoryk grigoryk added A-transact Issues or requests in the transactor. A-vocab Vocabulary management. labels Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-transact Issues or requests in the transactor. A-vocab Vocabulary management.
Projects
None yet
Development

No branches or pull requests

1 participant