Skip to content

Commit

Permalink
Update make-json-schema-metamap.xsl (#114)
Browse files Browse the repository at this point in the history
For the record, I would really prefer not to be merging this myself, since I have not personally tested for impacts or regressions, accepting assurances instead. This time we making an exception to that policy due to exigencies including parallel work in other branches --
  • Loading branch information
wandmagic committed Apr 2, 2024
1 parent f3722c7 commit 16c8b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema-gen/JSON-schema/make-json-schema-metamap.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,10 @@
<!--Not supporting float or double-->

<xsl:template priority="2.1" match="*[@as-type = $datatype-map/@as-type]" mode="object-type">
<xsl:variable name="assigned-type" select="$datatype-map[(@as-type|@prefer)=current()/@as-type]/string(.)"/>
<xsl:variable name="assigned-type" select="$datatype-map[@as-type=current()/@as-type]/string(.)"/>
<string key="$ref">#/definitions/{$assigned-type}</string>
</xsl:template>

<xsl:mode name="acquire-types" on-no-match="shallow-copy"/>

<xsl:template mode="acquire-types" xpath-default-namespace="http://www.w3.org/2005/xpath-functions" match="string[@key='description']"/>
Expand Down

0 comments on commit 16c8b0c

Please sign in to comment.