source: trip-planner-front/node_modules/ajv/lib/compile/names.ts

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

initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import {Name} from "./codegen"
2
3const names = {
4 // validation function arguments
5 data: new Name("data"), // data passed to validation function
6 // args passed from referencing schema
7 valCxt: new Name("valCxt"), // validation/data context - should not be used directly, it is destructured to the names below
8 instancePath: new Name("instancePath"),
9 parentData: new Name("parentData"),
10 parentDataProperty: new Name("parentDataProperty"),
11 rootData: new Name("rootData"), // root data - same as the data passed to the first/top validation function
12 dynamicAnchors: new Name("dynamicAnchors"), // used to support recursiveRef and dynamicRef
13 // function scoped variables
14 vErrors: new Name("vErrors"), // null or array of validation errors
15 errors: new Name("errors"), // counter of validation errors
16 this: new Name("this"),
17 // "globals"
18 self: new Name("self"),
19 scope: new Name("scope"),
20 // JTD serialize/parse name for JSON string and position
21 json: new Name("json"),
22 jsonPos: new Name("jsonPos"),
23 jsonLen: new Name("jsonLen"),
24 jsonPart: new Name("jsonPart"),
25}
26
27export default names
Note: See TracBrowser for help on using the repository browser.