Skip to content

Commit

Permalink
fix: validation for core package
Browse files Browse the repository at this point in the history
  • Loading branch information
krvital committed Jul 30, 2024
1 parent 0c18866 commit b89aa01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aidbox_sdk/schema/verify.clj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
"Finds core package in the list of packages.
Throws an exception if there are more then one core package."
[packages]
(let [cores (filter #(= "fhir.core" (:type %)) packages)
(let [cores (filter #(or
(= "Core" (:type %))
(= "fhir.core" (:type %)))
packages)
core (first cores)]
(cond
(= (count cores) 0)
Expand Down

0 comments on commit b89aa01

Please sign in to comment.