• 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.7.1.1/SchemaParser.ts
1
import type {
×
2
        SchemaObjectWith$id,
×
3
        SchemaParser,
×
4
} from '@signpostmarv/json-schema-typescript-codegen';
×
5
import {
×
6
        $ref,
×
7
} from '@signpostmarv/json-schema-typescript-codegen';
×
8

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

×
13
import update7_classes from '../../../schema/0.7.1.1/classes.json' with {
×
14
        type: 'json',
×
15
};
×
16

×
17
// eslint-disable-next-line @stylistic/max-len
×
18
import update7_classes__base from '../../../schema/0.7.1.1/base-classes.json' with {
×
19
        type: 'json',
×
20
};
×
21

×
22
// eslint-disable-next-line @stylistic/max-len
×
23
import update7_classes__base__overridable from '../../../schema/0.7.1.1/base-classes.overridable.json' with {
×
24
        type: 'json',
×
25
};
×
26

×
27
import update7 from '../../../schema/0.7.1.1/docs.json' with {
×
28
        type: 'json',
×
29
};
×
30

×
31
import {
×
32
        NativeClass,
×
33
} from '../0.3.7.7/NativeClass.ts';
×
34

×
35
import {
×
36
        Desc_C,
×
37
} from '../0.3.7.7/Desc_C.ts';
×
38

×
39
import {
×
40
        ResourceSink_Unlock_C,
×
41
} from '../0.3.7.7/ResourceSink_Unlock_C.ts';
×
42

×
43
import {
×
44
        Schematic_C,
×
45
} from '../0.3.7.7/Schematic_C.ts';
×
46

×
47
import {
×
48
        StringDotString,
×
49
} from '../0.3.7.7/StringDotString.ts';
×
50

×
51
import {
×
52
        PropertySchemaToRegex__matchers,
×
53
        TypedString,
×
54
} from '../0.6.1.5/TypedString.ts';
×
55

×
56
import {
×
57
        BP_C,
×
58
} from '../0.3.7.7/BP_C.ts';
×
59

×
60
import {
×
61
        NamedList,
×
62
} from '../0.3.7.7/NamedList.ts';
×
63

×
64
import {
×
65
        add_schemas as add_schemas_update6,
×
66
} from '../0.6.1.5/SchemaParser.ts';
×
67

×
68
import {
×
69
        Object as Object_matcher,
×
70
} from '../0.3.7.7/TypedString/PropertySchemaToRegex/Object.ts';
×
71

×
72
import type {
×
73
        PropertySchemaToRegex,
×
74
} from '../0.3.7.7/TypedString/Object.ts';
×
75

×
76
import {
×
77
        PrefixedString,
×
78
} from '../0.6.1.5/PrefixedString.ts';
×
79

×
80
const already_configured: WeakSet<SchemaParser> = new WeakSet();
×
81

×
82
export function add_schemas(parser: SchemaParser) {
×
83
        add_schemas_update6(parser);
×
84

×
85
        parser.add_schema(update7_classes__base__overridable);
×
86
        parser.add_schema(update7_classes__base as SchemaObjectWith$id);
×
87
        parser.add_schema(update7_classes as SchemaObjectWith$id);
×
88
        parser.add_schema(update7 as SchemaObjectWith$id);
×
89
}
×
90

×
91
export function configure_parser(parser: SchemaParser) {
×
92
        if (already_configured.has(parser)) {
×
93
                return;
×
94
        }
×
95

×
96
        already_configured.add(parser);
×
97

×
98
        add_schemas(parser);
×
99

×
100
        const ajv = parser.share_ajv((ajv) => ajv);
×
101

×
102
        const matchers: PropertySchemaToRegex<unknown>[] = [];
×
103

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

×
106
        if (undefined === $ref_instance) {
×
107
                throw new TypeError('Could not find $ref instance!');
×
108
        }
×
109

×
110
        const Object_matcher_instance = Object_matcher(ajv, matchers);
×
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
                new PrefixedString({ajv}, 'quoted', 'quoted'),
×
139
                new PrefixedString({ajv}, 'single_quoted', 'quoted'),
×
140
                new PrefixedString({ajv}, 'non_quoted', 'quoted'),
×
141
                new PrefixedString({ajv}, 'version_specific_default', 'quoted'),
×
142
        ];
×
UNCOV
143
}
×
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