diff --git a/src/aidbox_sdk/generator.clj b/src/aidbox_sdk/generator.clj index a9db068..8a30636 100644 --- a/src/aidbox_sdk/generator.clj +++ b/src/aidbox_sdk/generator.clj @@ -758,8 +758,8 @@ (println "Generating constraints classes") (doseq [{:keys [name schema file-content]} (->> (apply-constraints - (remove fhir/structure-definition? constraints) - (->> all-schemas + (filter fhir/fhir-schema? constraints) + (->> (filter fhir/fhir-schema? all-schemas) (prepared-schemas) (map #(assoc % :backbone-elements (flat-backbones (:backbone-elements %) []))) (vector-to-map)))