[SERVER-30766] IDLType::parse() should be abled to be called with a string as its first argument Created: 21/Aug/17  Updated: 27/Oct/23  Resolved: 21/Aug/17

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Gabriel Russell (Inactive) Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

For example,

OperationSessionInfoFromClient::parse(IDLParserErrorContext("OperationSessionInfo"),requestBody);

should be able to be written simply as

OperationSessionInfoFromClient::parse("OperationSessionInfo",requestBody);



 Comments   
Comment by Gabriel Russell (Inactive) [ 21/Aug/17 ]

This already works. You can pass a StringData to parse and it gets automatically converted.

Generated at Thu Feb 08 04:24:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.