Redfish-Tools
Redfish-Tools copied to clipboard
Cannot remove properties from elements inside an excerpt array property
I want to only show DataSourceUri and Reading sub-properties for some PowerSupplyMetric properties (e.g. OutputPowerWatts and RailCurrentAmps)
Take the following subset.json
{
"IncludeSchemas": {
"PowerSupplyMetrics" :{
"Properties": {
"OutputPowerWatts": {
"Properties": {
"DataSourceUri": {},
"Reading": {}
}
},
"RailCurrentAmps": {
"Properties": {
"DataSourceUri": {},
"Reading": {}
}
}
}
}
}
}
This is the generated HTML:
As you can see, OutputPowerWatts correctly only shows the two properties defined in the subset.json, RailCurrentAmps however still shows CrestFactor and THDPercent. I first thought that it is because it is an array property, but other array properties can be changed in the same way. It seems this only does not work for (sensor?) excerpt array properties.