From ca6c2d926ce9010247d1ab7ff4f341b7e7078402 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Fri, 30 Aug 2024 13:17:41 +0200 Subject: [PATCH] feat(office): default descriptions for reusable office and offices fields --- studio/schemas/objects/office.ts | 1 + studio/schemas/objects/offices.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/studio/schemas/objects/office.ts b/studio/schemas/objects/office.ts index b2dd48472..bd4f9030a 100644 --- a/studio/schemas/objects/office.ts +++ b/studio/schemas/objects/office.ts @@ -4,6 +4,7 @@ import { officeId } from "../documents/office"; const office = defineField({ name: "office", title: "Office", + description: "Reference to a company office", type: "reference", to: [{ type: officeId }], }); diff --git a/studio/schemas/objects/offices.ts b/studio/schemas/objects/offices.ts index 22d0190db..c906f4459 100644 --- a/studio/schemas/objects/offices.ts +++ b/studio/schemas/objects/offices.ts @@ -4,6 +4,7 @@ import office from "./office"; const offices = defineField({ name: "offices", title: "Offices", + description: "List of company offices", type: "array", of: [office], validation: (Rule) => Rule.required().min(1).unique(),