spmallette opened a new pull request, #3541:
URL: https://github.com/apache/tinkerpop/pull/3541

   The GraphSON section of `reference/gremlin-applications.asciidoc` still 
described 3.x behavior, which no longer matches a 4.0 server.
   
   This updates the section so every example reflects 4.x:
   
   - The curl example used `100-1`, which the 4.x parser rejects (no Groovy 
scripting). It now uses the valid gremlin-lang expression `g.inject(99)`, which 
is why the documented result data is `[99]`.
   - The shown response envelope was the old 3.x shape (`requestId`, nested 
`status`/`result` with `meta`). It now shows the actual 4.0 shape: 
`{"result":{"data":[99]},"status":{"code":200}}`.
   - The GraphSON 3.0 `Accept`-header example was removed. It cannot succeed on 
4.x (the server returns HTTP 400 for `application/vnd.gremlin-v3.0+json`) and 
contradicted the adjacent note that says v3.0 is no longer available. Its intro 
line was reworded to describe the remaining default-request example.
   - The serializer table's untyped row listed `GraphSONMessageSerializerV4`. 
The correct class for the untyped configuration is 
`GraphSONUntypedMessageSerializerV4`.
   
   The docs build (`bin/process-docs.sh`) renders cleanly and the rendered 
section was checked to contain the corrected content.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to