Add Go transcript and glossary schemas
This commit is contained in:
1
internal/core/schema/testdata/glossary_malformed.yaml
vendored
Normal file
1
internal/core/schema/testdata/glossary_malformed.yaml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
glossary: [
|
||||
2
internal/core/schema/testdata/glossary_missing_fields.yaml
vendored
Normal file
2
internal/core/schema/testdata/glossary_missing_fields.yaml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
glossary:
|
||||
- name: Jesters
|
||||
9
internal/core/schema/testdata/glossary_valid.yaml
vendored
Normal file
9
internal/core/schema/testdata/glossary_valid.yaml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
glossary:
|
||||
- name: Jesters
|
||||
category: faction
|
||||
summary: A faction name.
|
||||
- name: Popov
|
||||
aliases:
|
||||
- Hrank
|
||||
category: character
|
||||
summary: A character name.
|
||||
17
internal/core/schema/testdata/transcript_bare_array.json
vendored
Normal file
17
internal/core/schema/testdata/transcript_bare_array.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Alice",
|
||||
"start": 0.0,
|
||||
"end": 1.5,
|
||||
"text": "Hello world."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"speaker": "Bob",
|
||||
"start": 2.0,
|
||||
"end": 3.5,
|
||||
"text": "Hi there.",
|
||||
"categories": ["greeting"]
|
||||
}
|
||||
]
|
||||
16
internal/core/schema/testdata/transcript_duplicate_ids.json
vendored
Normal file
16
internal/core/schema/testdata/transcript_duplicate_ids.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Alice",
|
||||
"start": 0.0,
|
||||
"end": 1.5,
|
||||
"text": "Hello world."
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Bob",
|
||||
"start": 2.0,
|
||||
"end": 3.5,
|
||||
"text": "Hi there."
|
||||
}
|
||||
]
|
||||
1
internal/core/schema/testdata/transcript_empty_array.json
vendored
Normal file
1
internal/core/schema/testdata/transcript_empty_array.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
9
internal/core/schema/testdata/transcript_empty_speaker.json
vendored
Normal file
9
internal/core/schema/testdata/transcript_empty_speaker.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "",
|
||||
"start": 0.0,
|
||||
"end": 1.5,
|
||||
"text": "Hello world."
|
||||
}
|
||||
]
|
||||
9
internal/core/schema/testdata/transcript_empty_text.json
vendored
Normal file
9
internal/core/schema/testdata/transcript_empty_text.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Alice",
|
||||
"start": 0.0,
|
||||
"end": 1.5,
|
||||
"text": ""
|
||||
}
|
||||
]
|
||||
9
internal/core/schema/testdata/transcript_invalid_times.json
vendored
Normal file
9
internal/core/schema/testdata/transcript_invalid_times.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Alice",
|
||||
"start": 5.0,
|
||||
"end": 1.5,
|
||||
"text": "Hello world."
|
||||
}
|
||||
]
|
||||
1
internal/core/schema/testdata/transcript_malformed.json
vendored
Normal file
1
internal/core/schema/testdata/transcript_malformed.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"segments":[{"id":1,"text":"oops"}
|
||||
14
internal/core/schema/testdata/transcript_no_ids.json
vendored
Normal file
14
internal/core/schema/testdata/transcript_no_ids.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"speaker": "Alice",
|
||||
"start": 0.0,
|
||||
"end": 1.5,
|
||||
"text": "Hello world."
|
||||
},
|
||||
{
|
||||
"speaker": "Bob",
|
||||
"start": 2.0,
|
||||
"end": 3.5,
|
||||
"text": "Hi there."
|
||||
}
|
||||
]
|
||||
9
internal/core/schema/testdata/transcript_non_sequential_id.json
vendored
Normal file
9
internal/core/schema/testdata/transcript_non_sequential_id.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"id": 2,
|
||||
"speaker": "Alice",
|
||||
"start": 0.0,
|
||||
"end": 1.5,
|
||||
"text": "Hello world."
|
||||
}
|
||||
]
|
||||
19
internal/core/schema/testdata/transcript_object.json
vendored
Normal file
19
internal/core/schema/testdata/transcript_object.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"segments": [
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Alice",
|
||||
"start": 0.0,
|
||||
"end": 1.5,
|
||||
"text": "Hello world."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"speaker": "Bob",
|
||||
"start": 2.0,
|
||||
"end": 3.5,
|
||||
"text": "Hi there.",
|
||||
"categories": ["greeting"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user