Hello Team,
I am facing validation issue everytime I try to Build the extension using chartCards.
I have tried to follow the schema mentioned in documentation.
Please find below the extension code:
- entityType: cloudamqp:vhost
listSettings:
staticContent:
showGlobalFilter: false
header:
title: CloudAMQP Virtual Hosts
description: List of CloudAMQP Virtual Hosts
icon: webserver
breadcrumbs:
- type: NOOP
displayName: CloudAMQP
- type: ENTITY_LIST_REF
displayName: Clusters
entityType: cloudamqp:cluster
- type: NOOP
displayName: Virtual Host
layout:
autoGenerate: false
cards:
- key: cloudamqp_vhosts_list_self
type: ENTITIES_LIST
- key: vhost_charts_overview
type: CHART_GROUP
chartsCards:
- key: vhost_charts_overview
mode: NORMAL
numberOfVisibleCharts: 2
displayName: Virtual Host Overview
description: Overview of the CloudAMQP Virtual Host
charts:
- displayName: Queues
visualizationType: GRAPH_CHART
graphChartConfig:
metrics:
- metricSelector: cloudamqp.vhost.queues
visualization:
seriesType: AREA
themeColor: BLUE
- displayName: Exchanges
visualizationType: GRAPH_CHART
graphChartConfig:
metrics:
- metricSelector: cloudamqp.vhost.exchanges
visualization:
displayName: Exchanges
seriesType: AREA
themeColor: ROYALBLUE
Validation Error:
{
"code": 400,
"message": "Extension validation error",
"constraintViolations": [
{
"path": "$.screens[1].chartsCards[0]",
"message": "$.screens[1].chartsCards[0].mode: is not defined in the schema and the schema does not allow additional properties",
"parameterLocation": "PAYLOAD_BODY",
"location": null
},
{
"path": "$.screens[1].chartsCards[0]",
"message": "$.screens[1].chartsCards[0].description: is not defined in the schema and the schema does not allow additional properties",
"parameterLocation": "PAYLOAD_BODY",
"location": null
}
]
}
On referring the documentation, I found that mode is a required field and has been given the appropriate value.
Thanks & Regards,
Sahil