You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ke...@apache.org on 2024/10/02 18:57:35 UTC

(tinkerpop) branch master-http updated: Revert change to code value in GraphSONv4 CTR.

This is an automated email from the ASF dual-hosted git repository.

kenhuuu pushed a commit to branch master-http
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master-http by this push:
     new 8acda807fe Revert change to code value in GraphSONv4 CTR.
8acda807fe is described below

commit 8acda807feab83633d26befee9fad4bb1f7b5cf4
Author: Ken Hu <10...@users.noreply.github.com>
AuthorDate: Wed Oct 2 11:54:35 2024 -0700

    Revert change to code value in GraphSONv4 CTR.
    
    The "code" in "status" object was changed to a string from a number so
    that it also included the reason phrase. This was probably an accident
    so reverting it back to just the number like it was in previous versions
    of GraphSON.
---
 docs/src/dev/io/graphson.asciidoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/src/dev/io/graphson.asciidoc b/docs/src/dev/io/graphson.asciidoc
index 65bbddc065..ae777fd191 100644
--- a/docs/src/dev/io/graphson.asciidoc
+++ b/docs/src/dev/io/graphson.asciidoc
@@ -2785,7 +2785,7 @@ The following `ResponseMessage` is a typical example of the typical successful r
     }
   },
   "status": {
-    "code": "200 OK"
+    "code": 200
   }
 }
 ----
@@ -2847,7 +2847,7 @@ The following `ResponseMessage` is a typical example of the typical successful r
     ]
   },
   "status": {
-    "code": "200 OK"
+    "code": 200
   }
 }
 ----
@@ -2866,7 +2866,7 @@ The following `ResponseMessage` is a typical example of the typical successful r
     }
   },
   "status": {
-    "code": "500 Internal Server Error",
+    "code": 500,
     "message": "A timeout occurred during traversal evaluation",
     "exception": "ServerTimeoutExceededException"
   }
@@ -2880,7 +2880,7 @@ The following `ResponseMessage` is a typical example of the typical successful r
     "data": []
   },
   "status": {
-    "code": "500 Internal Server Error",
+    "code": 500,
     "message": "A timeout occurred during traversal evaluation",
     "exception": "ServerTimeoutExceededException"
   }