Skip to content

Commit

Permalink
Add a few more ref type recognition in xml parsing (#30549)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored and pull[bot] committed Feb 5, 2024
1 parent ed2e86b commit 1068176
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ def NormalizeDataType(t: str) -> str:

# Handle oddities in current data model XML schema for nicer diffs
_REF_NAME_MAPPING = {
"<<ref_DataTypeString>>": "char_string",
"<<ref_DataTypeEndpointNumber>>": "endpoint_no",
"<<ref_DataTypeEpochUs>>": "epoch_us",
"<<ref_DataTypeNodeId>>": "node_id",
"<<ref_DataTypeOctstr>>": "octet_string",
"<<ref_DataTypeString>>": "char_string",
"<<ref_DataTypeVendorId>>": "vendor_id",
"<<ref_DataTypeEndpointNumber>>": "endpoint_no",
"<<ref_FabricIdx>>": "fabric_idx",
}


Expand Down

0 comments on commit 1068176

Please sign in to comment.