From e3b760b5aa874af777a8975f1434326f7e9e29a8 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Fri, 1 Mar 2024 14:27:36 -0500 Subject: [PATCH] Add item types to all arrays --- gcn/notices/core/Distance.schema.json | 3 +++ gcn/notices/core/Duration.schema.json | 6 ++++++ gcn/notices/core/Event.schema.json | 6 ++++++ gcn/notices/core/HardnessRatio.schema.json | 9 +++++++++ gcn/notices/core/Redshift.schema.json | 3 +++ gcn/notices/core/Reporter.schema.json | 3 +++ gcn/notices/core/Statistics.schema.json | 6 ++++++ gcn/notices/core/spectral/GammaRay.schema.json | 18 ++++++++++++++++++ .../icecube/lvk_nu_track_search.schema.json | 10 ++++++++-- 9 files changed, 62 insertions(+), 2 deletions(-) diff --git a/gcn/notices/core/Distance.schema.json b/gcn/notices/core/Distance.schema.json index da415349..dabf64c3 100644 --- a/gcn/notices/core/Distance.schema.json +++ b/gcn/notices/core/Distance.schema.json @@ -11,6 +11,9 @@ }, "luminosity_distance_error": { "type": "array", + "items": { + "type": "number" + }, "maxItems": 2, "description": "Luminosity distance uncertainty [Mpc, 1-sigma], with optional asymmetric uncertainty" } diff --git a/gcn/notices/core/Duration.schema.json b/gcn/notices/core/Duration.schema.json index 6de3162a..ada744a3 100644 --- a/gcn/notices/core/Duration.schema.json +++ b/gcn/notices/core/Duration.schema.json @@ -10,6 +10,9 @@ }, "t90_error": { "type": "array", + "items": { + "type": "number" + }, "maxItems": 2, "description": "1-sigma uncertainty of the T90 duration [s], with asymmetric statistical errors taken into account" }, @@ -19,6 +22,9 @@ }, "t50_error": { "type": "array", + "items": { + "type": "number" + }, "maxItems": 2, "description": "1-sigma uncertainty of the T50 duration [s], with asymmetric statistical errors taken into account" } diff --git a/gcn/notices/core/Event.schema.json b/gcn/notices/core/Event.schema.json index aaa4ac27..2004c38d 100644 --- a/gcn/notices/core/Event.schema.json +++ b/gcn/notices/core/Event.schema.json @@ -7,10 +7,16 @@ "properties": { "event_name": { "type": "array", + "items": { + "type": "string" + }, "description": "Name of the event (ex: GRB 170817A, GW170817, AT2017gfo, SSS 17a)" }, "id": { "type": "array", + "items": { + "oneOf": [{ "type": "string" }, { "type": "number" }] + }, "description": "Instrument-specific trigger ID (ex: bn230313485 (Fermi), 1159327 (Swift)) or alternate ID" }, "data_archive_page": { diff --git a/gcn/notices/core/HardnessRatio.schema.json b/gcn/notices/core/HardnessRatio.schema.json index 06eb6a92..d2940468 100644 --- a/gcn/notices/core/HardnessRatio.schema.json +++ b/gcn/notices/core/HardnessRatio.schema.json @@ -11,17 +11,26 @@ }, "hardness_ratio_error": { "type": "array", + "items": { + "type": "number" + }, "maxItems": 2, "description": "ratio of flux between high and low energy bands, with asymmetric statistical errors taken into account" }, "energy_range_soft": { "type": "array", + "items": { + "type": "number" + }, "description": "Energy range [keV] used in soft band of hardness ratio", "minItems": 2, "maxItems": 2 }, "energy_range_hard": { "type": "array", + "items": { + "type": "number" + }, "description": "Energy range [keV] used in hard band of hardness ratio", "minItems": 2, "maxItems": 2 diff --git a/gcn/notices/core/Redshift.schema.json b/gcn/notices/core/Redshift.schema.json index 3a3bd55b..0b79d516 100644 --- a/gcn/notices/core/Redshift.schema.json +++ b/gcn/notices/core/Redshift.schema.json @@ -11,6 +11,9 @@ }, "redshift_error": { "type": "array", + "items": { + "type": "number" + }, "maxItems": 2, "description": "Error in redshift, array for asymmetric statistical errors" }, diff --git a/gcn/notices/core/Reporter.schema.json b/gcn/notices/core/Reporter.schema.json index 9e7ef282..1161567a 100644 --- a/gcn/notices/core/Reporter.schema.json +++ b/gcn/notices/core/Reporter.schema.json @@ -35,6 +35,9 @@ }, "filter": { "type": "array", + "items": { + "type": "string" + }, "description": "Optional filter name, as used in optical observations" } } diff --git a/gcn/notices/core/Statistics.schema.json b/gcn/notices/core/Statistics.schema.json index 88c7270e..f818596d 100644 --- a/gcn/notices/core/Statistics.schema.json +++ b/gcn/notices/core/Statistics.schema.json @@ -19,6 +19,9 @@ }, "rate_energy_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Low and High energy bounds used in rate signal to noise ratio calculation, if not parsed in Reporter.schema.json, default unit is keV" @@ -33,6 +36,9 @@ }, "image_energy_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Low and High energy bounds used in image signal to noise ratio calculation, if not parsed in Reporter.schema.json, default unit is keV" diff --git a/gcn/notices/core/spectral/GammaRay.schema.json b/gcn/notices/core/spectral/GammaRay.schema.json index 0283b7c9..03864ae0 100644 --- a/gcn/notices/core/spectral/GammaRay.schema.json +++ b/gcn/notices/core/spectral/GammaRay.schema.json @@ -23,6 +23,9 @@ }, "spectral_energy_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Low and High energy bounds used in spectral fit, if not parsed in Reporter.schema.json, default unit is keV" @@ -33,6 +36,9 @@ }, "hardness_ratio_energy_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Low and High energy bounds used for hardness ratio, if not parsed in Reporter.schema.json, default unit is keV" @@ -55,12 +61,18 @@ }, "flux_energy_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Low and High energy bounds used in flux calculation, if not parsed in Reporter.schema.json, default unit is keV" }, "flux_time_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Start and stop time stamps in array as used in flux calculation, measured since trigger [s]" @@ -72,12 +84,18 @@ }, "fluence_energy_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Low and High energy bounds used in fluence calculation, if not parsed in Reporter.schema.json, default unit is keV" }, "fluence_time_range": { "type": "array", + "items": { + "type": "number" + }, "minItems": 2, "maxItems": 2, "description": "Start and stop time stamps in array as used in fluence calculation, measured since trigger [s]" diff --git a/gcn/notices/icecube/lvk_nu_track_search.schema.json b/gcn/notices/icecube/lvk_nu_track_search.schema.json index 94d50a24..8f21148b 100644 --- a/gcn/notices/icecube/lvk_nu_track_search.schema.json +++ b/gcn/notices/icecube/lvk_nu_track_search.schema.json @@ -53,11 +53,17 @@ "properties": { "flux_sensitivity": { "description": "Time integrated flux sensitivity range (min, max) [GeV cm^-2] assuming an E^-2 spectrum (E^2 dN/dE) found within the 90% region of GW map localization", - "type": "array" + "type": "array", + "items": { + "type": "number" + } }, "sensitive_energy_range": { "description": "Energy sensitivity range (lower, upper) [GeV] assuming an E^-2 spectrum (E^2 dN/dE)", - "type": "array" + "type": "array", + "items": { + "type": "number" + } } } },