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

opportunities for more use of validation options

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by reviewing the Validator options mentioned in the issue and comparing their use in core types such as Emitter, Property, NumberProperty, and Vector2Property. Determine which validation options are currently documented or used, then define completion as a documented and agreed set of appropriate validation uses; the issue notes this may be deferred until PhET-iO instrumentation.

Written by the indexing model from the issue text.

Description

dev:code-review

Related to #2 (code review);

  • Are Validator validation options (valueType, validValues, etc...) utilized? These are supported in a number of core types like Emitter and Property. Is their presence or lack thereof properly documented?

There's good use of range for NumberProperty.

There is no use of valueType or isValidValue, and it looks like there are opportunities for use, specifically for Vector2Property and Property instances.

This issue code be deferred until PhET-iO instrumentation, when it will become more important.

Dominant language
JavaScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

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 phetsims/normal-modes

All issues in phetsims/normal-modes

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.