Skip to content

Commit 0e5a6c4

Browse files
committed
Documented the proposed metadata format for the dirs in ksf.
1 parent 42b7e36 commit 0e5a6c4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

ksf_dir_meta_yaml.adoc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
= YAML-based metadata for Kaitai Struct Formats directories
2+
3+
[[rationale]]
4+
== Rationale
5+
It is needed to store some metadata for each directory in `kaitai_struc_formats` repo.
6+
7+
[[general]]
8+
== General
9+
10+
* YAML is used as a serialization format.
11+
12+
* `JSONSchema` will also be available.
13+
14+
[[metadata]]
15+
== Metadata dict
16+
There are 2 keys defined in a metadata dict:
17+
18+
* `short` for summary.
19+
20+
* `long` for more extended guidelines what goes into this dir and wat doesn't
21+
22+
All are mandatory.
23+
24+
[[tree]]
25+
== Directory tree metadata format
26+
27+
* The file path relative to the repo root is `_build/dirMeta.yml`
28+
29+
* Each dir name is a key in a YAML dictionary.
30+
31+
* Metadata dict is stored in mandatory `_` subkey.
32+
33+
[[tags]]
34+
== Format
35+
36+
* The file path relative to the repo root is `_build/tags.yml`
37+
38+
* Just a dict with keys that are tag names and values that are metadata dicts.

0 commit comments

Comments
 (0)