@tillhub/schemas 6.237.0 → 6.238.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [6.238.0](https://github.com/tillhub/schemas/compare/v6.237.0...v6.238.0) (2023-07-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **service_categories:** add schema for PUT service_categories ([#833](https://github.com/tillhub/schemas/issues/833)) ([3e6db9a](https://github.com/tillhub/schemas/commit/3e6db9a))
|
|
7
|
+
|
|
1
8
|
# [6.237.0](https://github.com/tillhub/schemas/compare/v6.236.1...v6.237.0) (2023-07-27)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const { response } = require('./base')
|
|
2
|
+
const commonResponse = require('../../common/response')
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
$id: 'https://schemas.tillhub.com/v0/service_categories.update.response.schema.json',
|
|
6
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
7
|
+
...commonResponse({ resultItems: response })
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -18,3 +18,21 @@ test('Service Categories V0: create response schema validation', t => {
|
|
|
18
18
|
t.error(error, 'should not get any error')
|
|
19
19
|
t.end()
|
|
20
20
|
})
|
|
21
|
+
|
|
22
|
+
test('Service Categories V0: update request schema validation', t => {
|
|
23
|
+
t.plan(2)
|
|
24
|
+
const updateRequest = require('../../../lib/v0/service_categories').update.request
|
|
25
|
+
const { valid, error } = validate(updateRequest)
|
|
26
|
+
t.ok(valid, 'update request schema is valid')
|
|
27
|
+
t.error(error, 'should not get any error')
|
|
28
|
+
t.end()
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
test('Service Categories V0: update response schema validation', t => {
|
|
32
|
+
t.plan(2)
|
|
33
|
+
const updateResponse = require('../../../lib/v0/service_categories').update.response
|
|
34
|
+
const { valid, error } = validate(updateResponse)
|
|
35
|
+
t.ok(valid, 'update response schema is valid')
|
|
36
|
+
t.error(error, 'should not get any error')
|
|
37
|
+
t.end()
|
|
38
|
+
})
|