Skip to content

Commit

Permalink
io.vertx.ext.auth.authentication.Credentials should be a data object …
Browse files Browse the repository at this point in the history
…interface.

Motivation:

io.vertx.ext.auth.authentication.Credentials is a code generated object, however its implementations are data objects. Generated code declaring Credentials as argument or return type does not accept Credentials implementation since the type is translated to the shim equivalent.

Changes:

Make Credentials a data object.
  • Loading branch information
vietj committed Dec 18, 2024
1 parent 3b308b8 commit e1e2a34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package io.vertx.ext.auth.authentication;

import io.vertx.codegen.annotations.VertxGen;
import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.http.HttpMethod;
import io.vertx.core.json.JsonObject;

Expand All @@ -25,7 +25,7 @@
*
* @author Paulo Lopes
*/
@VertxGen(concrete = false)
@DataObject
public interface Credentials {
/**
* Implementors should override this method to perform validation. An argument is allowed to
Expand Down

0 comments on commit e1e2a34

Please sign in to comment.