Skip to content

feat(metadata): declare a challenge's difficulty in problem.md - #62

Merged
hi-liang merged 1 commit into
mainfrom
feat/difficulty
Oct 27, 2026
Merged

hi-liang merged 1 commit into
mainfrom
feat/difficulty

Conversation

@hi-liang

Copy link
Copy Markdown
Member

A top-level - Difficulty: line takes easy, medium or hard, case-insensitive, and is stored lower-cased. Any other value fails the load. It is reported as difficulty in challenge metadata, including the schema state the platform syncs from, and is omitted when a challenge declares none, so a consumer can tell "not declared" from a level and keep what it already holds.

Existing databases gain challenges.difficulty in place, defaulting to ''. A difficulty change is metadata-only and refreshes without a rebuild.

A top-level `- Difficulty:` line takes easy, medium or hard,
case-insensitive, and is stored lower-cased. Any other value fails the load.
It is reported as `difficulty` in challenge metadata, including the schema
state the platform syncs from, and is omitted when a challenge declares none,
so a consumer can tell "not declared" from a level and keep what it already
holds.

Existing databases gain challenges.difficulty in place, defaulting to ''.
A difficulty change is metadata-only and refreshes without a rebuild.
@hi-liang
hi-liang merged commit 192d028 into main Oct 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant