diff --git a/codegenerator/openapi/neutron.py b/codegenerator/openapi/neutron.py index a1b63df..204e3a4 100644 --- a/codegenerator/openapi/neutron.py +++ b/codegenerator/openapi/neutron.py @@ -1027,39 +1027,36 @@ class NeutronGenerator(OpenStackServerSourceBase): elif resource_key == "floatingip" and field == "port_details": js_schema.update( { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Human-readable name of the resource.", - }, - "network_id": { - "type": "string", - "format": "uuid", - "description": "The ID of the attached network.", - }, - "admin_state_up": { - "type": ["string", "boolean"], - "description": "The administrative state of the resource, which is up (`true`) or down (`false`).", - }, - "mac_address": { - "type": "string", - "description": "The MAC address of the port. If the port uses the `direct-physical` `vnic_type` then the value of this field is overwritten with the MAC address provided in the active binding:profile if any.", - }, - "device_id": { - "type": "string", - "description": "The ID of the device that uses this port. For example, a server instance or a logical router.", - }, - "device_owner": { - "type": "string", - "description": "The entity type that uses this port. For example, `compute:nova` (server instance), `network:dhcp` (DHCP agent) or `network:router_interface` (router interface).", - }, - "status": { - "type": "string", - "description": "The port status. Values are `ACTIVE`, `DOWN`, `BUILD` and `ERROR`.", - }, + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Human-readable name of the resource.", + }, + "network_id": { + "type": "string", + "format": "uuid", + "description": "The ID of the attached network.", + }, + "admin_state_up": { + "type": ["string", "boolean"], + "description": "The administrative state of the resource, which is up (`true`) or down (`false`).", + }, + "mac_address": { + "type": "string", + "description": "The MAC address of the port. If the port uses the `direct-physical` `vnic_type` then the value of this field is overwritten with the MAC address provided in the active binding:profile if any.", + }, + "device_id": { + "type": "string", + "description": "The ID of the device that uses this port. For example, a server instance or a logical router.", + }, + "device_owner": { + "type": "string", + "description": "The entity type that uses this port. For example, `compute:nova` (server instance), `network:dhcp` (DHCP agent) or `network:router_interface` (router interface).", + }, + "status": { + "type": "string", + "description": "The port status. Values are `ACTIVE`, `DOWN`, `BUILD` and `ERROR`.", }, }, }