Skip to content

Commit

Permalink
feat: define graph data structure (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumachan-mis authored Dec 31, 2024
1 parent c59d2be commit 436fc48
Show file tree
Hide file tree
Showing 49 changed files with 1,854 additions and 208 deletions.
5 changes: 5 additions & 0 deletions docs/openapi/schemas/entity/graph/Graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ properties:
example: |
## Introduction
This is the introduction of the paper.
children:
type: array
items:
$ref: ./GraphChild.yaml
required:
- id
- name
- paragraph
- children
26 changes: 26 additions & 0 deletions docs/openapi/schemas/entity/graph/GraphChild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
type: object
description: GraphChild object
properties:
name:
type: string
maxLength: 100
description: Child node name of the graph
example: Study of Note Apps
relation:
type: string
description: Graph relation
example: part of
description:
type: string
maxLength: 400
description: Graph description
example: This is a part of the overview section.
children:
type: array
items:
$ref: ./GraphChild.yaml
required:
- name
- relation
- description
- children
17 changes: 17 additions & 0 deletions docs/openapi/schemas/entity/graph/GraphChildError.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
type: object
description: Error Message for GraphChild object
properties:
name:
type: string
description: Error message for graph child name
example: "graph child name is required, but got ''"
relation:
type: string
description: Error message for graph child relation
example: "graph child relation is required, but got ''"
description:
type: string
description: Error message for graph child description
example: "graph child description must be less than or equal to 400 bytes"
children:
$ref: ./GraphChildrenError.yaml
11 changes: 11 additions & 0 deletions docs/openapi/schemas/entity/graph/GraphChildrenError.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type: object
description: Error Message for GraphChild list
properties:
message:
type: string
description: Error message for overall of children
example: name of neighboring nodes must be unique, but got 'Background' duplicated
items:
type: array
items:
$ref: ./GraphChildError.yaml
5 changes: 5 additions & 0 deletions docs/openapi/schemas/entity/graph/GraphContent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ properties:
example: |
## Introduction
This is the introduction of the paper.
children:
type: array
items:
$ref: ./GraphChild.yaml
required:
- id
- paragraph
- children
2 changes: 2 additions & 0 deletions docs/openapi/schemas/entity/graph/GraphContentError.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ properties:
type: string
description: Error message for graph paragraph
example: graph paragraph must be less than or equal to 40000 bytes
children:
$ref: ./GraphChildrenError.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ properties:
example: |
## Introduction
This is the introduction of the paper.
children:
type: array
items:
$ref: ./GraphChild.yaml
required:
- paragraph
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ properties:
type: string
description: Error message for graph paragraph
example: graph paragraph must be less than or equal to 40000 bytes
children:
$ref: ./GraphChildrenError.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ type: object
description: Response Body for Graph Update API
properties:
graph:
$ref: ../../../entity/graph/GraphContent.yaml
$ref: ../../../entity/graph/Graph.yaml
required:
- graph
2 changes: 1 addition & 1 deletion fixtures/firebase-export-metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "13.22.1",
"version": "13.29.1",
"firestore": {
"version": "1.19.8",
"path": "firestore_export",
Expand Down
Binary file not shown.
Binary file modified fixtures/firestore_export/all_namespaces/all_kinds/output-0
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 436fc48

Please sign in to comment.