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
Should the client return "Some String", or "txt:Some string"?
I would suggest the former, and I would also suggest that the caller be informed which tag was parsed.
When writing the type of a response (in Haskell syntax), this would amount to:
Moreover the first three bytes provide information about the format of the following string, which can be txt for plain text, or mkd for markdown
Am I right in thinking that these two formats are locked in as the only formats that can be returned?
If so, I suggest changing the above to
Moreover the first three bytes provide information about the format of the following string, which can either be txt for plain text, or mkd for markdown, and cannot be anything else.
Without this change, a cautious interpretation would force clients to adopt this (less specific) representation:
For the Verbatim string
Should the client return
"Some String"
, or"txt:Some string"
?I would suggest the former, and I would also suggest that the caller be informed which tag was parsed.
When writing the type of a response (in Haskell syntax), this would amount to:
The spec states that:
Am I right in thinking that these two formats are locked in as the only formats that can be returned?
If so, I suggest changing the above to
Without this change, a cautious interpretation would force clients to adopt this (less specific) representation:
The text was updated successfully, but these errors were encountered: