From 798d2b96d2fa9f02d56a825bd50c627320fa5988 Mon Sep 17 00:00:00 2001 From: Nicholas Bruce Date: Sat, 20 Dec 2025 20:08:43 -0800 Subject: [PATCH 1/2] fix(sigmf-schema.json): allow global.properties.core:sample_rate to be any number greater than 0 See https://github.com/sigmf/SigMF/issues/339 for discussion. There are cases where the sample rate of a system is less than 1 second. This change makes use of the JSON schema exclusiveMinimum keyword on ranges. --- sigmf-schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigmf-schema.json b/sigmf-schema.json index 1fb7cdd..364716a 100644 --- a/sigmf-schema.json +++ b/sigmf-schema.json @@ -30,7 +30,7 @@ }, "core:sample_rate": { "description": "The sample rate of the signal in samples per second.", - "minimum": 1, + "exclusiveMinimum": 0, "maximum": 1000000000000, "type": "number" }, @@ -323,4 +323,4 @@ } }, "additionalProperties": false -} +} \ No newline at end of file From afea1d41172a4a27d6398b78969b27935804c4f5 Mon Sep 17 00:00:00 2001 From: Teque5 Date: Sun, 21 Dec 2025 14:01:47 -0800 Subject: [PATCH 2/2] increment to v1.2.6 --- CITATION.cff | 2 +- sigmf-schema.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index e641330..e353644 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,7 +2,7 @@ cff-version: 1.0.3 authors: - name: The GNU Radio Foundation, Inc. title: The Signal Metadata Format (SigMF) -version: 1.2.5 +version: 1.2.6 doi: 10.5281/zenodo.1418396 date-released: 2025-05-16 license: CC-BY-SA-4.0 diff --git a/sigmf-schema.json b/sigmf-schema.json index 364716a..1328daf 100644 --- a/sigmf-schema.json +++ b/sigmf-schema.json @@ -1,5 +1,5 @@ { - "$id": "https://raw.githubusercontent.com/sigmf/SigMF/v1.2.5/sigmf-schema.json", + "$id": "https://raw.githubusercontent.com/sigmf/SigMF/v1.2.6/sigmf-schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Schema for SigMF Meta Files", "description": "SigMF specifies a way to describe sets of recorded digital signal samples with metadata written in JSON. SigMF can be used to describe general information about a collection of samples, the characteristics of the system that generated the samples, features of signals themselves, and the relationship between different recordings.", @@ -323,4 +323,4 @@ } }, "additionalProperties": false -} \ No newline at end of file +}