[prev in list] [next in list] [prev in thread] [next in thread]
List: james-dev
Subject: [jira] [Created] (JAMES-3677) BackReference should allow pointing to specific array elements
From: "Benoit Tellier (Jira)" <server-dev () james ! apache ! org>
Date: 2021-11-25 8:12:00
Message-ID: JIRA.13413780.1637827873000.60755.1637827920067 () Atlassian ! JIRA
[Download RAW message or body]
Benoit Tellier created JAMES-3677:
-------------------------------------
Summary: BackReference should allow pointing to specific array elements
Key: JAMES-3677
URL: https://issues.apache.org/jira/browse/JAMES-3677
Project: James Server
Issue Type: Sub-task
Components: JMAP
Affects Versions: 3.6.0
Reporter: Benoit Tellier
Assignee: Antoine Duprat
Fix For: 3.7.0
Today James support JMAP BackReferences to allow compose JMAP method calls together \
within a single JMAP request in order to reduce roundtrips, a la graphQL.
https://jmap.io/spec-core.html#references-to-previous-method-results specify the \
mechanism: a JSON pointer allow extracting the JSON value to supply from a previously \
executed method response. It clearly state that \
https://datatracker.ietf.org/doc/html/rfc6901 should be respected. RFC-6901 allow \
pointing toward dedicated array items:
{code:java}
Given
{
"foo": ["bar", "baz"],
...
}
The following JSON strings evaluate to the accompanying values:
...
"/foo/0" "bar"
...
{code}
However this is not currently supported by James.
Confusion arrise from the fact that JMAP relies on JSON pointers for updates too and \
forbids to do partial updates. However no such limitation is stated in the context of \
back references.
Thus, in a spec compliance effort, we shall allow pointing back-references to items \
in arrays.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic