Redfish-Tools icon indicating copy to clipboard operation
Redfish-Tools copied to clipboard

Cannot remove properties from elements inside an excerpt array property

Open kriegeraa opened this issue 3 years ago • 0 comments

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.

kriegeraa avatar Nov 24 '22 14:11 kriegeraa