Dear Causeway Team,

I hope this message finds you well. I am currently facing an issue with the
crearJugador method in my backend application that uses the Causeway
framework.

The method is designed to create a new player (Jugador) by taking various
parameters, including fechaDeNacimientoString, which is supposed to be
converted to a LocalDate. However, when attempting to make a request to the
URL provided by the Causeway framework through the Swagger interface, I
encounter a parsing error.

Here is a sample request and the corresponding response:

Response:

{
"nombre": {"value": "Luca"},
"apellido": {"value": "Rivera"},
"telefono": {"value": "2996099114"},
"mail": {"value": "[email protected]"},
"password": {"value": "luca1234"},
"fechaDeNacimiento": {
"value": "2011-06-14",
"invalidReason": "exception when parsing paramNr 5: Unable to parse value
class java.time.LocalDate as String"
},
"x-ro-invalidReason": "error parsing arguments"
}

In the response, the issue seems to be in the conversion of the
fechaDeNacimiento attribute to a LocalDate within the method. Despite
attempts, the parsing is unsuccessful.

Here's an excerpt of the crearJugador method for reference:

java
Copy code
@Action(semantics = SemanticsOf.NON_IDEMPOTENT)
@ActionLayout(promptStyle = PromptStyle.DIALOG_SIDEBAR)
public Jugador crearJugador(
        final String nombre, final String apellido, final String telefono,
final String mail, final String password, final LocalDate
fechaDeNacimiento) {
    return
repositoryService.persist(Jugador.crearJugador(nombre,apellido,telefono,mail,password,fechaDeNacimiento));
}
I would appreciate any insights or guidance on resolving this matter. Thank
you for your assistance.

Best regards,

Reply via email to