You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RPC spec generator does not add parameter descriptors for the enum data type which is an issue when the enum has a default value.
For example, the SoftButtonsystemAction parameter is an enum with a defvalue set to DEFAULT_ACTION
<struct name="SoftButton" since="2.0">
...
<param name="systemAction" type="SystemAction" defvalue="DEFAULT_ACTION" mandatory="false">
<description>Parameter indicating whether selecting a SoftButton shall call a specific system action. This is intended to allow Notifications to bring the callee into full / focus; or in the case of persistent overlays, the overlay can persist when a SoftButton is pressed.</description>
</param>
</struct>
Reproduction Steps
Run the generator script in the "generator" folder of the library.
Expected Behavior
It should generate the following:
/**
* Parameter indicating whether selecting a SoftButton shall call a specific system action. This is intended to
* allow Notifications to bring the callee into full / focus; or in the case of persistent overlays, the overlay can
* persist when a SoftButton is pressed.
* {"default_value": DEFAULT_ACTION}
*/
@property (nullable, strong, nonatomic) SDLSystemAction systemAction;
Observed Behavior
It does not add the default value to the description:
/**
* Parameter indicating whether selecting a SoftButton shall call a specific system action. This is intended to
* allow Notifications to bring the callee into full / focus; or in the case of persistent overlays, the overlay can
* persist when a SoftButton is pressed.
*/
@property (nullable, strong, nonatomic) SDLSystemAction systemAction;
OS & Version Information
iOS Version: n/a
SDL iOS Version: 6.7
Testing Against: n/a
The text was updated successfully, but these errors were encountered:
Bug Report
RPC spec generator does not add parameter descriptors for the enum data type which is an issue when the enum has a default value.
For example, the
SoftButton
systemAction
parameter is an enum with adefvalue
set toDEFAULT_ACTION
Reproduction Steps
Expected Behavior
It should generate the following:
Observed Behavior
It does not add the default value to the description:
OS & Version Information
The text was updated successfully, but these errors were encountered: