diff --git a/typespec/einnsyn.arkiv.models.tsp b/typespec/einnsyn.arkiv.models.tsp index 6c2c41e..9d59f12 100644 --- a/typespec/einnsyn.arkiv.models.tsp +++ b/typespec/einnsyn.arkiv.models.tsp @@ -157,6 +157,12 @@ namespace Enhet { @extension("x-idPrefix", "enh") model Enhet extends Base.Base { @visibility(Lifecycle.Read) entity: "Enhet"; + + /** + * A URL-friendly unique slug for the resource. + */ + @pattern("^[a-z0-9\\-]+$") slug?: string; + navn: string; navnNynorsk?: string; navnEngelsk?: string; @@ -233,7 +239,9 @@ namespace Journalpost { legacyFoelgsakenReferanse?: string[]; administrativEnhet?: string; administrativEnhetObjekt?: ExpandableField; - @visibility(Lifecycle.Read, Lifecycle.Update) saksmappe?: ExpandableField; + + @visibility(Lifecycle.Read, Lifecycle.Update) + saksmappe?: ExpandableField; } } @@ -336,6 +344,11 @@ namespace Mappe { * Mappe */ model Mappe extends ArkivBase.ArkivBase { + /** + * A URL-friendly unique slug for the resource. + */ + @pattern("^[a-z0-9\\-]+$") slug?: string; + /** * The title of the Mappe, with sensitive information redacted. */ @@ -347,7 +360,6 @@ namespace Mappe { offentligTittelSensitiv: string; @maxLength(1000) beskrivelse?: string; - noekkelord?: string; /** @@ -477,6 +489,11 @@ namespace Registrering { * Registrering */ model Registrering extends ArkivBase.ArkivBase { + /** + * A URL-friendly unique slug for the resource. + */ + @pattern("^[a-z0-9\\-]+$") slug?: string; + /** * The title of the resource, with sensitive information redacted. */