diff --git a/schemas/config/field-meta.schema.json b/schemas/config/field-meta.schema.json index 66ce49a..c05105a 100644 --- a/schemas/config/field-meta.schema.json +++ b/schemas/config/field-meta.schema.json @@ -16,6 +16,7 @@ "enum": [ "text", "textarea", + "number", "checkbox", "switch", "select", @@ -59,7 +60,7 @@ "pattern": "^(main|sidebar|sidebar:.+)$" }, "section": { - "type": "string" + "$ref": "defs.schema.json#/definitions/i18nText" }, "containerProps": { "type": "object", diff --git a/schemas/config/field.schema.json b/schemas/config/field.schema.json index 3f27b25..e795e1e 100644 --- a/schemas/config/field.schema.json +++ b/schemas/config/field.schema.json @@ -13,7 +13,7 @@ "properties": { "name": { "type": "string", - "pattern": "^[0-9A-Za-z_]+$" + "pattern": "^[0-9A-Za-z_-]+$" }, "type": { "type": "string",