diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-02 13:16:45 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-02 13:16:45 +0200 |
| commit | d4fec022c5e5ad38e7b5a488cb28e320ea1d6416 (patch) | |
| tree | 6d2b0badf3329ce0122b8f911a89d38a23cafbe5 | |
| parent | 07958ab26e94d5ab7e0873cc00d7beb9c417975e (diff) | |
api: Fix OpenAPI topology schema
This change addresses some issues in the OpenAPI schema for the
datacenter topology.
| -rw-r--r-- | opendc-web/opendc-web-api/static/schema.yml | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/opendc-web/opendc-web-api/static/schema.yml b/opendc-web/opendc-web-api/static/schema.yml index 99e88095..6e0bddfd 100644 --- a/opendc-web/opendc-web-api/static/schema.yml +++ b/opendc-web/opendc-web-api/static/schema.yml @@ -1153,6 +1153,10 @@ components: object: type: object properties: + _id: + type: string + name: + type: string capacity: type: integer powerCapacityW: @@ -1162,52 +1166,70 @@ components: items: type: object properties: + _id: + type: string position: type: integer - cpuItems: + cpus: type: array items: type: object properties: + _id: + type: string name: type: string clockRateMhz: type: integer numberOfCores: type: integer - gpuItems: + energyConsumptionW: + type: integer + gpus: type: array items: type: object properties: + _id: + type: string name: type: string clockRateMhz: type: integer numberOfCores: type: integer - memoryItems: + energyConsumptionW: + type: integer + memories: type: array items: type: object properties: + _id: + type: string name: type: string speedMbPerS: type: integer sizeMb: type: integer - storageItems: + energyConsumptionW: + type: integer + storages: type: array items: - type: integer + type: object properties: + _id: + type: string name: type: string speedMbPerS: type: integer sizeMb: type: integer + energyConsumptionW: + type: integer Portfolio: type: object properties: |
