declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
24 lines • 1.2 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionUsePracticesConfigInput = void 0;
const domain_objects_1 = require("domain-objects");
const joi_1 = __importDefault(require("joi"));
const schema = joi_1.default.object().keys({
declarations: joi_1.default.string().required(), // either an ssh path to a git repo - or a file path to a local directory
useCase: joi_1.default.string().required().optional(), // specifies which use case to use
scope: joi_1.default.object()
.keys({
usecase: joi_1.default.string().required().optional(),
practices: joi_1.default.array().items(joi_1.default.string().required()),
})
.optional(),
variables: joi_1.default.object().optional(), // specifies which variables to use
});
class ActionUsePracticesConfigInput extends domain_objects_1.DomainObject {
}
exports.ActionUsePracticesConfigInput = ActionUsePracticesConfigInput;
ActionUsePracticesConfigInput.schema = schema;
//# sourceMappingURL=ActionUsePracticesConfigInput.js.map