Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jsonb Property Names Must Be Unique #291

Open
1 of 4 tasks
Tracked by #16
aditrada opened this issue Apr 18, 2022 · 0 comments
Open
1 of 4 tasks
Tracked by #16

Jsonb Property Names Must Be Unique #291

aditrada opened this issue Apr 18, 2022 · 0 comments

Comments

@aditrada
Copy link
Contributor

Description:

If a duplicate property name is found, then exception must be thrown.

The definition of duplicate means that the names, after processing any escaped characters, are identical sequences of Unicode characters.

The following will lead to an error:

@JsonbProperty("name")
private String firstName;

@JsonbProperty("name")
private String lastName;

Specification:

https://jakarta.ee/specifications/jsonb/2.0/jakarta-jsonb-spec-2.0.html#property-names-resolution
https://jakarta.ee/specifications/jsonb/2.0/jakarta-jsonb-spec-2.0.html#uniqueness-of-properties

Type of language feature proposed:

Select all that apply

  • diagnostic
  • quick-fix
  • snippet
  • other, please specify:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant