Skip to content

Commit b8d336a

Browse files
committed
group: GET returns parent_gid
1 parent 69152f9 commit b8d336a

5 files changed

Lines changed: 10 additions & 2 deletions

File tree

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ codecov.yml
1111
.eslintrc.yaml
1212
.eslintrc.yml
1313
.eslintrc.json
14-
.prettier.yml
14+
.prettierrc.yml

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
### Unreleased
44

55

6+
### [0.7.2] - 2024-02-27
7+
8+
- group: GET returns parent_gid
9+
10+
611
### [0.7.1] - 2024-02-24
712

813
- group: parent_id can be zero
@@ -30,3 +35,4 @@
3035
[0.6.3]: https://github.com/NicTool/validate/releases/tag/0.6.3
3136
[0.7.0]: https://github.com/NicTool/validate/releases/tag/0.7.0
3237
[0.7.1]: https://github.com/NicTool/validate/releases/tag/0.7.1
38+
[0.7.2]: https://github.com/NicTool/validate/releases/tag/0.7.2

lib/group.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ exports.v2 = Joi.object({
3434
exports.GET = Joi.object({
3535
group: Joi.object({
3636
id: exports.pid,
37+
parent_gid: exports.pid,
3738
name: exports.name,
3839
}),
3940
meta: shared.meta,

lib/session.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exports.GET = Joi.object({
1414
group: Joi.object({
1515
id: group.id,
1616
name: group.name,
17+
parent_gid: group.pid,
1718
}),
1819
session: Joi.object({
1920
id: Joi.number().integer().min(1).max(4294967295),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nictool/validate",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "NicTool Object Validation",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)