1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

openapigen: support for 204 No Content endpoints

This commit is contained in:
Chris Josten 2023-01-02 20:24:40 +01:00
parent b257fe60aa
commit 77cb5d5957
66 changed files with 6169 additions and 84 deletions

View file

@ -457,7 +457,11 @@ void generateFileForEndpoints(ref const Node[] endpointNodes,
}
}
}
}
}
if (codeNo == 204 /* No content */) {
endpoint.resultType = "void";
endpoint.hasSuccessResponse = true;
}
}
if ("requestBody" in endpointNode) {