Skip to content

Commit

Permalink
Add "-schema" suffix to recur refs schema symbols
Browse files Browse the repository at this point in the history
This suffix is needed to avoid name clashes with recurs to
"schema" fields as "schema" name is reserved for StructureDefinition schema.

Co-authored-by: KGOH <[email protected]>
  • Loading branch information
katibov and KGOH committed Oct 25, 2022
1 parent 0085afd commit 0691094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zen/fhir/loader.clj
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
(str/split #"\.")
rest
(->> (map keyword)))
cr-name (str/join "-" (map name el-path))
cr-name (str/join "-" (concat (map name el-path) ["schema"]))
cr-symbol (symbol schema-ns cr-name)]
(assoc x :recur {:symbol cr-symbol
:path el-path}))
Expand Down

0 comments on commit 0691094

Please sign in to comment.