diff --git a/src/aidbox_sdk/generator/typescript.clj b/src/aidbox_sdk/generator/typescript.clj index c7ca52b..d3b3013 100644 --- a/src/aidbox_sdk/generator/typescript.clj +++ b/src/aidbox_sdk/generator/typescript.clj @@ -130,6 +130,7 @@ (remove nil?) ((fn [props] (if (or (fhir/base-type? ir-schema) + (not (fhir/resource? ir-schema)) (contains? (set (map :name (:elements ir-schema))) "resourceType")) props (conj props (format "resourceType: '%s'" class-name')))))