DMTF / Redfish-Service-Validator

The Redfish Service Validator is a Python3 tool for checking conformance of any "device" with a Redfish service interface against Redfish CSDL schema
Other
40 stars 34 forks source link

Made change to allow for action names to be annotated #561

Closed mraineri closed 1 year ago

mraineri commented 1 year ago

Would like to see if others agree with this, but this came up when someone was attempting to show an action is deprecated in an OEM resource. For example, the desire was to have an actions property like this:

{
    "Actions": {
        "#ContosoManager.SuperCoolAction": {
            "target": "/redfish/v1/Oem/Contoso/Manager/Actions/ContosoManager.SuperCoolAction"
        },
        "#ContosoManager.SuperCoolAction@Redfish.Deprecated": "This action has been deprecated for newer actions"
    }
}

Using @Redfish.Deprecated inside of the Actions object wasn't being handled, as it was expecting everything to be an object.

mraineri commented 1 year ago

Approved 9/8