Schema value at 1 is null

hi all,

when i deployed the below schema into the dynamic component, error returned as shown below.
I’m not sure where is the Value at 1, and my coding may be wrong somewhere.
thanks! :folded_hands:

image

{
“name”: “ventelpanas”,
“metadata-version”: 1,
“author”: “Mike Chan”,
“platform”: [ “kodular” ],

“keys”: [
“ID”,
“text”,
“location”,
“time”
],

  		"components": 	[ 								
  							{ 									
  								"id":"gap1_{ID}", 									
  								"type":"SpaceView", 									
  								"properties": 													
  												{ 														
  													"HeightPercent": 2 													
  												} 													 								
  							}, 								 								
  							
  							
  							{
  								"id":"bubble1_{ID}",
  								"type":"MakeroidCardView",
  								"properties":
  												{
  													"AlignHorizontal": 3,
  													"AlignVertical": 2,
  													"BackgroundColor": -10066228, 																																		
  													"ContentPaddingLeft": 8, 													
  													"ContentPaddingRight": 8, 																
  													"ContentPaddingTop": 8, 																		
  													"ContentPaddingBottom": 8, 													
  													"CornerRadius": 5, 														
  													"Elevation": 5, 																			
  													"FullClickable": false, 																								
  													"WidthPercent": 35, 																				
  													"HeightPercent": 6
  												},
  								
  										"components":  	[	
  															{ 									
  																"id":"vertical1_{ID}", 									
  																"type":"VerticalArrangement", 									
  																"properties": 													
  																				{ 														
  																					"WidthPercent": 95, 														
  																					"AlignVertical": 2, 														
  																					"AlignHorizontal": 1 													
  																				}, 												 															
  																				
  																				"components": 	[ 																					
  																									{ 																						
  																										"id":"rantText1_{ID}", 																	
  																										"type":"Label", 																						
  																										"properties":  																	
  																														{ 									
  																															"Text":"{text}", 											
  																															"FontSize": 17, 									
  																															"FontTypefaceImport": "Montserrat-Bold.otf" 						
  																														} 																					
  																														
  																									}, 									
  																									
  																									{ 																						
  																									
  																										"id":"gap2_{ID}", 											
  																										"type":"SpaceView", 					
  																										"properties": 										
  																														{ 													
  																															"HeightPercent": 1 						
  																														} 								
  																														
  																									}, 																				
  																									
  																									{ 																						
  																										"id":"horizontal1_{ID}", 						
  																										"type":"HorizontalArrangement", 							
  																										"properties": 									
  																														{ 											
  																															"WidthPercent": 95, 							
  																															"AlignVertical": 2, 						
  																															"AlignHorizontal": 2 					
  																														}, 										
  																														
  																														"components":  	[ 													
  																																			{ 								
  																																				"id":"location1_{ID}", 				
  																																				"type":"Label", 					
  																																				"properties": 					
  																																								{ 					
  																																									"Text":"{location}", 			
  																																									"FontSize": 12, 							
  																																									"FontTypefaceImport":"Montserrat-Regular.otf" 					
  																																								} 													
  																																								
  																																			}, 																				
  																																			
  																																			{ 													
  																																				"id":"gap3_{ID}", 												
  																																				"type":"SpaceView", 													
  																																				"properties": 											
  																																								{ 									
  																																									"WidthPercent": 2 							
  																																								} 										
  																																								
  																																			}, 															
  																																			
  																																			{ 												
  																																				"id":"timestamp1_{ID}", 									
  																																				"type":"Label", 											
  																																				"properties": 													
  																																								{ 											
  																																									"Text":"{time}", 									
  																																									"FontSize": 12, 												
  																																									"FontTypefaceImport":"Montserrat-Regular.otf" 										
  																																								} 																																
  																																			} 																															
  																																			
  																																		] 																					
  																																		
  																									} 																			
  																								
  																								] 								
  																								
  															},
  														]
  							},
  							
  							{ 									
  								"id":"gap4_{ID}", 									
  								"type":"SpaceView", 									
  								"properties": 													
  												{ 														
  													"HeightPercent": 1 													
  												} 													 								
  							}, 								 								
  							
  							{ 						 										
  								"id": "divider_{ID}", 						 										
  								"type": "Label", 						 										
  								"properties": 
  												{ 										 														
  													"Width": -2, 										 														
  													"Height": 1, 										 														
  													"BackgroundColor": -2302756 									   														
  												} 					 								
  							} 					
  							
  						]  

}

1 Like

metadata-version must be a string, not a number.
full fixed core

{
  "name": "ventelpanas",
  "metadata-version": "1",
  "author": "Mike Chan",
  "platform": ["kodular"],
  "keys": [
    "ID",
    "text",
    "location",
    "time"
  ],
  "components": [
    {
      "id": "gap1_{ID}",
      "type": "SpaceView",
      "properties": {
        "HeightPercent": 2
      }
    },
    {
      "id": "bubble1_{ID}",
      "type": "MakeroidCardView",
      "properties": {
        "AlignHorizontal": 3,
        "AlignVertical": 2,
        "BackgroundColor": -10066228,
        "ContentPaddingLeft": 8,
        "ContentPaddingRight": 8,
        "ContentPaddingTop": 8,
        "ContentPaddingBottom": 8,
        "CornerRadius": 5,
        "Elevation": 5,
        "FullClickable": false,
        "WidthPercent": 35,
        "HeightPercent": 6
      },
      "components": [
        {
          "id": "vertical1_{ID}",
          "type": "VerticalArrangement",
          "properties": {
            "WidthPercent": 95,
            "AlignVertical": 2,
            "AlignHorizontal": 1
          },
          "components": [
            {
              "id": "rantText1_{ID}",
              "type": "Label",
              "properties": {
                "Text": "{text}",
                "FontSize": 17,
                "FontTypefaceImport": "Montserrat-Bold.otf"
              }
            },
            {
              "id": "gap2_{ID}",
              "type": "SpaceView",
              "properties": {
                "HeightPercent": 1
              }
            },
            {
              "id": "horizontal1_{ID}",
              "type": "HorizontalArrangement",
              "properties": {
                "WidthPercent": 95,
                "AlignVertical": 2,
                "AlignHorizontal": 2
              },
              "components": [
                {
                  "id": "location1_{ID}",
                  "type": "Label",
                  "properties": {
                    "Text": "{location}",
                    "FontSize": 12,
                    "FontTypefaceImport": "Montserrat-Regular.otf"
                  }
                },
                {
                  "id": "gap3_{ID}",
                  "type": "SpaceView",
                  "properties": {
                    "WidthPercent": 2
                  }
                },
                {
                  "id": "timestamp1_{ID}",
                  "type": "Label",
                  "properties": {
                    "Text": "{time}",
                    "FontSize": 12,
                    "FontTypefaceImport": "Montserrat-Regular.otf"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "gap4_{ID}",
      "type": "SpaceView",
      "properties": {
        "HeightPercent": 1
      }
    },
    {
      "id": "divider_{ID}",
      "type": "Label",
      "properties": {
        "Width": -2,
        "Height": 1,
        "BackgroundColor": -2302756
      }
    }
  ]
}

1 Like

after some changes i have made in the schema, now it shows like this.
weird, i have checked with schema validator, the blocks i tried arranged same as the schema, and Do-It where can get the timestamp.
what is wrong here?
image

{
“name”: “ventelpanas”,
“metadata-version”: “1”,
“author”: “Mike Chan”,
“platform”: [ “kodular” ],

“keys”: [
“id”,
“text”,
“location”,
“time”
],

  		"components": 	[ 								
  							{ 									
  								"id":"spaceGap1_{id}", 									
  								"type":"SpaceView", 									
  								"properties": 													
  												{ 														
  													"HeightPercent":1 													
  												} 													 								
  							}, 								 								
  							
  							{ 									
  								"id":"horizontal1_{id}", 									
  								"type":"HorizontalArrangement", 									
  								"properties": 													
  												{ 														
  													"Width": -2, 														
  													"AlignVertical": 2, 														
  													"AlignHorizontal": 3 													
  												},
  												
  												"components":	[
  																	{                     
  																		"id":"CardView1_{id}",                     
  																		"type":"MakeroidCardView",                     
  																		"properties":
  																						{                         
  																							"FullClickable":false,                         
  																							"AlignHorizontal":3,                         
  																							"AlignVertical":1,                         
  																							"BackgroundColor":-1948846082,                         
  																							"CornerRadius":6,                         
  																							"WidthPercent":95                     
  																						},
  																						
  																						"components":	[
  																											{
  																												"id":"horizontal2_{id}", 									
  																												"type":"HorizontalArrangement", 									
  																												"properties": 													
  																																{ 														
  																																	"Width": -2, 														
  																																	"AlignVertical": 2, 														
  																																	"AlignHorizontal": 1 													
  																																},
  																																
  																																	"components":	[
  																																						{
  																																							"id":"textMsg1_{id}",
  																																							"type":"Label",
  																																							"properties":
  																																											{
  																																											 
  																																												"Text":"{text}",
  																																												"TextColor":-13676721,
  																																												"FontSize":18,
  																																												"FontTypefaceImport":"Quicksand-Medium.ttf" 
  																																											
  																																											}
  																																						}
  																																					]
  																																						
  																											},
  																											
  																											{
  																												"id":"spaceGap2_{id}",
  																												"type":"SpaceView",
  																												"properties":
  																																{
  																																	"HeightPercent":1,
  																																	"Width":-2
  																																}
  																											},
  																											
  																											{
  																												"id":"horizontal3_{id}",
  																												"type":"HorizontalArrangement",
  																												"properties":
  																																{
  																																	"Width":-2,
  																																	"AlignHorizontal":2,
  																																	"AlignVertical":2
  																																},
  																																		
  																																	"components":
  																																					[
  																																						
  																																						{						
  																																							"id":"location1_{id}", 				
  																																							"type":"Label", 					
  																																							"properties": 					
  																																											{ 					
  																																												"Text":"{location}",
  																																												"TextColor":-13676721,
  																																												"FontSize":12, 							
  																																												"FontTypefaceImport":"Quicksand-Medium.ttf" 					
  																																											} 													
  																																
  																																						},
  																																						
  																																						{
  																																							"id":"timestampl_{id}",
  																																							"type":"Label",
  																																							"properties":
  																																											{
  																																												"Text":"{time}",
  																																												"TextColor":-13676721,
  																																												"FontSize":12,
  																																												"FontTypefaceImport":"Quicksand-Medium.ttf"
  																																											}
  																																						}
  																																					]
  																											}
  																										]
  																	}
  																]
  																
  															
  												
  																																			 								
  																
  							}, 								 								
  							
  							{ 									
  								"id":"spaceGap2_{id}", 									
  								"type":"SpaceView", 									
  								"properties": 													
  												{ 														
  													"HeightPercent": 1													
  												} 													 								
  							}, 								 								
  							
  							 					
  							
  						]  

}

Use it " for bulk replace all double quotes use vs code or any other platform

1 Like

sorry, i didn’t get your meaning.

To "

1 Like

would i see your blocks.
if this json not work, show your blocks

{
  "name": "ventelpanas",
  "metadata-version": "1",
  "author": "Mike Chan",
  "platform": ["kodular"],
  "keys": [
    "ID",
    "text",
    "location",
    "time"
  ],
  "components": [
    {
      "id": "gap1_{ID}",
      "type": "SpaceView",
      "properties": {
        "HeightPercent": 2
      }
    },
    {
      "id": "bubble1_{ID}",
      "type": "MakeroidCardView",
      "properties": {
        "AlignHorizontal": 3,
        "AlignVertical": 2,
        "BackgroundColor": -10066228,
        "ContentPaddingLeft": 8,
        "ContentPaddingRight": 8,
        "ContentPaddingTop": 8,
        "ContentPaddingBottom": 8,
        "CornerRadius": 5,
        "Elevation": 5,
        "FullClickable": false,
        "WidthPercent": 35,
        "HeightPercent": 6
      },
      "components": [
        {
          "id": "vertical1_{ID}",
          "type": "VerticalArrangement",
          "properties": {
            "WidthPercent": 95,
            "AlignVertical": 2,
            "AlignHorizontal": 1
          },
          "components": [
            {
              "id": "rantText1_{ID}",
              "type": "Label",
              "properties": {
                "Text": "{text}",
                "FontSize": 17,
                "FontTypefaceImport": "Montserrat-Bold.otf"
              }
            },
            {
              "id": "gap2_{ID}",
              "type": "SpaceView",
              "properties": {
                "HeightPercent": 1
              }
            },
            {
              "id": "horizontal1_{ID}",
              "type": "HorizontalArrangement",
              "properties": {
                "WidthPercent": 95,
                "AlignVertical": 2,
                "AlignHorizontal": 2
              },
              "components": [
                {
                  "id": "location1_{ID}",
                  "type": "Label",
                  "properties": {
                    "Text": "{location}",
                    "FontSize": 12,
                    "FontTypefaceImport": "Montserrat-Regular.otf"
                  }
                },
                {
                  "id": "gap3_{ID}",
                  "type": "SpaceView",
                  "properties": {
                    "WidthPercent": 2
                  }
                },
                {
                  "id": "timestamp1_{ID}",
                  "type": "Label",
                  "properties": {
                    "Text": "{time}",
                    "FontSize": 12,
                    "FontTypefaceImport": "Montserrat-Regular.otf"
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "gap4_{ID}",
      "type": "SpaceView",
      "properties": {
        "HeightPercent": 1
      }
    },
    {
      "id": "divider_{ID}",
      "type": "Label",
      "properties": {
        "Width": -2,
        "Height": 1,
        "BackgroundColor": -2302756,
        "Text": ""
      }
    }
  ]
}

1 Like