{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://labrador-kennel.cspray.io/schemas/configuration.schema.json",
    "title": "Labrador Configuration",
    "description": "Schema to ensure that a JSON based configuration provides valid values.",
    "type": "object",
    "properties": {
        "labrador": {
            "type": "object",
            "properties": {
                "logging": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "description": "The name of your application's logs",
                            "type": "string",
                            "minLength": 1
                        },
                        "outputPath": {
                            "description": "The resource path that your logs will stream to.",
                            "type": "string",
                            "minLength": 1
                        }
                    },
                    "required": [
                        "name",
                        "outputPath"
                    ]
                },
                "injectorProviderPath": {
                    "description": "A file path that returns a callback that accepts a Configuration instance and returns an Injector.",
                    "type": "string"
                },
                "plugins": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "required": [
                "logging",
                "injectorProviderPath",
                "plugins"
            ]
        }
    },
    "required": [
        "labrador"
    ]
}