Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: certain fields are optional #11

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading