• 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.8.3.3/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 update8_properties from '../../../schema/0.8.3.3/properties.json' with {
×
12
        type: 'json',
×
13
};
×
14

×
15
import update8_classes from '../../../schema/0.8.3.3/classes.json' with {
×
16
        type: 'json',
×
17
};
×
18

×
19
// eslint-disable-next-line @stylistic/max-len
×
20
import update8_classes__base from '../../../schema/0.8.3.3/base-classes.json' with {
×
21
        type: 'json',
×
22
};
×
23

×
24
import update8 from '../../../schema/0.8.3.3/docs.json' with {
×
25
        type: 'json',
×
26
};
×
27

×
28
import {
×
29
        NativeClass,
×
30
} from './NativeClass.ts';
×
31

×
32
import {
×
33
        Desc_C,
×
34
} from '../0.3.7.7/Desc_C.ts';
×
35

×
36
import {
×
37
        ResourceSink_Unlock_C,
×
38
} from '../0.3.7.7/ResourceSink_Unlock_C.ts';
×
39

×
40
import {
×
41
        Schematic_C,
×
42
} from '../0.3.7.7/Schematic_C.ts';
×
43

×
44
import {
×
45
        StringDotString,
×
46
} from '../0.3.7.7/StringDotString.ts';
×
47

×
48
import {
×
49
        PropertySchemaToRegex__matchers,
×
50
        TypedString,
×
51
} from './TypedString.ts';
×
52

×
53
import {
×
54
        BP_C,
×
55
} from '../0.3.7.7/BP_C.ts';
×
56

×
57
import {
×
58
        NamedList,
×
59
} from '../0.3.7.7/NamedList.ts';
×
60

×
61
import {
×
62
        add_schemas as add_schemas_update7,
×
63
} from '../0.7.1.1/SchemaParser.ts';
×
64

×
65
import {
×
66
        Object as Object_matcher,
×
67
} from '../0.3.7.7/TypedString/PropertySchemaToRegex/Object.ts';
×
68

×
69
import type {
×
70
        PropertySchemaToRegex,
×
71
} from '../0.3.7.7/TypedString/Object.ts';
×
72

×
73
import {
×
74
        PrefixedString,
×
75
} from './PrefixedString.ts';
×
76

×
77
const already_configured: WeakSet<SchemaParser> = new WeakSet();
×
78

×
79
export function add_schemas(parser: SchemaParser) {
×
80
        add_schemas_update7(parser);
×
81

×
82
        parser.add_schema(update8_properties as SchemaObjectWith$id);
×
83
        parser.add_schema(update8_classes__base as SchemaObjectWith$id);
×
84
        parser.add_schema(update8_classes as SchemaObjectWith$id);
×
85
        parser.add_schema(update8 as SchemaObjectWith$id);
×
86
}
×
87

×
88
export function configure_parser(parser: SchemaParser) {
×
89
        if (already_configured.has(parser)) {
×
90
                return;
×
91
        }
×
92

×
93
        already_configured.add(parser);
×
94

×
95
        add_schemas(parser);
×
96

×
97
        const ajv = parser.share_ajv((ajv) => ajv);
×
98

×
99
        const matchers: PropertySchemaToRegex<unknown>[] = [];
×
100

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

×
103
        if (undefined === $ref_instance) {
×
104
                throw new TypeError('Could not find $ref instance!');
×
105
        }
×
106

×
107
        const Object_matcher_instance = Object_matcher(
×
108
                ajv,
×
109
                matchers,
×
110
        );
×
111

×
112
        matchers.push(...[
×
113
                ...PropertySchemaToRegex__matchers(
×
114
                        ajv,
×
115
                        matchers,
×
116
                        Object_matcher_instance,
×
117
                        $ref_instance,
×
118
                ),
×
119
                Object_matcher_instance as PropertySchemaToRegex<unknown>,
×
120
        ]);
×
121

×
122
        parser.types = [
×
123
                new NativeClass({ajv}),
×
124
                new BP_C({ajv}),
×
125
                new Desc_C({ajv}),
×
126
                new ResourceSink_Unlock_C({ajv}),
×
127
                new Schematic_C({ajv}),
×
128
                new StringDotString({ajv}),
×
129
                new NamedList({ajv}, 'NSLOCTEXT'),
×
130
                ...parser.types,
×
131
                new TemplatedString({ajv}),
×
132
                new TypedString({ajv}, {
×
133
                        $ref_instance,
×
134
                        Object: {
×
135
                                matchers,
×
136
                        },
×
137
                }),
×
138
                ...([
×
139
                        'quoted',
×
140
                        'single_quoted',
×
141
                        'non_quoted',
×
142
                        'version_specific_default',
×
143
                ] as const).flatMap((mode) => [
×
144
                        new PrefixedString({ajv}, mode, 'Engine', 'quoted'),
×
145
                        new PrefixedString({ajv}, mode, 'TemplateSequence', 'quoted'),
×
146
                        new PrefixedString({ajv}, mode, 'FactoryGame', 'quoted'),
×
147
                        new PrefixedString({ajv}, mode, 'AkAudio', 'quoted'),
×
148
                        new PrefixedString({ajv}, mode, 'CoreUObject', 'quoted'),
×
149
                ]),
×
UNCOV
150
        ];
×
UNCOV
151
}
×
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