Closed JojoWu19 closed 3 years ago
For item 1, I think you're correct; we'll need to look more into this.
For item 2, using an empty string, 0.0.0.0, or some other dummy data is generally discouraged and can lead to interoperability problems. We expect clients to be explicitly looking for null in array slots to understand where something new can be inserted. We're seen issues with this in the EthernetInterface resource, which lead us to produce a use case checker to verify implementations are following the proper patterns we put in the specification.
Get it, thank you.
@JojoWu19 could you please try the Array-Test-Fixes branch? I don't have a system that performs the null padding at the end of the array to verify this myself.
This test case check if the array of response is the same with
expected_array
but it will report below cases failed.null
members are appended in the end of array.I don't sure if the case 2 conforms to spec but validator should let case 1 pass, right?