The Swordfish API Emulator can emulate a Swordfish-based system statically or dynamically. Starting from an initial state described by mock-ups, the emulator can be used to emulate a Swordfish system responding to create/modify/delete operations in order to allow developers to model new Swordfish functionality, test clients, demonstrate Swordfish and other similar functions.
The problem is in the SupportedLinesOfService property:
10 validation errors for DataStorageLoSCapabilities_v1_2_2_DataStorageLoSCapabilities
SupportedLinesOfService.0.`@odata.type`
Extra inputs are not permitted [type=extra_forbidden, input_value='#DataSecurityLineOfServi...taSecurityLineOfService', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/extra_forbidden
SupportedLinesOfService.0.Id
Extra inputs are not permitted [type=extra_forbidden, input_value='SecureData', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/extra_forbidden
…
which is defined as
SupportedLinesOfService:
description: Collection of known and supported DataStorageLinesOfService.
items:
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_idRef
readOnly: false
type: array
x-autoExpand: true
x-longDescription: The collection shall contain known and supported DataStorageLinesOfService.
this is most likely due to missing auto-expansion when generating the OpenAPI description documents (c.f. https://github.com/DMTF/Redfish-Service-Validator/issues/588).
Changing the type to the "expanded" in the description documents works for me.
Hi,
using v1.2.6 the mockup http://service-based-mockups.swordfishmockups.com fails validation using the provided openapi description documents. The PathItems
fail validation.
The problem is in the SupportedLinesOfService property:
which is defined as
but served as:
this is most likely due to missing auto-expansion when generating the OpenAPI description documents (c.f. https://github.com/DMTF/Redfish-Service-Validator/issues/588). Changing the type to the "expanded" in the description documents works for me.