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

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

×
20
import update5_classes from '../../../schema/0.5.2.1/classes.json' with {
×
21
        type: 'json',
×
22
};
×
23

×
24
// eslint-disable-next-line @stylistic/max-len
×
25
import update5_classes__overridable from '../../../schema/0.5.2.1/classes.overridable.json' with {
×
26
        type: 'json',
×
27
};
×
28

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

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

×
39
import update5 from '../../../schema/0.5.2.1/docs.json' with {
×
40
        type: 'json',
×
41
};
×
42

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

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

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

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

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

×
63
import {
×
64
        PropertySchemaToRegex__matchers,
×
65
        TypedString,
×
66
} from './TypedString.ts';
×
67

×
68
import {
×
69
        BP_C,
×
70
} from '../0.3.7.7/BP_C.ts';
×
71

×
72
import {
×
73
        NamedList,
×
74
} from '../0.3.7.7/NamedList.ts';
×
75

×
76
import {
×
77
        add_schemas as add_schemas_update4,
×
78
} from '../0.4.2.11/SchemaParser.ts';
×
79

×
80
import {
×
81
        Object as Object_matcher,
×
82
} from '../0.3.7.7/TypedString/PropertySchemaToRegex/Object.ts';
×
83

×
84
import type {
×
85
        PropertySchemaToRegex,
×
86
} from '../0.3.7.7/TypedString/Object.ts';
×
87

×
88
import {
×
89
        PrefixedString,
×
90
} from '../0.3.7.7/PrefixedString.ts';
×
91

×
92
const already_configured: WeakSet<SchemaParser> = new WeakSet();
×
93

×
94
export function add_schemas(parser: SchemaParser) {
×
95
        add_schemas_update4(parser);
×
96

×
97
        parser.add_schema(update5_overridable);
×
98
        parser.add_schema(update5_classes__overridable);
×
99
        parser.add_schema(update5_classes__base__overridable);
×
100
        parser.add_schema(update5_properties as SchemaObjectWith$id);
×
101
        parser.add_schema(update5_classes__base as SchemaObjectWith$id);
×
102
        parser.add_schema(update5_classes as SchemaObjectWith$id);
×
103
        parser.add_schema(update5 as SchemaObjectWith$id);
×
104
}
×
105

×
106
export function configure_parser(parser: SchemaParser) {
×
107
        if (already_configured.has(parser)) {
×
108
                return;
×
109
        }
×
110

×
111
        already_configured.add(parser);
×
112

×
113
        add_schemas(parser);
×
114

×
115
        const ajv = parser.share_ajv((ajv) => ajv);
×
116

×
117
        const matchers: PropertySchemaToRegex<unknown>[] = [];
×
118

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

×
121
        if (undefined === $ref_instance) {
×
122
                throw new TypeError('Could not find $ref instance!');
×
123
        }
×
124

×
125
        const Object_matcher_instance = Object_matcher(
×
126
                ajv,
×
127
                matchers,
×
128
        );
×
129

×
130
        matchers.push(...[
×
131
                ...PropertySchemaToRegex__matchers(
×
132
                        ajv,
×
133
                        matchers,
×
134
                        Object_matcher_instance,
×
135
                        $ref_instance,
×
136
                ),
×
137
                Object_matcher_instance as PropertySchemaToRegex<unknown>,
×
138
        ]);
×
139

×
140
        parser.types = [
×
141
                new NativeClass({ajv}),
×
142
                new BP_C({ajv}),
×
143
                new Desc_C({ajv}),
×
144
                new ResourceSink_Unlock_C({ajv}),
×
145
                new Schematic_C({ajv}),
×
146
                new StringDotString({ajv}),
×
147
                new NamedList({ajv}, 'NSLOCTEXT'),
×
148
                ...parser.types,
×
149
                new TemplatedString({ajv}),
×
150
                new TypedString({ajv}, {
×
151
                        $ref_instance,
×
152
                        Object: {
×
153
                                matchers,
×
154
                        },
×
155
                }),
×
156
                new PrefixedString({ajv}, 'quoted', 'quoted'),
×
157
                new PrefixedString({ajv}, 'single_quoted', 'quoted'),
×
158
                new PrefixedString({ajv}, 'non_quoted', 'quoted'),
×
159
                new PrefixedString({ajv}, 'version_specific_default', 'quoted'),
×
160
        ];
×
UNCOV
161
}
×
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