mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 21:59:29 +08:00
14 lines
380 B
Text
14 lines
380 B
Text
import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types"
|
|
import {validateUnion} from "../code"
|
|
|
|
export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]>
|
|
|
|
const def: CodeKeywordDefinition = {
|
|
keyword: "anyOf",
|
|
schemaType: "array",
|
|
trackErrors: true,
|
|
code: validateUnion,
|
|
error: {message: "must match a schema in anyOf"},
|
|
}
|
|
|
|
export default def
|