This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place this file next to `settings.json` (/Library/Application Support/Code/User on MacOS) to be global | |
// Custom tasks documentation: https://code.visualstudio.com/docs/editor/tasks#_custom-tasks | |
// Task user input documentation: https://code.visualstudio.com/docs/editor/variables-reference#_input-variables | |
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Target({ FIELD }) | |
@Retention(RUNTIME) | |
@Documented | |
@Constraint(validatedBy = { EnumRestreintValidator.class }) | |
public @interface EnumRestreint { | |
String message() default "The enum value is not included in the possibles values."; | |
String[] authorizedFields() default {}; | |
Class<?>[] groups() default {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repeatRequests(req, endpoint, callback): any{ | |
// Array of all results, returned to the subscribe | |
let tempArray = []; | |
// Recursive lambda function to chain all observables sequentially | |
const recursive = (req, endpoint, callback) => { | |
return this.httpService.get(endpoint).pipe( | |
flatMap((res) => { | |
callback(res.data.items); | |
// Concat all results in the result array |