Skip to content

Commit ce9775a

Browse files
committed
GQL: Allow to specify schema format in metadata event
1 parent c89dd13 commit ce9775a

3 files changed

Lines changed: 95 additions & 93 deletions

File tree

resources/schema.gql

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3738,14 +3738,8 @@ type SetAttachments {
37383738
attachments: Attachments!
37393739
}
37403740

3741-
"""
3742-
Specifies the complete schema of Data Slices added to the Dataset following
3743-
this event.
3744-
3745-
See: https://github.com/kamu-data/open-data-fabric/blob/master/open-data-fabric.md#setdataschema-schema
3746-
"""
37473741
type SetDataSchema {
3748-
schema: DataSchema!
3742+
schema(format: DataSchemaFormat): DataSchema!
37493743
}
37503744

37513745
interface SetDatasetVisibilityResult {

src/adapter/graphql/src/scalars/metadata.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::queries::Account;
1919
// MetadataBlockExtended
2020
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2121

22-
#[derive(Debug, SimpleObject, PartialEq, Eq)]
22+
#[derive(Debug, SimpleObject)]
2323
#[graphql(complex)]
2424
pub struct MetadataBlockExtended {
2525
#[graphql(skip)]
@@ -69,7 +69,7 @@ impl MetadataBlockExtended {
6969
// EncodedBlock
7070
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7171

72-
#[derive(Debug, SimpleObject, PartialEq, Eq)]
72+
#[derive(Debug, SimpleObject)]
7373
pub struct EncodedBlock {
7474
pub encoding: MetadataManifestFormat,
7575
pub content: String,

0 commit comments

Comments
 (0)