Skip to content

Commit

Permalink
Add duration field to instrument component
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Sep 10, 2024
1 parent 23c3f47 commit 3e54166
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java/1.21.2/src/schemas/Components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ export function initComponentsSchemas(schemas: SchemaRegistry, collections: Coll
type: 'object',
node: ObjectNode({
sound_event: StringNode(),
use_duration: NumberNode({ integer: true, min: 1 }),
range: NumberNode({ min: 1 }),
duration: Reference('text_component'),
use_duration: NumberNode({ min: 0 }),
range: NumberNode({ min: 0 }),
}, { context: 'instrument' }),
},
], { context: 'data_component.instrument' }),
Expand Down

0 comments on commit 3e54166

Please sign in to comment.