File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,10 @@ var method = host.CurrentType.AsOdcmMethod();
77var entityName = method.Class.Name.ToCheckedCase();
88var requestBody = entityName + method.Name.Substring(method.Name.IndexOf('.') + 1).ToCheckedCase() + "RequestBody";
99
10- // These types of request bodies are only used for OData actions, which when containing parameters,
11- // will always result in POST calls. The OData spec is explicit in saying that overload methods bound
12- // to other types are explicitly not allowed. Therefore, any overload methods found here are invalid
13- // and violate the spec.
14- // System.Diagnostics.Debug.Assert(!method.Overloads.Any(), "Overload actions are not allowed in OData services");
1510// Commenting this out as 12.1.1.1, Action Overload Rules, states "Bound actions support overloading (multiple
1611// actions having the same name within the same namespace) by binding parameter type. The combination of action
1712// name and the binding parameter type MUST be unique within a namespace."
13+ // System.Diagnostics.Debug.Assert(!method.Overloads.Any(), "Overload actions are not allowed in OData services");
1814
1915var attributeStringBuilder = new StringBuilder();
2016attributeStringBuilder.Append("[JsonObject(MemberSerialization = MemberSerialization.OptIn)]");
You can’t perform that action at this time.
0 commit comments