From 2094b48e4b866564619a79352873de1cbfcfcac3 Mon Sep 17 00:00:00 2001 From: Rick Mouritzen Date: Wed, 13 Mar 2024 16:28:05 -0700 Subject: [PATCH] Add array of primitives that are observable to test schema --- test/test_ocsf_schema/dictionary.json | 7 +++++++ test/test_ocsf_schema/events/beta.json | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/test/test_ocsf_schema/dictionary.json b/test/test_ocsf_schema/dictionary.json index d342397..bcc79d3 100644 --- a/test/test_ocsf_schema/dictionary.json +++ b/test/test_ocsf_schema/dictionary.json @@ -87,6 +87,13 @@ "description": "An entity's thingy. (From base dictionary attribute.)", "type": "entity_thing_t" }, + "gammas": { + "caption": "Gammas", + "description": "List of gamma values. A gamma is a gamma, which is a gamma, and so on.", + "is_array": true, + "type": "integer_t", + "observable": 10 + }, "hidden_thing": { "caption": "Hidden Thing", "description": "A hidden thing. Another attribute for testing.", diff --git a/test/test_ocsf_schema/events/beta.json b/test/test_ocsf_schema/events/beta.json index 85da05a..c183da5 100644 --- a/test/test_ocsf_schema/events/beta.json +++ b/test/test_ocsf_schema/events/beta.json @@ -4,11 +4,14 @@ "description": "The Beta example event class.", "name": "beta", "extends": "hidden", - "uid": 2, + "uid": 3, "profiles": [], "attributes": { "beta": { "requirement": "required" + }, + "gammas": { + "requirement": "optional" } }, "observables": {