From 518465636759e03908828917825c0e9126c10c70 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 24 Jul 2026 12:28:15 -0700 Subject: [PATCH 1/5] doc(CHANGELOG): add commit messages for 0.9.1 --- CHANGELOG.md | 3 +++ lib/group.js | 2 +- lib/zone.js | 1 + package.json | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c0e54b..941530a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Unreleased +### [0.9.1] - 2026-07-24 + ### [0.9.0] - 2026-07-20 - feat: add nameserver type native @@ -138,3 +140,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). [0.8.9]: https://github.com/NicTool/validate/releases/tag/v0.8.9 [0.8.10]: https://github.com/NicTool/validate/releases/tag/v0.8.10 [0.9.0]: https://github.com/NicTool/validate/releases/tag/v0.9.0 +[0.9.1]: https://github.com/NicTool/validate/releases/tag/v0.9.1 diff --git a/lib/group.js b/lib/group.js index 0e2e3cd..cf10487 100644 --- a/lib/group.js +++ b/lib/group.js @@ -49,7 +49,7 @@ const groupItem = Joi.object({ }) export const GET_res = Joi.object({ - group: Joi.alternatives().try(groupItem, Joi.array().items(groupItem)), + group: Joi.array().items(groupItem), meta: shared.meta, }) diff --git a/lib/zone.js b/lib/zone.js index 2873b81..21081ed 100644 --- a/lib/zone.js +++ b/lib/zone.js @@ -51,6 +51,7 @@ export const GET_req = Joi.object({ sort_by: Joi.string().valid('id', 'zone', 'description', 'last_modified'), sort_dir: Joi.string().lowercase().valid('asc', 'desc'), deleted: Joi.boolean(), + include_subgroups: Joi.boolean(), }).options({ allowUnknown: true }) export const GET_ns_res = Joi.object({ diff --git a/package.json b/package.json index b4212c3..74c77ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nictool/validate", - "version": "0.9.0", + "version": "0.9.1", "description": "NicTool Object Validation", "type": "module", "files": [ From 4898af0d1c888a8e73d619dd10af80901f3a3cdb Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 24 Jul 2026 12:28:18 -0700 Subject: [PATCH 2/5] doc(CONTRIBUTORS): updated --- CONTRIBUTORS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 4d55feb..d5cd48f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -2,7 +2,7 @@ This handcrafted artisanal software is brought to you by: -|
msimerson (30) |
burning-bush-dev (1) | +|
msimerson (32) |
burning-bush-dev (1) | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | this file is generated by [.release](https://github.com/msimerson/.release). From 1a30ee8ce680de2642289a8d6d291ea4dfb435b8 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 24 Jul 2026 12:29:22 -0700 Subject: [PATCH 3/5] zone include_subgroups, group get returns array - zone: add include_subgroups - group.get: always return array --- .github/workflows/ci.yml | 7 ++++--- CHANGELOG.md | 3 +++ package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0f5f83..c86c910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,13 +7,14 @@ on: env: CI: true -permissions: - contents: read - jobs: lint: uses: NicTool/.github/.github/workflows/lint.yml@main + permissions: + contents: read test: uses: NicTool/.github/.github/workflows/test.yml@main secrets: inherit + permissions: + contents: read diff --git a/CHANGELOG.md b/CHANGELOG.md index 941530a..e3e4b46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### [0.9.1] - 2026-07-24 +- group.get: always return array +- zone: add include_subgroups + ### [0.9.0] - 2026-07-20 - feat: add nameserver type native diff --git a/package.json b/package.json index 74c77ec..635ce0e 100644 --- a/package.json +++ b/package.json @@ -64,4 +64,4 @@ "trailingComma": "all", "printWidth": 100 } -} +} \ No newline at end of file From 9f2ac805ba6a83c0b199a23cb62a9991ef9179b3 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 24 Jul 2026 12:30:05 -0700 Subject: [PATCH 4/5] chore: format --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 635ce0e..74c77ec 100644 --- a/package.json +++ b/package.json @@ -64,4 +64,4 @@ "trailingComma": "all", "printWidth": 100 } -} \ No newline at end of file +} From 7a25eacf9f20aa63294202d765ebf4fdc7d88944 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Fri, 24 Jul 2026 13:21:49 -0700 Subject: [PATCH 5/5] revert --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c86c910..a0f5f83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,13 @@ on: env: CI: true +permissions: + contents: read + jobs: lint: uses: NicTool/.github/.github/workflows/lint.yml@main - permissions: - contents: read test: uses: NicTool/.github/.github/workflows/test.yml@main secrets: inherit - permissions: - contents: read