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 committed Nov 17, 2023
1 parent 30d622d commit 53c1608
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 53c1608

Please # to comment.