SAP / cloud-sdk-java

Use the SAP Cloud SDK for Java to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
Apache License 2.0
22 stars 13 forks source link

Error while using SynchronousMessagingAPI service of event mesh messaging default plan #137

Closed gamer-gtx-260 closed 12 months ago

gamer-gtx-260 commented 12 months ago

Issue Description

Error while using SynchronousMessagingAPI service of event mesh messaging default plan for java.

Important information: Using this api https://api.sap.com/api/SAPEventMeshDefaultMessagingAPIs/cloud-sdk/Java to generate, after removing oneof, anyof from yaml. The api client is generated successfully.

Impact / Priority

Affected development phase: Development

Impact: Inconvenience

Timeline: As soon as possible

Error Message

Invalid mime type "any-content-type": does not contain '/'

Work-around:

  1. Comment any-content-type hardcoded mime type in SynchronousMessagingApi=>queuesQueueNameMessagesPost()
  2. Change signature File to Object in SynchronousMessagingApi=>queuesQueueNameMessagesPost()
CharlesDuboisSAP commented 12 months ago

There are two ways of fixing the specification: