Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kriegeraa opened this issue Nov 24, 2022 · 0 comments
Open

Comments

@kriegeraa
Copy link

kriegeraa commented Nov 24, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant