Skip to content

Commit ba68122

Browse files
bkioshnminikin
andauthored
fix(cat-gateway): add new category (#2684)
Signed-off-by: bkioshn <[email protected]> Co-authored-by: Oleksandr Prokhorenko <[email protected]>
1 parent f83a9e4 commit ba68122

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

catalyst-gateway/bin/src/service/api/documents/templates/data.rs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,25 @@ const EMPTY_JSON_OBJECT_BYTES: &[u8] = b"{}";
88
pub(crate) struct CategoryDocData(
99
/// ID and Version
1010
&'static str,
11+
/// Content bytes
12+
&'static [u8],
1113
);
1214
/// List of category documents, 12 categories for Fund 14.
1315
// TODO: Fix Content once it is added
1416
#[rustfmt::skip]
1517
pub(crate) const CATEGORY_DOCUMENTS: [CategoryDocData; 12] = [
16-
CategoryDocData("0194d490-30bf-7473-81c8-a0eaef369619"),
17-
CategoryDocData("0194d490-30bf-7043-8c5c-f0e09f8a6d8c"),
18-
CategoryDocData("0194d490-30bf-7e75-95c1-a6cf0e8086d9"),
19-
CategoryDocData("0194d490-30bf-7703-a1c0-83a916b001e7"),
20-
CategoryDocData("0194d490-30bf-79d1-9a0f-84943123ef38"),
21-
CategoryDocData("0194d490-30bf-706d-91c6-0d4707f74cdf"),
22-
CategoryDocData("0194d490-30bf-759e-b729-304306fbaa5e"),
23-
CategoryDocData("0194d490-30bf-7e27-b5fd-de3133b54bf6"),
24-
CategoryDocData("0194d490-30bf-7f9e-8a5d-91fb67c078f2"),
25-
CategoryDocData("0194d490-30bf-7676-9658-36c0b67e656e"),
26-
CategoryDocData("0194d490-30bf-7978-b031-7aa2ccc5e3fd"),
27-
CategoryDocData("0194d490-30bf-7d34-bba9-8498094bd627"),
18+
CategoryDocData("0194d490-30bf-7473-81c8-a0eaef369619", include_bytes!("./docs/category/f14_partner_product.schema.json")),
19+
CategoryDocData("0194d490-30bf-7043-8c5c-f0e09f8a6d8c", include_bytes!("./docs/category/f14_concepts.schema.json")),
20+
CategoryDocData("0194d490-30bf-7e75-95c1-a6cf0e8086d9", include_bytes!("./docs/category/f14_developers.schema.json")),
21+
CategoryDocData("0194d490-30bf-7703-a1c0-83a916b001e7", include_bytes!("./docs/category/f14_ecosystem.schema.json")),
22+
CategoryDocData("0194d490-30bf-79d1-9a0f-84943123ef38", EMPTY_JSON_OBJECT_BYTES),
23+
CategoryDocData("0194d490-30bf-706d-91c6-0d4707f74cdf", EMPTY_JSON_OBJECT_BYTES),
24+
CategoryDocData("0194d490-30bf-759e-b729-304306fbaa5e", EMPTY_JSON_OBJECT_BYTES),
25+
CategoryDocData("0194d490-30bf-7e27-b5fd-de3133b54bf6", EMPTY_JSON_OBJECT_BYTES),
26+
CategoryDocData("0194d490-30bf-7f9e-8a5d-91fb67c078f2", EMPTY_JSON_OBJECT_BYTES),
27+
CategoryDocData("0194d490-30bf-7676-9658-36c0b67e656e", EMPTY_JSON_OBJECT_BYTES),
28+
CategoryDocData("0194d490-30bf-7978-b031-7aa2ccc5e3fd", EMPTY_JSON_OBJECT_BYTES),
29+
CategoryDocData("0194d490-30bf-7d34-bba9-8498094bd627", EMPTY_JSON_OBJECT_BYTES),
2830
];
2931

3032
impl From<CategoryDocData> for SignedDocData {
@@ -33,7 +35,7 @@ impl From<CategoryDocData> for SignedDocData {
3335
id: value.0,
3436
ver: value.0,
3537
doc_type: catalyst_signed_doc::doc_types::CATEGORY_DOCUMENT_UUID_TYPE,
36-
content: EMPTY_JSON_OBJECT_BYTES,
38+
content: value.1,
3739
category_id: None,
3840
}
3941
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../../docs/src/architecture/08_concepts/document_templates/proposal/F14-Generic/0194d490-30bf-7043-8c5c-f0e09f8a6d8c.schema.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../../docs/src/architecture/08_concepts/document_templates/proposal/F14-Generic/0194d490-30bf-7e75-95c1-a6cf0e8086d9.schema.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../../docs/src/architecture/08_concepts/document_templates/proposal/F14-Generic/0194d490-30bf-7703-a1c0-83a916b001e7.schema.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../../docs/src/architecture/08_concepts/document_templates/proposal/F14-Generic/0194d490-30bf-7473-81c8-a0eaef369619.schema.json

0 commit comments

Comments
 (0)