Skip to content

Commit 0dffe50

Browse files
committed
Add NamespacePrefix that's used as the class name prefix for generating ObjC models.
1 parent 3fe412e commit 0dffe50

File tree

1 file changed

+47
-17
lines changed

1 file changed

+47
-17
lines changed
Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,51 @@
11
{
2-
"StaticCodePrefix": "MS",
3-
"TemplateMapping": {
4-
"Shared": [
5-
{
6-
"_Comment" : "HACK: It seems the entire 'Shared' section is copy pasted from TemplateWriterSettings.json",
7-
"_Comment2" : "with the sole purpose of preventing the Client from being named 'MSGraphGraphServiceClient'.",
8-
"Template": "EntityClient", "SubProcessor": "EntityContainer", "Type": "Client", "Name": "Client"
9-
},
2+
"StaticCodePrefix": "MS",
3+
"NamespacePrefix": "MSGraph",
4+
"TemplateMapping": {
5+
"Shared": [
6+
{
7+
"_Comment": "HACK: It seems the entire 'Shared' section is copy pasted from TemplateWriterSettings.json",
8+
"_Comment2": "with the sole purpose of preventing the Client from being named 'MSGraphGraphServiceClient'.",
9+
"Template": "EntityClient",
10+
"SubProcessor": "EntityContainer",
11+
"Type": "Client",
12+
"Name": "Client"
13+
},
1014

11-
{ "Template": "EntityType", "SubProcessor": "EntityType", "Type": "Model", "Name": "<Class>" },
12-
{ "Template": "ComplexType", "SubProcessor": "ComplexType", "Type": "Model", "Name": "<Class>", "Ignore": "methodResponse" },
13-
{ "Template": "EnumType", "SubProcessor": "EnumType", "Type": "Model", "Name": "<Class>" }
14-
],
15+
{
16+
"Template": "EntityType",
17+
"SubProcessor": "EntityType",
18+
"Type": "Model",
19+
"Name": "<Class>"
20+
},
21+
{
22+
"Template": "ComplexType",
23+
"SubProcessor": "ComplexType",
24+
"Type": "Model",
25+
"Name": "<Class>",
26+
"Ignore": "methodResponse"
27+
},
28+
{
29+
"Template": "EnumType",
30+
"SubProcessor": "EnumType",
31+
"Type": "Model",
32+
"Name": "<Class>"
33+
}
34+
],
1535

16-
"ObjC": [
17-
{ "Template": "ClientModels", "SubProcessor": "Other", "Type": "Model", "Name": "ClientModels" },
18-
{ "Template": "ODataEntities", "SubProcessor": "Other", "Type": "Model", "Name": "ODataEntities" }
19-
]
20-
}
36+
"ObjC": [
37+
{
38+
"Template": "ClientModels",
39+
"SubProcessor": "Other",
40+
"Type": "Model",
41+
"Name": "ClientModels"
42+
},
43+
{
44+
"Template": "ODataEntities",
45+
"SubProcessor": "Other",
46+
"Type": "Model",
47+
"Name": "ODataEntities"
48+
}
49+
]
50+
}
2151
}

0 commit comments

Comments
 (0)