From fabcc1dfcd236d13e273e4d594c8a4388517f07e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 9 Apr 2024 22:33:41 +0200 Subject: [PATCH] Changed time-signature-unit to use an enum with defined values. This fixes #328. Previously we used an open-ended text field to describe the allowed values for time-signature-unit, and now we use a proper enum. --- docgenerator/data.json | 74 ++++++++++++++++++- .../objects/time-signature-unit/index.html | 52 ++++++++++++- docs/mnx-schema.json | 10 +++ 3 files changed, 134 insertions(+), 2 deletions(-) diff --git a/docgenerator/data.json b/docgenerator/data.json index 93dfdf25..f9a081ff 100644 --- a/docgenerator/data.json +++ b/docgenerator/data.json @@ -3246,7 +3246,7 @@ "slug": "time-signature-unit", "schema": 1, "object_type": 4, - "description": "1, 2, 4, 8, 16" + "description": "" } }, { @@ -6426,6 +6426,78 @@ "description": "" } }, +{ + "model": "spec.jsonobjectenum", + "pk": 57, + "fields": { + "parent": 129, + "name": "1", + "description": "" + } +}, +{ + "model": "spec.jsonobjectenum", + "pk": 58, + "fields": { + "parent": 129, + "name": "2", + "description": "" + } +}, +{ + "model": "spec.jsonobjectenum", + "pk": 59, + "fields": { + "parent": 129, + "name": "4", + "description": "" + } +}, +{ + "model": "spec.jsonobjectenum", + "pk": 60, + "fields": { + "parent": 129, + "name": "8", + "description": "" + } +}, +{ + "model": "spec.jsonobjectenum", + "pk": 61, + "fields": { + "parent": 129, + "name": "16", + "description": "" + } +}, +{ + "model": "spec.jsonobjectenum", + "pk": 62, + "fields": { + "parent": 129, + "name": "32", + "description": "" + } +}, +{ + "model": "spec.jsonobjectenum", + "pk": 63, + "fields": { + "parent": 129, + "name": "64", + "description": "" + } +}, +{ + "model": "spec.jsonobjectenum", + "pk": 64, + "fields": { + "parent": 129, + "name": "128", + "description": "" + } +}, { "model": "spec.exampledocument", "pk": 1, diff --git a/docs/mnx-reference/objects/time-signature-unit/index.html b/docs/mnx-reference/objects/time-signature-unit/index.html index 9e814ea1..5b68ce67 100644 --- a/docs/mnx-reference/objects/time-signature-unit/index.html +++ b/docs/mnx-reference/objects/time-signature-unit/index.html @@ -52,11 +52,61 @@

The time signature unit object

Type: Number

-1, 2, 4, 8, 16 +

Allowed values:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ValueDescription
1
128
16
2
32
4
64
8
diff --git a/docs/mnx-schema.json b/docs/mnx-schema.json index 0d440bce..7b8dcc21 100644 --- a/docs/mnx-schema.json +++ b/docs/mnx-schema.json @@ -687,6 +687,16 @@ "$ref": "#/$defs/positive-integer" }, "unit": { + "enum": [ + 1, + 2, + 4, + 8, + 16, + 32, + 64, + 128 + ], "type": "integer" } },