From 397f7c9dee7d898a071765ca3ff69c32b8cb1edc Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Sun, 5 May 2024 18:03:35 -0700 Subject: [PATCH] add state schema --- .../resource/schemas/processtransition.schema.json | 9 +++++++++ .../resource/schemas/storagetransition.schema.json | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 internal/resource/schemas/processtransition.schema.json create mode 100644 internal/resource/schemas/storagetransition.schema.json diff --git a/internal/resource/schemas/processtransition.schema.json b/internal/resource/schemas/processtransition.schema.json new file mode 100644 index 0000000..9e3ed49 --- /dev/null +++ b/internal/resource/schemas/processtransition.schema.json @@ -0,0 +1,9 @@ +{ + "$id": "processtransition.schema.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "processtransition", + "type": "string", + "description": "Process state transition", + "enum": [ "created", "restarting", "running", "paused", "exited", "dead" ] +} + diff --git a/internal/resource/schemas/storagetransition.schema.json b/internal/resource/schemas/storagetransition.schema.json new file mode 100644 index 0000000..80fe749 --- /dev/null +++ b/internal/resource/schemas/storagetransition.schema.json @@ -0,0 +1,10 @@ +{ + "$id": "storagetransition.schema.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "storagetransition", + "type": "string", + "description": "Storage state transition", + "enum": [ "absent", "present" ] + } +} +