You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: json_schema_helper.rs
    path of file: ./repos/dozer/dozer-types/src/models
    
    the code of the file until where you have to start completion: use schemars::{schema::RootSchema, schema_for};
use serde::{Deserialize, Serialize};

use crate::models::ingestion_types;

use super::{config::Config, connection::PostgresConfig};

#[derive(Debug, Serialize, Deserialize)]
pub struct Schema {
    pub name: String,
    pub schema: RootSchema,
}
pub fn get_dozer_schema() -> Result<String, serde_json::Error> {
    let schema = schema_for!(Config);
    let schema_json = serde_json::to_string_pretty(&schema)?;
    Ok(schema_json)
}

pub fn get_connection_schemas() -> Result<String, serde_json::Error> {
   
    
pub fn get_connection_schemas() -> Result<String, serde_json::Error> {
    let mut schemas = vec![];

    let configs = [
        ("postgres", schema_for!(PostgresConfig)),
        ("ethereum", schema_for!(ingestion_types::EthConfig)),
        ("grpc", schema_for!(ingestion_types::GrpcConfig)),
        ("snowflake", schema_for!(ingestion_types::SnowflakeConfig)),
        ("kafka", schema_for!(ingestion_types::KafkaConfig)),
        ("s3", schema_for!(ingestion_types::S3Storage)),
        ("local_storage", schema_for!(ingestion_types::LocalStorage)),
        ("deltalake", schema_for!(ingestion_types::DeltaLakeConfig)),
        ("mongodb", schema_for!(ingestion_types::MongodbConfig)),
        ("mysql", schema_for!(ingestion_types::MySQLConfig)),
        ("dozer", schema_for!(ingestion_types::NestedDozerConfig)),
    ];
    for (name, schema) in configs.iter() {
        schemas.push(Schema {
            name: name.to_string(),
            schema: schema.clone(),
        });
    }
    let schema_json = serde_json::to_string_pretty(&schemas)?;
    Ok(schema_json)
}