From f7366c87ce6da4e40bbeb09ad8255470d5096b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 31 Aug 2022 08:58:05 +0200 Subject: [PATCH] OAPI: include "short version" in the `FlamencoVersion` schema Include a `shortversion` property in the `FlamencoVersion` schema, which will just be the version number with the release phase (and not the git hash, the number of commits since the last tag, and the `-dirty` suffix). --- pkg/api/flamenco-openapi.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/api/flamenco-openapi.yaml b/pkg/api/flamenco-openapi.yaml index 34bba913..393947c4 100644 --- a/pkg/api/flamenco-openapi.yaml +++ b/pkg/api/flamenco-openapi.yaml @@ -1097,8 +1097,13 @@ components: type: object properties: "version": { type: string } + "shortversion": { type: string } "name": { type: string } - required: [version, name] + required: [version, shortversion, name] + example: + version: 3.0-beta1-56-g4761e3d7-dirty + shortversion: 3.0-beta1 + name: Your Manager ManagerConfiguration: type: object