Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
import type {Plugin} from "ajv"
|
|
import typeofPlugin from "./typeof"
|
|
import instanceofPlugin from "./instanceof"
|
|
import range from "./range"
|
|
import exclusiveRange from "./exclusiveRange"
|
|
import regexp from "./regexp"
|
|
import transform from "./transform"
|
|
import uniqueItemProperties from "./uniqueItemProperties"
|
|
import allRequired from "./allRequired"
|
|
import anyRequired from "./anyRequired"
|
|
import oneRequired from "./oneRequired"
|
|
import patternRequired from "./patternRequired"
|
|
import prohibited from "./prohibited"
|
|
import deepProperties from "./deepProperties"
|
|
import deepRequired from "./deepRequired"
|
|
import dynamicDefaults from "./dynamicDefaults"
|
|
import select from "./select"
|
|
|
|
// TODO type
|
|
const ajvKeywords: Record<string, Plugin<any> | undefined> = {
|
|
typeof: typeofPlugin,
|
|
instanceof: instanceofPlugin,
|
|
range,
|
|
exclusiveRange,
|
|
regexp,
|
|
transform,
|
|
uniqueItemProperties,
|
|
allRequired,
|
|
anyRequired,
|
|
oneRequired,
|
|
patternRequired,
|
|
prohibited,
|
|
deepProperties,
|
|
deepRequired,
|
|
dynamicDefaults,
|
|
select,
|
|
}
|
|
|
|
export default ajvKeywords
|
|
module.exports = ajvKeywords
|