Search in sources :

Example 1 with UserPublishInfoJson

use of org.eclipse.openvsx.json.UserPublishInfoJson in project openvsx by eclipse.

the class AdminAPITest method publishInfoJson.

private String publishInfoJson(Consumer<UserPublishInfoJson> content) throws JsonProcessingException {
    var json = new UserPublishInfoJson();
    content.accept(json);
    return new ObjectMapper().writeValueAsString(json);
}
Also used : UserPublishInfoJson(org.eclipse.openvsx.json.UserPublishInfoJson) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 UserPublishInfoJson (org.eclipse.openvsx.json.UserPublishInfoJson)1