question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] CrdGenerator validate @JsonPropertyOrder

See original GitHub issue

Can we improve the CrdGenerator to:

  1. validate that the @JsonPropertyOrder is present
  2. validate that the properties given are all properties of the class
  3. validate that no properties of the class (including inherited properties) are missing

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tombentleycommented, Apr 2, 2020

Fail the build. People usually overlook warnings.

0reactions
scholzjcommented, Jun 21, 2022

Triaged on 21st June: We should validate that all fields are present at build time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jackson @JsonPropertyOrder is ignored - Stack Overflow
When I tried to replicate your code with Jackson 2.6. · Excuse me, why do you want to preserve the order of the...
Read more >
Jackson JSON - Using @JsonPropertyOrder annotation to ...
@JsonPropertyOrder annotation is used to specify the ordering of the serialized properties. Example. POJO. @JsonPropertyOrder({"name" ...
Read more >
Jackson Annotations - @JsonPropertyOrder - Tutorialspoint
Jackson Annotations - @JsonPropertyOrder, @JsonPropertyOrder allows a specific order to be preserved while serializing a JSON object.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found