From 7ebabf03c4e96195588ffa4ca3f79c02b0825f62 Mon Sep 17 00:00:00 2001 From: Smruti Ranjan Senapati Date: Tue, 16 Jul 2024 17:24:52 +0530 Subject: [PATCH] fix(networks): fix device network schema --- riocli/jsonschema/schemas/network-schema.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/riocli/jsonschema/schemas/network-schema.yaml b/riocli/jsonschema/schemas/network-schema.yaml index 2c2116e1..366b94d9 100644 --- a/riocli/jsonschema/schemas/network-schema.yaml +++ b/riocli/jsonschema/schemas/network-schema.yaml @@ -65,8 +65,8 @@ definitions: runtime: enum: - device - deviceGUID: - "$ref": "#/definitions/uuid" + depends: + "$ref": "#/definitions/depends" networkInterface: type: string restartPolicy: @@ -74,7 +74,7 @@ definitions: default: always required: - - deviceGUID + - depends - networkInterface rosDistro: @@ -126,6 +126,15 @@ definitions: type: string pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + depends: + type: object + properties: + kind: + const: Device + default: Device + nameOrGUID: + type: string + resourceLimits: type: object properties: