|
Post by vincent0607 on Mar 3, 2023 3:56:29 GMT
In redfish spec 1.16.0, introducing three new payload annotation support, including - @redfish.WriteableProperties
- @redfish.AllowableValues
- @redfish.AllowablePattern
After applied its into our redfish service, for SerialInterface example {
"@odata.type": "#SerialInterface.v1_1_0.SerialInterface",
"@odata.context": "/redfish/v1/$metadata#SerialInterface.SerialInterface",
"@odata.id": "/redfish/v1/Managers/0/SerialInterfaces/1",
"@odata.etag": "05518a449fc991cc0da8",
"@Redfish.WriteableProperties": [
"InterfaceEnabled",
"BitRate",
"Parity",
"DataBits",
"StopBits",
"FlowControl"
],
"Id": "1",
"Name": "COM1",
"Description": "Management for Serial Interface",
"InterfaceEnabled": true,
"BitRate": "115200",
"BitRate@Redfish.AllowableNumbers": [
"9600",
"19200",
"38400",
"57600",
"115200"
],
"Parity": "None",
"Parity@Redfish.AllowableValues": [
"None",
"Even",
"Odd"
],
"DataBits": "8",
"DataBits@Redfish.AllowableNumbers": [
"5:8"
],
"StopBits": "1",
"StopBits@Redfish.AllowableNumbers": [
"1:2:0.5"
],
"FlowControl": "Hardware",
"FlowControl@Redfish.AllowableValues": [
"None",
"Hardware",
"Software"
]
} And then, using latest Redfish Service Validator tool v2.2.7 to verify will be failure, for SerialInterface example, appear below error ![ConformanceHtmlLog_SerialInterface.PNG](//storage.forums.net/6473377/thumbnailer/MoBosUCwYupys0xgWqRH.png) Not sure if this is because latest Redfish Validator v2.2.7 tool have not supported these new annotation check yet ? ![]()
|
|
|
Post by mraineri on Mar 3, 2023 13:00:20 GMT
Please file an issue in the GitHub repository for the Redfish-Service-Validator; I was under the impression the tool should ignore payload annotations, but there may be an allowable annotation list that needs to be updated.
|
|
|
Post by vincent0607 on Mar 7, 2023 0:58:08 GMT
Please file an issue in the GitHub repository for the Redfish-Service-Validator; I was under the impression the tool should ignore payload annotations, but there may be an allowable annotation list that needs to be updated. OK, thanks!!
|
|