From 2780a88d744453062fe4b61b2eabb33cfdc2bc28 Mon Sep 17 00:00:00 2001 From: Ian Allen Date: Wed, 17 Jan 2024 09:57:16 -0400 Subject: [PATCH] Move Direction as an reference object in the open api specification. --- .../main/java/org/fao/geonet/api/records/model/Direction.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/src/main/java/org/fao/geonet/api/records/model/Direction.java b/services/src/main/java/org/fao/geonet/api/records/model/Direction.java index 5434beeb525..5fe3746c9e0 100644 --- a/services/src/main/java/org/fao/geonet/api/records/model/Direction.java +++ b/services/src/main/java/org/fao/geonet/api/records/model/Direction.java @@ -22,6 +22,9 @@ */ package org.fao.geonet.api.records.model; +import io.swagger.v3.oas.annotations.media.Schema; + +@Schema(enumAsRef = true) public enum Direction { up, down }