Skip to content

Commit

Permalink
Update make-json-schema-metamap.xsl
Browse files Browse the repository at this point in the history
  • Loading branch information
wandmagic committed Mar 24, 2024
1 parent 7637dd2 commit 692894a
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 692894a

Please sign in to comment.