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

[CHORE]: Warn on config values that do not match the schema

Open Beginner friendly
#8,064 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

Start in src/plot_api/plot_api.js at setPlotContext, then read src/plot_api/plot_config.js to understand configAttributes and its valType metadata. Check each applicable value with Lib.validate and warn on mismatches while skipping valType: 'any' attributes. Done means invalid typed values produce warnings without coercing or replacing values.

Written by the indexing model from the issue text.

Description

chore P3 plotly-internal size: 3 task
Description

Validate config values in setPlotContext against configAttributes and call Lib.warn on a mismatch.

Why should this change be made?

src/plot_api/plot_config.js says valType and values are documentation only, so a bad config value lands in _context in silence and fails somewhere else later.

Full coercion would replace bad values with defaults, which silently changes charts that work today. A warning gives the diagnostic benefit with no behavior change, and the hit rate tells us whether coercion is worth it later.

The metadata supports it: every typed config attribute is self-consistent, with no dflt outside its own values.

Scope
  • src/plot_api/plot_api.js - in setPlotContext, run Lib.validate(value, attr) per key and warn on false
  • Skip the valType: 'any' attributes. Lib.validate accepts anything for them.
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 10h
Merged PRs (30d)
30

Contributor guide

Open the contributing guide

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 plotly/plotly.js

All issues in plotly/plotly.js

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.