Skip to content

Commit

Permalink
chore: fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
v3g42 committed Oct 9, 2023
1 parent b6ed058 commit ff37d19
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 38 deletions.
10 changes: 5 additions & 5 deletions dozer-types/src/models/ingestion_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub enum GrpcConfigSchemas {
Path(String),
}

#[derive(Debug, Serialize, Deserialize, Eq, PartialEq, Clone, Hash, JsonSchema, Default)]
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq, Clone, Hash, JsonSchema)]
#[schemars(example = "Self::example")]

pub struct EthConfig {
Expand Down Expand Up @@ -337,11 +337,11 @@ impl SchemaExample for S3Storage {
Self {
details: s3_details,
tables: vec![Table {
config: Some(TableConfig::CSV(CsvConfig {
config: TableConfig::CSV(CsvConfig {
path: "path/to/file".to_owned(),
extension: ".csv".to_owned(),
marker_extension: None,
})),
}),
name: "table_name".to_owned(),
}],
}
Expand Down Expand Up @@ -494,11 +494,11 @@ impl SchemaExample for LocalStorage {
path: "path".to_owned(),
},
tables: vec![Table {
config: Some(TableConfig::CSV(CsvConfig {
config: TableConfig::CSV(CsvConfig {
path: "path/to/table".to_owned(),
extension: ".csv".to_owned(),
marker_extension: None,
})),
}),
name: "table_name".to_owned(),
}],
}
Expand Down
35 changes: 6 additions & 29 deletions json_schemas/connections.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,9 @@
{
"provider": {
"Log": {
"contracts": [],
"filter": {
"addresses": [],
"from_block": 0,
"to_block": null,
"topics": []
"to_block": null
},
"wss_url": ""
}
Expand Down Expand Up @@ -127,7 +124,6 @@
"type": "object",
"properties": {
"addresses": {
"default": [],
"type": "array",
"items": {
"type": "string"
Expand All @@ -150,7 +146,6 @@
"minimum": 0.0
},
"topics": {
"default": [],
"type": "array",
"items": {
"type": "string"
Expand All @@ -165,7 +160,6 @@
],
"properties": {
"contracts": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/EthContract"
Expand Down Expand Up @@ -543,18 +537,12 @@
"Table": {
"type": "object",
"required": [
"config",
"name"
],
"properties": {
"config": {
"anyOf": [
{
"$ref": "#/definitions/TableConfig"
},
{
"type": "null"
}
]
"$ref": "#/definitions/TableConfig"
},
"name": {
"type": "string"
Expand Down Expand Up @@ -711,18 +699,12 @@
"Table": {
"type": "object",
"required": [
"config",
"name"
],
"properties": {
"config": {
"anyOf": [
{
"$ref": "#/definitions/TableConfig"
},
{
"type": "null"
}
]
"$ref": "#/definitions/TableConfig"
},
"name": {
"type": "string"
Expand Down Expand Up @@ -880,12 +862,7 @@
],
"properties": {
"log_options": {
"default": {},
"allOf": [
{
"$ref": "#/definitions/NestedDozerLogOptions"
}
]
"$ref": "#/definitions/NestedDozerLogOptions"
},
"url": {
"type": "string"
Expand Down
5 changes: 1 addition & 4 deletions json_schemas/dozer.json
Original file line number Diff line number Diff line change
Expand Up @@ -726,12 +726,9 @@
{
"provider": {
"Log": {
"contracts": [],
"filter": {
"addresses": [],
"from_block": 0,
"to_block": null,
"topics": []
"to_block": null
},
"wss_url": ""
}
Expand Down

0 comments on commit ff37d19

Please sign in to comment.