Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: app-schema plugin
-
Labels:None
Description
As part of the work to skip attributes that are not mandatory and empty, attributes that have no sourceExpression and xlink:href in the ClientProperty are skipped.
As a result, types like swe:TextBlock are always skipped, because it only has ClientProperty attributes.
The fix should also exclude attributes that has ClientProperty values other than xlink:href.
<xs:element name="TextBlock">
<xs:complexType>
<xs:complexContent>
<xs:extension base="swe:AbstractEncodingType">
<xs:attribute name="tokenSeparator" type="swe:textSeparator" use="required"/>
<xs:attribute name="blockSeparator" type="swe:textSeparator" use="required"/>
<xs:attribute name="decimalSeparator" type="swe:decimalSeparator" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="TextBlock">
<xs:complexType>
<xs:complexContent>
<xs:extension base="swe:AbstractEncodingType">
<xs:attribute name="tokenSeparator" type="swe:textSeparator" use="required"/>
<xs:attribute name="blockSeparator" type="swe:textSeparator" use="required"/>
<xs:attribute name="decimalSeparator" type="swe:decimalSeparator" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
One way to do this is to add a tag like <skipIfEmpty> tag for the AttributeMapping, with the current behaviour by default (skip if no value).
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Resolution | Won't Fix [ 2 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Assignee | Victor Tey [ victortey ] | Rini Angreani [ rini ] |
| Description |
As part of the work to skip attributes that are not mandatory and empty, attributes that have no sourceExpression and xlink:href in the ClientProperty are skipped.
As a result, types like swe:TextBlock are always skipped, because it only has ClientProperty attributes. The fix should also exclude attributes that has ClientProperty values other than xlink:href. <xs:element name="TextBlock"> <xs:complexType> <xs:complexContent> <xs:extension base="swe:AbstractEncodingType"> <xs:attribute name="tokenSeparator" type="swe:textSeparator" use="required"/> <xs:attribute name="blockSeparator" type="swe:textSeparator" use="required"/> <xs:attribute name="decimalSeparator" type="swe:decimalSeparator" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> |
As part of the work to skip attributes that are not mandatory and empty, attributes that have no sourceExpression and xlink:href in the ClientProperty are skipped.
As a result, types like swe:TextBlock are always skipped, because it only has ClientProperty attributes. The fix should also exclude attributes that has ClientProperty values other than xlink:href. <xs:element name="TextBlock"> <xs:complexType> <xs:complexContent> <xs:extension base="swe:AbstractEncodingType"> <xs:attribute name="tokenSeparator" type="swe:textSeparator" use="required"/> <xs:attribute name="blockSeparator" type="swe:textSeparator" use="required"/> <xs:attribute name="decimalSeparator" type="swe:decimalSeparator" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <xs:element name="TextBlock"> <xs:complexType> <xs:complexContent> <xs:extension base="swe:AbstractEncodingType"> <xs:attribute name="tokenSeparator" type="swe:textSeparator" use="required"/> <xs:attribute name="blockSeparator" type="swe:textSeparator" use="required"/> <xs:attribute name="decimalSeparator" type="swe:decimalSeparator" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> One way to do this is to add a tag like <skipIfEmpty> tag for the AttributeMapping, with the current behaviour by default (skip if no value). |
| Assignee | Rini Angreani [ rini ] | Victor Tey [ victortey ] |
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |