Skip to content

Commit

Permalink
fix(typescript): leave resourceType field only for resource kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
krvital committed Oct 24, 2024
1 parent f3098b3 commit eead53c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aidbox_sdk/generator/typescript.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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')))))
Expand Down

0 comments on commit eead53c

Please sign in to comment.