How to add a new section liquid into the schema?

I write a new section liquid with following code:

{% schema %}
{
“name”: “Product Tabs”,
“class”: “product-tabs”,
“tag”: “section”,
“settings”:

}

{% endschema %}

And I tried to add it into the product.json with following code but it turned back with error: “Invalid value for type in block ‘product_tabs’. Type must be defined in schema.” How should I fix it? I want to add it into the section UI. Thank you!

{
“sections”: {
“main”: {
// … existing main section content …
“blocks”: {
// … existing blocks …
“product_tabs”: {
“type”: “product-tabs”,
“settings”: {},
},
// … rest of the blocks …
},
“block_order”: [
// … block order …
“product_tabs”
],
// … rest of the main section settings …
},
// … other sections …
},
“order”: [
// … section order …
]
}

Hi Qzhang,

Can you confirm that the section you’ve created has the title product-tabs.liquid and is in the /sections directory?

Yes I created this liquid in the sections directory.

I think I see the issue - in your code snippet it looks like it’s been added as a block to the JSON template, but it should be in the sections array as it’s a section, not a block.

Thank you! It fixed the above issue.