Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`factory.makeTypeSchema` does not respect `@@strict`

Open Beginner friendly
#2,873 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
api, backend

Research direction

Read packages/zod/src/factory.ts around lines 461–476, especially the unconditional z.strictObject call, and trace how @@strict is represented in the schema input. Check nearby tests for factory.makeTypeSchema and strictness behavior. Done when the generated schema respects @@strict; consider and test the noted breaking-change implications.

Written by the indexing model from the issue text.

Description

Description and expected behavior
Line 471 unconditionally calls z.strictObject, but it is expected that the strictness should be respected.

Adjusting this behavior could be considered a breaking change.

https://github.com/zenstackhq/zenstack/blob/b51d33c41ca1baa84d9f880b0093eb9354506a1f/packages/zod/src/factory.ts#L461-L476

  • ZenStack version: 3.9.7
Dominant language
TypeScript
Stars
2.9k
Forks
157
Avg merge
11h 42m
Merged PRs (30d)
20

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zenstackhq/zenstack

All issues in zenstackhq/zenstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.