From 9378975832f3fd70d29f9cd90176f1d86306b580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Prunayre?= Date: Tue, 25 Jun 2024 08:46:59 +0200 Subject: [PATCH] API / Client code generation / Avoid reserved word (#8214) When using tools to convert OpenAPI to client code eg. ```bash npx openapi-ts -i ./src/gapi/gapi.json -o src/gapi ``` Some reserved word may create invalid generated code. eg. when building typescript: ``` TS1102: 'delete' cannot be called on an identifier in strict mode. [ ``` --- .../src/main/java/org/fao/geonet/api/processing/ProcessApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/fao/geonet/api/processing/ProcessApi.java b/services/src/main/java/org/fao/geonet/api/processing/ProcessApi.java index c832ab913a0..775874d572d 100644 --- a/services/src/main/java/org/fao/geonet/api/processing/ProcessApi.java +++ b/services/src/main/java/org/fao/geonet/api/processing/ProcessApi.java @@ -105,7 +105,7 @@ public List getProcessReport() throws Exception { @ResponseBody @ResponseStatus(HttpStatus.NO_CONTENT) @PreAuthorize("isAuthenticated()") - public void delete() throws Exception { + public void deleteProcessReport() throws Exception { registry.clear(); }