Changeset 965 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Oct 23, 2020, 6:28:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_json.c
r963 r965 1375 1375 } 1376 1376 if (tok->char_offset < slen){ 1377 fprintf(stderr, "Error parsing json\n"); 1377 1378 return NULL; 1378 1379 } … … 1814 1815 json_object_array_add(cc,json_object_new_string(vMap->value)); 1815 1816 json_object_object_add(methodc,"tags",cc); 1817 json_object_object_add(methodc,"operationId",json_object_new_string(vMap->value)); 1818 1816 1819 } 1817 1820 json_object *responses=json_object_new_object(); … … 1924 1927 1925 1928 json_object *pajDescription=json_object_new_object(); 1926 if(pmTitle!=NULL) 1929 json_object *pajPost=json_object_new_object(); 1930 if(pmTitle!=NULL){ 1927 1931 json_object_object_add(pajDescription,"description",json_object_new_string(pmTitle->value)); 1932 json_object_object_add(pajPost,"summary",json_object_new_string(pmTitle->value)); 1933 } 1928 1934 json_object *pajResponse=json_object_new_object(); 1929 1935 json_object_object_add(pajResponse,"200",pajDescription); 1930 1936 1931 json_object *pajPost=json_object_new_object();1932 1937 json_object_object_add(pajPost,"requestBody",pajRBody); 1933 1938 json_object_object_add(pajPost,"responses",pajResponse); 1939 json_object_object_add(pajPost,"operationId",json_object_new_string(pmState->value)); 1934 1940 1935 1941 json_object *pajMethod=json_object_new_object(); … … 1942 1948 json_object *pajFinal=json_object_new_object(); 1943 1949 json_object_object_add(pajFinal,pacUri,pajMethod); 1944 1945 1950 json_object_object_add(pajRes,pmState->value,pajFinal); 1946 1951
Note: See TracChangeset
for help on using the changeset viewer.