{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/iqrfRepositoryConfig.json",
    "type": "object",
    "title": "IQRF repository configuration",
    "required": [
        "apiEndpoint",
        "credentials"
    ],
    "additionalProperties": false,
    "properties": {
        "apiEndpoint": {
            "title": "Repository API endpoint",
            "type": "string",
            "example": "https://repository.iqrfalliance.org/api"
        },
        "credentials": {
            "title": "Repository authentication credentials",
            "type": "object",
            "required": [
                "username",
                "password"
            ],
            "additionalProperties": false,
            "properties": {
                "username": {
                    "title": "Username",
                    "type": [
                        "string",
                        "null"
                    ],
                    "example": "user"
                },
                "password": {
                    "title": "Password",
                    "type": [
                        "string",
                        "null"
                    ],
                    "example": "pass"
                }
            }
        }
    }
}
