cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

chartsCards validation issue in Extension 2.0

guptasahil942
Participant

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
1 REPLY 1

Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi @guptasahil942 

Did you find an answer for $.screens[1].chartsCards[0].mode: is not defined in the schema and the schema does not allow additional properties error ?

For me Load schemas of version 295 solved the issue 

Yos 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts