Skip to content

Support xs:NMTOKENS built-in type from the XSD tool #8660

@Nuvindu

Description

@Nuvindu

Area

None

Description

Currently, when there is a built-in type xs:NMTOKENS in the xsd file, the generated records does not properly handle it.

Compiling source
	aldocano/xsd_to_type:0.1.0
ERROR [modules/ota_hotel_avail_notif_rq/OTA_HotelCommonTypes.bal:(1254:5,1254:13)] unknown type 'NMTOKENS'
ERROR [modules/ota_hotel_avail_notif_rq/OTA_HotelCommonTypes.bal:(1442:5,1442:13)] unknown type 'NMTOKENS'
ERROR [modules/ota_hotel_avail_notif_rq/OTA_HotelCommonTypes.bal:(2890:5,2890:13)] unknown type 'NMTOKENS'
error: compilation contains errors

Steps to Reproduce

Use an xsd file containing <xs:NMTOKENS> built-in type and execute the bal xsd command to generate records.

Version

1.2.0

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions