Merge "api: Allow bios values to be None"

This commit is contained in:
Zuul
2025-10-22 13:44:14 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -628,7 +628,7 @@ bios_setting_upper_bound:
type: integer
bios_setting_value:
description: |
The value of a Bios setting for a Node, eg. "on".
The value of a Bios setting for a Node, eg. "on". May be ``null``.
in: body
required: true
type: string

View File

@@ -82,7 +82,7 @@ _bios_response_body = {
'links': response_types.links,
'name': {'type': 'string'},
'updated_at': {'type': ['string', 'null'], 'format': 'date-time'},
'value': {'type': 'string'},
'value': {'type': ['null', 'string']},
},
'required': ['created_at', 'links', 'name', 'value', 'updated_at'],
'additionalProperties': False,
@@ -106,7 +106,7 @@ _bios_response_body_v74 = {
'unique': {'type': ['null', 'boolean']},
'updated_at': {'type': ['string', 'null'], 'format': 'date-time'},
'upper_bound': {'type': ['null', 'integer'], 'minimum': 0},
'value': {'type': 'string'},
'value': {'type': ['null', 'string']},
},
# NOTE(stephenfin): The 'fields' parameter means only a minimal set of
# fields are required