UNPKG

n8n-nodes-html-validation

Version:
96 lines 2.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.versionDescription = void 0; exports.versionDescription = { properties: [ { displayName: 'Operation', name: 'operation', type: 'options', options: [ { name: 'Validate HTML', value: 'Validate HTML', description: 'Perform a HTML validation', action: 'Obtain result of a HTML validation', } ], default: 'Validate HTML', noDataExpression: true, }, { displayName: 'Html', name: 'html', type: 'string', required: true, displayOptions: { show: { operation: [ 'Validate HTML', ], }, }, default: '', placeholder: '<p>Hello world!</p>', description: 'HTML content for validation', }, { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { operation: [ 'Validate HTML', ], }, }, options: [ { displayName: 'Reject Empty String', name: 'rejectEmptyString', type: 'boolean', default: false, }, { displayName: 'Require At Least One Tag', name: 'requireAtLeastOneTag', type: 'boolean', default: false, }, { displayName: 'Custom Rules', name: 'customRules', type: 'string', typeOptions: { rows: 9, }, default: `{ "extends": [ "html-validate:recommended" ], "rules": { "close-order": "error", "void": ["warn", {"style": "omit"}] } }`, } ], }, ], displayName: 'HTML Validation', name: 'html-validation', icon: 'file:HtmlValidation.svg', group: ['transform'], version: 1, description: 'Validate user-provided HTML content', defaults: { name: 'HTML Validation', }, inputs: ["main"], outputs: ["main"], credentials: [], }; //# sourceMappingURL=versionDescription.js.map