mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-12 00:44:57 +03:00
dd88f78969
form-compile now warns when model uses runtime types like FormDataStructure that don't exist in XML schema. Expanded cfg: regex to cover all 25 known prefixes. form-validate adds Check 12 — validates all <v8:Type> values: ERROR for known-invalid types, WARN for unrecognized bare types, pass-through for unknown namespaced types (future-proof). Updated SKILL.md with full type reference and invalid type warning. Updated docs/1c-form-spec.md with missing type groups. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
948 B
JSON
21 lines
948 B
JSON
{
|
|
"name": "Корректная форма проходит валидацию",
|
|
"preRun": [
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": { "type": "Catalog", "name": "Товары" },
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
|
|
},
|
|
{
|
|
"script": "form-add/scripts/form-add",
|
|
"args": { "-ObjectPath": "{workDir}/Catalogs/Товары.xml", "-FormName": "Форма" }
|
|
},
|
|
{
|
|
"script": "form-compile/scripts/form-compile",
|
|
"input": { "title": "Тест", "attributes": [{ "name": "Объект", "type": "CatalogObject.Товары", "main": true }], "elements": [{ "type": "InputField", "dataPath": "Объект.Наименование" }] },
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputPath": "{workDir}/Catalogs/Товары/Forms/Форма/Ext/Form.xml" }
|
|
}
|
|
],
|
|
"params": { "formPath": "Catalogs/Товары/Forms/Форма" }
|
|
}
|