DMTF / Redfish-Tools

DMTF-produced tools to support the Redfish Specification
Other
81 stars 35 forks source link

Cannot remove properties from elements inside an excerpt array property #434

Open kriegeraa opened 1 year ago

kriegeraa commented 1 year ago

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: image 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.