Skip to content

Commit

Permalink
fix: certain fields are optional (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbcfd authored Feb 24, 2024
1 parent 50fd458 commit c04bde7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion it/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3'
services:
ceramic-service:
image: ceramicnetwork/js-ceramic:2.35.0-rc.0
image: ceramicnetwork/js-ceramic:5.1.0-rc.1
volumes:
- ./data:/root/.ceramic
ports:
Expand Down
7 changes: 5 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,11 @@ pub struct PageInfo {
#[serde(rename_all = "camelCase")]
pub struct QueryResponse {
/// Edges of query
#[serde(default)]
pub edges: Vec<QueryEdge>,
/// Pagination info
pub page_info: PageInfo,
#[serde(default)]
pub page_info: Option<PageInfo>,
}

/// Typed response to query
Expand All @@ -347,7 +349,8 @@ pub struct TypedQueryResponse<T> {
/// Documents from query
pub documents: Vec<TypedQueryDocument<T>>,
/// Pagination info
pub page_info: PageInfo,
#[serde(default)]
pub page_info: Option<PageInfo>,
}

/// Healthcheck request for http api
Expand Down

0 comments on commit c04bde7

Please sign in to comment.