Skip to content

Commit

Permalink
Added special 'None' permission unique for Session
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Raineri <[email protected]>
  • Loading branch information
mraineri committed May 3, 2024
1 parent 3a7f06c commit 61eea62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redfish_service_validator/validateRedfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def checkPropertyConformance(service, prop_name, prop, parent_name=None, parent_
paramPass = propNullablePass = True

# <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
if prop.Type.Permissions == "OData.Permission/Write":
if prop.Type.Permissions == "OData.Permission/Write" or prop.Type.Permissions == "OData.Permission/None":
if val is not None:
my_logger.error('{}: Permissions for this property are Write only, reading this property should be null!!!'.format(sub_item))
permissionValid = False
Expand Down

0 comments on commit 61eea62

Please sign in to comment.