-
Notifications
You must be signed in to change notification settings - Fork 94
/
settings.schema.json
67 lines (67 loc) · 2.09 KB
/
settings.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"definitions": {},
"$schema": "http://json-schema.org/draft-04/schema",
"$id": "https://example.com/object1606572004.json",
"title": "Root",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"title": "The URL for the schema used by this document.",
"type": "string",
"examples": [
"https://aka.ms/CsWin32.schema.json"
]
},
"namespace": {
"title": "Namespace for generated code.",
"type": "string",
"default": "Microsoft.Windows.Sdk",
"examples": [
"PInvoke"
],
"pattern": "^\\w+(?:\\.\\w+)*$"
},
"comInterop": {
"title": "Details around code generation for COM interop",
"type": "object",
"properties": {
"preserveSigMethods": {
"title": "Identifies methods or interfaces that should be generated as [PreserveSig].",
"type": "array",
"items": {
"type": "string",
"uniqueItems": true,
"pattern": "^[\\w_]+(?:\\.[\\w_]+)?$"
}
}
}
},
"allowMarshaling": {
"title": "Emit COM interfaces instead of structs, and allow generation of non-blittable structs for the sake of an easier to use API.",
"type": "boolean",
"default": true
},
"wideCharOnly": {
"title": "Omit ANSI functions and remove `W` suffix from UTF-16 functions.",
"type": "boolean",
"default": true
},
"emitSingleFile": {
"title": "A value indicating whether to emit a single source file as opposed to types spread across many files.",
"type": "boolean",
"default": false
},
"className": {
"title": "The name of a single class under which all p/invoke methods should be added, regardless of imported module. Use null for one class per imported module.",
"type": [ "string", "null" ],
"default": "PInvoke",
"pattern": "^\\w+$"
},
"public": {
"title": "A value indicating whether to expose the generated APIs publicly (as opposed to internally).",
"type": "boolean",
"default": false
}
}
}