main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
380 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types"
|
---|
| 2 | import {validateUnion} from "../code"
|
---|
| 3 |
|
---|
| 4 | export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]>
|
---|
| 5 |
|
---|
| 6 | const def: CodeKeywordDefinition = {
|
---|
| 7 | keyword: "anyOf",
|
---|
| 8 | schemaType: "array",
|
---|
| 9 | trackErrors: true,
|
---|
| 10 | code: validateUnion,
|
---|
| 11 | error: {message: "must match a schema in anyOf"},
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | export default def
|
---|
Note:
See
TracBrowser
for help on using the repository browser.