expressCart/config/baseSchema.json

151 lines
3.6 KiB
JSON

{
"properties": {
"cartTitle": {
"type": "string",
"default": "expressCart"
},
"cartDescription": {
"type": "string",
"default": "This is my expressCart"
},
"cartLogo": {
"type": "string"
},
"baseUrl": {
"type": "string",
"format": "uri-template",
"default": "http://localhost:1111"
},
"emailHost": {
"format": "uri-template",
"type": "string"
},
"emailPort": {
"type": "number",
"default": 587
},
"emailSecure": {
"type": "boolean",
"default": false
},
"emailUser": {
"type": "string"
},
"emailPassword": {
"type": "string"
},
"emailAddress": {
"type": "string",
"format": "email"
},
"menuEnabled": {
"type": "boolean",
"default": true
},
"productsPerRow": {
"type": "number",
"default": 3
},
"productsPerPage": {
"type": "number",
"default": 6
},
"menuTitle": {
"type": "string",
"default": "Menu"
},
"footerHtml": {
"type": "string",
"default": "<h4 class="text-center">Powered by expressCart</h4>"
},
"googleAnalytics": {
"type": "string"
},
"injectJs": {
"type": "string"
},
"customCss": {
"type": "string"
},
"currencySymbol": {
"type": "string",
"default": "£"
},
"paymentGateway": {
"type": "string",
"enum": ["paypal", "stripe", "authorizenet", "adyen", "instore"]
},
"databaseConnectionString": {
"type": "string"
},
"theme": {
"type": "string"
},
"themeViews": {
"type": "string"
},
"env": {
"type": "string"
},
"trackStock": {
"type": "boolean",
"default": false
},
"orderHook": {
"format": "uri-template"
},
"secretCookie": {
"type": "string"
},
"secretSession": {
"type": "string"
},
"availableLanguages": {
"type": "array"
},
"defaultLocale": {
"type": "string"
},
"enableLanguages": {
"type": "boolean",
"default": true
},
"maxQuantity": {
"type": "number"
},
"modules": {
"type": "object",
"properties": {
"enabled": {
"type": "object",
"properties": {
"shipping": {
"type": "string"
}
},
"required": ["shipping"]
}
},
"required": ["enabled"],
"default": {
"enabled": {
"shipping": "shipping-basic"
}
}
}
},
"required": [
"baseUrl",
"emailHost",
"emailPort",
"emailSecure",
"emailUser",
"emailPassword",
"emailAddress",
"paymentGateway",
"databaseConnectionString",
"modules"
],
"additionalProperties": false
}