@cubejs-backend/api-gateway
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.6.0](https://github.com/statsbotco/cubejs-client/compare/v0.5.2...v0.6.0) (2019-04-09) | ||
### Features | ||
* query validation added in api-gateway ([#73](https://github.com/statsbotco/cubejs-client/issues/73)) ([21f6176](https://github.com/statsbotco/cubejs-client/commit/21f6176)), closes [#39](https://github.com/statsbotco/cubejs-client/issues/39) | ||
# [0.5.0](https://github.com/statsbotco/cubejs-client/compare/v0.4.6...v0.5.0) (2019-04-01) | ||
@@ -8,0 +19,0 @@ |
@@ -104,3 +104,3 @@ const jwt = require('jsonwebtoken'); | ||
const querySchema = Joi.object().keys({ | ||
measures: Joi.array().items(id), | ||
measures: Joi.array().items(id.required()), | ||
dimensions: Joi.array().items(dimensionWithTime), | ||
@@ -120,3 +120,3 @@ filters: Joi.array().items(Joi.object().keys({ | ||
limit: Joi.number().integer().min(1).max(50000) | ||
}); | ||
}).or("measures","dimensions"); | ||
@@ -200,3 +200,3 @@ const normalizeQuery = (query) => { | ||
try { | ||
const query = JSON.parse(req.query.query); | ||
const query = JSON.parse(req.query.query) | ||
this.log(req, { | ||
@@ -203,0 +203,0 @@ type: 'Load Request', |
@@ -5,3 +5,3 @@ { | ||
"author": "Statsbot, Inc.", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"engines": { | ||
@@ -27,3 +27,3 @@ "node": ">=8.11.1" | ||
"license": "Apache-2.0", | ||
"gitHead": "0837734afe8c7b3583d4f707b6423c4202b13d7b" | ||
"gitHead": "8dfcbe0750319b25382f7f5cec38f94a20bfce1c" | ||
} |
24977