Fossil SCM
Re-added the jsonApiVersion field to /json/version output. Not sure why i had removed it. /json/report/create now fails with an NYI error instead of succeeding but doing nothing.
Commit
bbcc8fe351784c9a8a17f63cfbc234f92a6ef085
Parent
f9b89f61a3cc04e…
2 files changed
+1
-1
+1
+1
-1
| --- src/json.c | ||
| +++ src/json.c | ||
| @@ -1913,11 +1913,11 @@ | ||
| 1913 | 1913 | FSET(RELEASE_VERSION,"releaseVersion"); |
| 1914 | 1914 | cson_object_set( jobj, "releaseVersionNumber", |
| 1915 | 1915 | cson_value_new_integer(RELEASE_VERSION_NUMBER) ); |
| 1916 | 1916 | cson_object_set( jobj, "resultCodeParanoiaLevel", |
| 1917 | 1917 | cson_value_new_integer(g.json.errorDetailParanoia) ); |
| 1918 | - /*FSET(FOSSIL_JSON_API_VERSION, "jsonApiVersion" );*/ | |
| 1918 | + FSET(FOSSIL_JSON_API_VERSION, "jsonApiVersion" ); | |
| 1919 | 1919 | #undef FSET |
| 1920 | 1920 | return jval; |
| 1921 | 1921 | } |
| 1922 | 1922 | |
| 1923 | 1923 | |
| 1924 | 1924 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -1913,11 +1913,11 @@ | |
| 1913 | FSET(RELEASE_VERSION,"releaseVersion"); |
| 1914 | cson_object_set( jobj, "releaseVersionNumber", |
| 1915 | cson_value_new_integer(RELEASE_VERSION_NUMBER) ); |
| 1916 | cson_object_set( jobj, "resultCodeParanoiaLevel", |
| 1917 | cson_value_new_integer(g.json.errorDetailParanoia) ); |
| 1918 | /*FSET(FOSSIL_JSON_API_VERSION, "jsonApiVersion" );*/ |
| 1919 | #undef FSET |
| 1920 | return jval; |
| 1921 | } |
| 1922 | |
| 1923 | |
| 1924 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -1913,11 +1913,11 @@ | |
| 1913 | FSET(RELEASE_VERSION,"releaseVersion"); |
| 1914 | cson_object_set( jobj, "releaseVersionNumber", |
| 1915 | cson_value_new_integer(RELEASE_VERSION_NUMBER) ); |
| 1916 | cson_object_set( jobj, "resultCodeParanoiaLevel", |
| 1917 | cson_value_new_integer(g.json.errorDetailParanoia) ); |
| 1918 | FSET(FOSSIL_JSON_API_VERSION, "jsonApiVersion" ); |
| 1919 | #undef FSET |
| 1920 | return jval; |
| 1921 | } |
| 1922 | |
| 1923 | |
| 1924 |
+1
| --- src/json_report.c | ||
| +++ src/json_report.c | ||
| @@ -78,10 +78,11 @@ | ||
| 78 | 78 | } |
| 79 | 79 | return nReport; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | static cson_value * json_report_create(){ |
| 83 | + json_set_err(FSL_JSON_E_NYI, NULL); | |
| 83 | 84 | return NULL; |
| 84 | 85 | } |
| 85 | 86 | |
| 86 | 87 | static cson_value * json_report_get(){ |
| 87 | 88 | int nReport; |
| 88 | 89 |
| --- src/json_report.c | |
| +++ src/json_report.c | |
| @@ -78,10 +78,11 @@ | |
| 78 | } |
| 79 | return nReport; |
| 80 | } |
| 81 | |
| 82 | static cson_value * json_report_create(){ |
| 83 | return NULL; |
| 84 | } |
| 85 | |
| 86 | static cson_value * json_report_get(){ |
| 87 | int nReport; |
| 88 |
| --- src/json_report.c | |
| +++ src/json_report.c | |
| @@ -78,10 +78,11 @@ | |
| 78 | } |
| 79 | return nReport; |
| 80 | } |
| 81 | |
| 82 | static cson_value * json_report_create(){ |
| 83 | json_set_err(FSL_JSON_E_NYI, NULL); |
| 84 | return NULL; |
| 85 | } |
| 86 | |
| 87 | static cson_value * json_report_get(){ |
| 88 | int nReport; |
| 89 |