source: trip-planner-front/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 394 bytes
Line 
1import type {CodeKeywordDefinition} from "../../types"
2import type {KeywordCxt} from "../../compile/validate"
3import {validateProperties, error} from "./properties"
4
5const def: CodeKeywordDefinition = {
6 keyword: "optionalProperties",
7 schemaType: "object",
8 error,
9 code(cxt: KeywordCxt) {
10 if (cxt.parentSchema.properties) return
11 validateProperties(cxt)
12 },
13}
14
15export default def
Note: See TracBrowser for help on using the repository browser.