Skip to content

Commit

Permalink
API / Client code generation / Avoid reserved word (geonetwork#8214)
Browse files Browse the repository at this point in the history
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. [
```
  • Loading branch information
fxprunayre authored Jun 25, 2024
1 parent aed2eb1 commit 9378975
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public List<ProcessingReport> getProcessReport() throws Exception {
@ResponseBody
@ResponseStatus(HttpStatus.NO_CONTENT)
@PreAuthorize("isAuthenticated()")
public void delete() throws Exception {
public void deleteProcessReport() throws Exception {
registry.clear();
}

Expand Down

0 comments on commit 9378975

Please sign in to comment.