• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

satisfactory-dev / Docs.json.ts / 20385899622

20 Dec 2025 12:10AM UTC coverage: 0.0%. Remained the same
20385899622

push

github

SignpostMarv
adjusting indentation

0 of 53 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 11 new or added lines in 1 file covered. (0.0%)

230 existing lines in 15 files now uncovered.

0 of 9104 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/version-specific/0.4.2.11/SchemaParser.ts
1
import {
×
2
        $ref,
×
3
        type SchemaObjectWith$id,
×
4
        type SchemaParser,
×
5
} from '@signpostmarv/json-schema-typescript-codegen';
×
6

×
7
import {
×
8
        TemplatedString,
×
9
} from '@signpostmarv/json-schema-typescript-codegen/ajv';
×
10

×
11
import common_types from '../../../schema/common/types.json' with {
×
12
        type: 'json',
×
13
};
×
14

×
15
// eslint-disable-next-line @stylistic/max-len
×
16
import update3_overridable from '../../../schema/0.3.7.7/overridable.json' with {
×
17
        type: 'json',
×
18
};
×
19

×
20
import update3_properties from '../../../schema/0.3.7.7/properties.json' with {
×
21
        type: 'json',
×
22
};
×
23

×
24
import update3_classes from '../../../schema/0.3.7.7/classes.json' with {
×
25
        type: 'json',
×
26
};
×
27

×
28
// eslint-disable-next-line @stylistic/max-len
×
29
import update3_classes__base from '../../../schema/0.3.7.7/base-classes.json' with {
×
30
        type: 'json',
×
31
};
×
32

×
33
// eslint-disable-next-line @stylistic/max-len
×
34
import update3_classes__base__overridable from '../../../schema/0.3.7.7/base-classes.overridable.json' with {
×
35
        type: 'json',
×
36
};
×
37

×
38
import update3 from '../../../schema/0.3.7.7/docs.json' with {
×
39
        type: 'json',
×
40
};
×
41

×
42
import {
×
43
        NativeClass,
×
44
} from './NativeClass.ts';
×
45

×
46
import {
×
47
        Desc_C,
×
48
} from './Desc_C.ts';
×
49

×
50
import {
×
51
        ResourceSink_Unlock_C,
×
52
} from './ResourceSink_Unlock_C.ts';
×
53

×
54
import {
×
55
        Schematic_C,
×
56
} from './Schematic_C.ts';
×
57

×
58
import {
×
59
        StringDotString,
×
60
} from './StringDotString.ts';
×
61

×
62
import {
×
63
        PropertySchemaToRegex__matchers,
×
64
        TypedString,
×
65
} from './TypedString.ts';
×
66
import {
×
67
        BP_C,
×
68
} from './BP_C.ts';
×
69
import {
×
70
        NamedList,
×
71
} from './NamedList.ts';
×
72

×
73
import {
×
74
        Object as Object_matcher,
×
75
} from './TypedString/PropertySchemaToRegex/Object.ts';
×
76

×
77
import type {
×
78
        PropertySchemaToRegex,
×
79
} from './TypedString/Object.ts';
×
80

×
81
import {
×
82
        PrefixedString,
×
83
} from './PrefixedString.ts';
×
84

×
85
const already_configured: WeakSet<SchemaParser> = new WeakSet();
×
86

×
87
export function add_schemas(parser: SchemaParser) {
×
88
        parser.add_schema(common_types);
×
89
        parser.add_schema(update3_overridable);
×
90
        parser.add_schema(update3_properties);
×
91
        parser.add_schema(update3_classes__base__overridable);
×
92
        parser.add_schema(update3_classes__base as SchemaObjectWith$id);
×
93
        parser.add_schema(update3_classes);
×
94
        parser.add_schema(update3);
×
95
}
×
96

×
97
export function configure_parser(parser: SchemaParser) {
×
98
        if (already_configured.has(parser)) {
×
99
                return;
×
100
        }
×
101

×
102
        already_configured.add(parser);
×
103

×
104
        add_schemas(parser);
×
105

×
106
        const ajv = parser.share_ajv((ajv) => ajv);
×
107

×
108
        const matchers: PropertySchemaToRegex<unknown>[] = [];
×
109

×
110
        const $ref_instance = parser.types.find((maybe) => maybe instanceof $ref);
×
111

×
112
        if (undefined === $ref_instance) {
×
113
                throw new TypeError('Could not find $ref instance!');
×
114
        }
×
115

×
116
        const Object_matcher_instance = Object_matcher(
×
117
                ajv,
×
118
                matchers,
×
119
        );
×
120

×
121
        matchers.push(...[
×
122
                ...PropertySchemaToRegex__matchers(
×
123
                        ajv,
×
124
                        matchers,
×
125
                        Object_matcher_instance,
×
126
                        $ref_instance,
×
127
                ),
×
128
                Object_matcher_instance as PropertySchemaToRegex<unknown>,
×
129
        ]);
×
130

×
131
        if (undefined === $ref_instance) {
×
132
                throw new TypeError('Could not find $ref instance!');
×
133
        }
×
134

×
135
        parser.types = [
×
136
                new NativeClass({ajv}),
×
137
                new BP_C({ajv}),
×
138
                new Desc_C({ajv}),
×
139
                new ResourceSink_Unlock_C({ajv}),
×
140
                new Schematic_C({ajv}),
×
141
                new StringDotString({ajv}),
×
142
                new NamedList({ajv}, 'NSLOCTEXT'),
×
143
                ...parser.types,
×
144
                new TemplatedString({ajv}),
×
145
                new TypedString({ajv}, {
×
146
                        $ref_instance,
×
147
                        Object: {
×
148
                                matchers,
×
149
                        },
×
150
                }),
×
151
                new PrefixedString({ajv}, 'quoted', 'quoted'),
×
152
                new PrefixedString({ajv}, 'single_quoted', 'quoted'),
×
153
                new PrefixedString({ajv}, 'non_quoted', 'quoted'),
×
154
                new PrefixedString({ajv}, 'version_specific_default', 'quoted'),
×
155
        ];
×
UNCOV
156
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc