File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/apex
samples/client/petstore/apex/force-app/main/default/classes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ public class OAS {
183183
184184 @TestVisible
185185 protected virtual Object toReturnValue (String body , Type returnType , String contentType ) {
186- if (contentType == ' application/json' ) {
186+ if (contentType . contains ( ' application/json' ) ) {
187187 Object o = returnType .newInstance ();
188188 if (o instanceof MappedProperties ) {
189189 Map <String , String > propertyMappings = ((MappedProperties ) o ).getPropertyMappings ();
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ public class OAS {
183183
184184 @TestVisible
185185 protected virtual Object toReturnValue (String body , Type returnType , String contentType ) {
186- if (contentType == ' application/json' ) {
186+ if (contentType . contains ( ' application/json' ) ) {
187187 Object o = returnType .newInstance ();
188188 if (o instanceof MappedProperties ) {
189189 Map <String , String > propertyMappings = ((MappedProperties ) o ).getPropertyMappings ();
You can’t perform that action at this time.
0 commit comments