From 70c1a3eaa3d1c88f4b86f0df86d0d362ad1f930c Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Tue, 14 Apr 2020 11:03:49 +0200 Subject: [PATCH] feat: annotate SCThing uid and url as filterable --- src/general/uuid.ts | 1 + src/things/abstract/thing.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/general/uuid.ts b/src/general/uuid.ts index 22ad2ea4..37d9a6b7 100644 --- a/src/general/uuid.ts +++ b/src/general/uuid.ts @@ -15,6 +15,7 @@ /** * Universally unique identifier of the thing * + * @filterable * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ * @see http://stackoverflow.com/questions/7905929/how-to-test-valid-uuid-guid */ diff --git a/src/things/abstract/thing.ts b/src/things/abstract/thing.ts index 408d527d..dd429389 100644 --- a/src/things/abstract/thing.ts +++ b/src/things/abstract/thing.ts @@ -102,6 +102,8 @@ export interface SCThingWithoutReferences { uid: SCUuid; /** * URL of the thing + * + * @filterable */ url?: string; }