persona-community-5/.pnpm-store/v3/files/08/c678d128fc7511acf6b88d42271712aea2ddb602dd852bb714082f7d1e23786e4481fae7aa8ea40c5148887baa34e2a57334a0a90dba71743bbcc3a4b48307
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

83 lines
2.4 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reuniteConfigSchema = void 0;
const jobInputsSchema = {
type: 'object',
additionalProperties: { type: 'string' },
};
const jobServersSchema = {
type: 'object',
additionalProperties: false,
patternProperties: {
'^[a-zA-Z0-9_-]+$': {
type: 'string',
pattern: '^https?://[^\\s/$.?#].[^\\s]*$',
},
},
};
const severitySchema = {
type: 'string',
enum: ['error', 'warn', 'off'],
};
const jobSeveritySchema = {
type: 'object',
additionalProperties: false,
properties: {
schemaCheck: severitySchema,
statusCodeCheck: severitySchema,
contentTypeCheck: severitySchema,
successCriteriaCheck: severitySchema,
},
};
const jobTriggerSchema = {
type: 'object',
additionalProperties: false,
properties: {
event: {
type: 'string',
enum: ['schedule'],
},
interval: { type: 'string', pattern: '^[1-9]\\d*[mhdw]$' },
},
required: ['event'],
};
exports.reuniteConfigSchema = {
type: 'object',
properties: {
ignoreLint: {
oneOf: [
{ type: 'boolean', default: false },
{
type: 'object',
additionalProperties: { type: 'boolean' },
},
],
},
ignoreLinkChecker: { type: 'boolean' },
ignoreMarkdocErrors: { type: 'boolean' },
jobs: {
type: 'array',
items: {
type: 'object',
properties: {
path: {
type: 'string',
pattern: '^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$',
},
agent: {
type: 'string',
enum: ['respect'],
},
trigger: jobTriggerSchema,
inputs: jobInputsSchema,
servers: jobServersSchema,
severity: jobSeveritySchema,
},
required: ['path', 'trigger', 'agent'],
additionalProperties: false,
},
},
},
additionalProperties: false,
};
//# sourceMappingURL=reunite-config-schema.js.map