{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "additionalProperties": false,
  "definitions": {
    "generator": {
      "type": "object",
      "additionalProperties": false,
      "required": ["name"],
      "properties": {
        "name": {
          "enum": ["CSharp", "TsInterfaceFromDto"]
        },
        "options": {
          "description": "Generators are loosely coupled. Options are passed as a string dictionary. Only strings here sorry.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  },
  "description": "A configuration file for Queryfirst (https://queryfirst.net), named qfconfig.json",
  "id": "https://json.schemastore.org/qfconfig.json",
  "properties": {
    "defaultConnection": {
      "type": "string"
    },
    "provider": {
      "enum": [
        "Microsoft.Data.SqlClient",
        "MySql.Data.MySqlClient",
        "Npgsql",
        "System.Data.SqlClient"
      ]
    },
    "generators": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/generator"
      }
    },
    "connectEditor2DB": {
      "type": "boolean"
    },
    "helperAssemblies": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "makeSelfTest": {
      "type": "boolean",
      "description": "Should QueryFirst add a selfTest method to the generated code? You will need add xunit and QueryFirst.CoreLib nugets to your project."
    },
    "repoSuffix": {
      "type": "string",
      "description": "Suffix to append to the query base name to get the generated repository class name"
    },
    "dtoSuffix": {
      "type": "string",
      "description": "Suffix to append to the query base name to get the result class name"
    }
  },
  "type": "object"
}