persona-community-5/.pnpm-store/v3/files/0e/a1a4ff9cfac24a59cebb203b31c250f60ac8648abc416d4c544a76d006623c50058e1b475113716450e2fade739e36691da95cce8c5e275e785bc26bbbc4d0
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

80 lines
2.3 KiB
Plaintext

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'],
};
export const 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