Closed cromoteca closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.00%. Comparing base (
c02ab2e
) to head (da9a187
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Just wondering: should we rather represent JsonObject as Record<never, never>
and JsonArray as unknown[]
?
I was thinking the same thing, but mostly for simple types like numbers and strings which are transmitted as they are. But I don't expect classes like IntNode
to be used as service types, as you can just use int
or Integer
.
Concerning more complex types like the ones you mentioned, having unknown[]
instead of unknown
doesn't add big value to me as you still need to cast items. Representing ObjectNode
as Record<never, never>
shouldn't it be Record<string, unknown>
? But then you still have to cast all property values.
I decided to only support the 3 non-raw-value classes, which also removes the need to use ClassGraph for discovery.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Support for
JsonNode
was added recently. This PR adds the same treatment for its subclasses.