Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema.edn is not valid with recent Datomic versions #31

Closed
mtnygard opened this issue Aug 23, 2017 · 0 comments
Closed

schema.edn is not valid with recent Datomic versions #31

mtnygard opened this issue Aug 23, 2017 · 0 comments

Comments

@mtnygard
Copy link
Contributor

Expected Result

Transacting schema.edn should prepare a database for models, agents, and sims.

Actual Result

Datomic rejects schema.edn due to the :http/method attribute. It is marked as value type :db.type/keyword and also marked as :db/isComponent true.

Older versions of Datomic would accept this even though there's no meaning to making a value attribute a component.

Newer versions of Datomic will reject this with this exception:

IllegalArgumentExceptionInfo :db.error/invalid-install-attribute Error: {:db/error :db.error/components-must-be-refs, :entity {:db/id 91, :db/ident :http/method, :db/valueType 21, :db/cardinality 35, :db/isComponent true, :db/doc "The method of the HTTP request."}}  datomic.error/deserialize-exception (error.clj:124)

Solution

:http/method should not be a component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant