|
Post by adkarira on Feb 20, 2024 19:26:47 GMT
According to the Redfish spec, Section 7.7 - PATCH on Array Properties: " Within a PATCH request, the service shall accept null to remove an element, and accept an empty
object {} to leave an element unchanged "
Given the following payload for a PATCH on a Volume resource: " { "Links": { "DedicatedSpareDrives": [ null, {} ] } } "
We are seeing an error when trying to encode the above payload using DMTF's RDE-Dictionary (https://github.com/DMTF/RDE-Dictionary). The error comes is seen because in the Volume's schema dictionary, DedicatedSpareDrives child is a Set whose Nullable is not set to True. " +-------+-------------+----------+-------------------------------------+----------------------+--------+ | 30 | 2 | Array | Nullable=True,Permission=ReadWrite | DedicatedSpareDrives | 1 | 65 | +-------+-------------+----------+-------------------------------------+----------------------+--------+ ... +-------+-------------+----------+-------------------------------------+----------------------+--------+ | 65 | 0 | Set | | | 0 | | +-------+-------------+----------+-------------------------------------+----------------------+--------+ "
The question is: Is this an issue with DMTF's RDE-Dictionary or we cannot support BejNull as a PATCHable value in Volume.Links.DedicatedSpareDrives property?
Thanks Aditya
|
|
|
Post by billscherer on Feb 23, 2024 22:50:10 GMT
Quick acknowledgment that I've seen the question and will be responding in more detail soon
|
|
|
Post by billscherer on Mar 22, 2024 14:45:41 GMT
This appears to be a deficiency in the RDE specification. I am working to address it in the next iteration of the specification.
|
|