"use strict";
/* tslint:disable */
/**
 * File was automatically generated using json-schema-to-typescript.
 * DO NOT MODIFY IT BY HAND.
 * Instead, modify the source file https://formats.openag.io/oada/service/job.schema.json of @oada/formats
 * and run `$ yarn build` to regenerate this file.
 */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.assert = exports.is = exports.$id = void 0;
// Import packed validation function
const job_validate_js_1 = __importDefault(require("./job-validate.js"));
/**
 * $id of the source schema
 * @see {@link https://formats.openag.io/oada/service/job.schema.json}
 */
exports.$id = "https://formats.openag.io/oada/service/job.schema.json";
/**
 * Returns true if val is a @type Job, false otherwise
 */
function is(val) {
    return job_validate_js_1.default(val);
}
exports.is = is;
/**
 * Asserts that val is a @type Job
 */
function assert(val) {
    if (!job_validate_js_1.default(val)) {
        throw {
            errors: job_validate_js_1.default.errors,
            input: val
        };
    }
}
exports.assert = assert;
//# sourceMappingURL=job.js.map