Skip to content

Resolve id in log events. Rename it to log_id. #371

Closed

Description

@radiopapus

Hey, guys.
Log event response contains log_id field but class contains id field and @JsonProperty("_id"). See response example https://auth0.com/docs/api/management/v2/#!/Logs/get_logs

public class LogEvent {

@JsonProperty("_id")
private String id;

...
}

Describe the ideal solution

Could you just add log_id instead of _id. I mean @JsonProperty("_id") -> @JsonProperty("log_id")

Additional information, if any

This is for 1.33.0 version.

Thanks.

Activity

  1. jimmyjames commented on Aug 27, 2021

    @jimmyjames
    Contributor

    Thanks for raising this @ViktorZharina! You are correct that the documentation response example shows log_id, and not _id. However, actual responses have both. I'm going to add a new field, log_id, to maintain the ability to use both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions