|
Post by derek on May 11, 2020 6:39:47 GMT
Hi, when there is a null property in Get Response body, does a client show this null property or not? for example, MaxCompositions in the Get response of ComputeBlock is null.
for this question, I have checked DSP0266_1.5.0, DSP0266_1.3.0 and DSP0266_1.6.0. I found the following information. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7.5.4.5. Required properties
The Required annotation is used to specify that a property is required to be supported by services.
Required properties shall be annotated with the Required annotation. All other properties are optional.
If an implementation supports a property, it shall always provide a value for that property. If a value is
unknown, then null is an acceptable values in most cases. Properties not returned from a GET operation
shall indicate that the property is not currently supported by the implementation. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ from the above information, it seems like a redfish server doesn't reply null properties. is it correct? however, I don't see this description between DSP0266_1_9_1 and DSP0266_1_6_1. so after I checked these specifications, I amn't sure a client side should display null properties or not.
Thanks, Derek
|
|