{ "name": "Поле в таблицу внешнего источника; реквизит туда не пускают", "setup": "empty-config", "preRun": [ { "script": "meta-compile/scripts/meta-compile", "input": { "type": "ExternalDataSource", "name": "PG", "tables": { "products": { "keyFields": ["id"], "fields": ["id: Number(10,0)", "name: String(150)"] } } }, "args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" } } ], "params": { "objectPath": "ExternalDataSources/PG/Tables/products.xml" }, "input": { "add": { "fields": [ "barcode: String(20) | nullable", { "name": "cost", "type": "Number(15,2)", "nameInDataSource": "cost_net", "readOnly": true } ], "attributes": ["Лишний: String(10)"] } }, "expect": { "stdoutContains": ["Added field: barcode", "Added field: cost", "attributes not allowed for Table"], "fileContains": [ { "file": "ExternalDataSources/PG/Tables/products.xml", "text": ["cost_net", "true", ""] } ] } }