Skip to content

fix(astro-kbve): align OSRS override field names with schema#7728

Merged
h0lybyte merged 3 commits intodevfrom
trunk/osrs-astro-audit-1772850190
Mar 7, 2026
Merged

fix(astro-kbve): align OSRS override field names with schema#7728
h0lybyte merged 3 commits intodevfrom
trunk/osrs-astro-audit-1772850190

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 7, 2026

Summary

  • Fix cooking field naming mismatches in 2 OSRS override files to align with OSRSCookingSchema
    • _3144.mdx (Cooked Karambwan): cook_ticksticks
    • _7946.mdx (Monkfish): stop_burnstop_burn_level, stop_burn_gauntletsstop_burn_level_gauntlets
  • Regenerated affected item pages so components render cooking data correctly
  • 3 additional item pages updated with fresher Wiki API data (GE limits added)

This is batch 1 of a slow, incremental OSRS override cleanup. The existing 974 overrides have a mix of schema-aligned and legacy field names. We're fixing them a few at a time to avoid regressions.

Schema Audit Context

Field naming analysis of all 1383 overrides found:

  • ~52% clean (schema-aligned)
  • ~42% mixed (valid + legacy keys)
  • ~6% legacy (mostly non-schema keys)

Two main issues across the mixed/legacy files:

  1. Non-schema top-level keys (obtaining, material, effect) — harmless with .passthrough() but don't render
  2. Misnamed fields (cook_ticks vs ticks, stop_burn vs stop_burn_level) — prevents component rendering

Test plan

  • Override field names match OSRSCookingSchema definitions
  • generate-osrs-items.mjs runs successfully (4525 items, 974 overrides applied)
  • Generated pages reflect corrected field names
  • Verify cooking data renders in OSRSItemPanel for karambwan and monkfish pages

🤖 Generated with Claude Code

Fix cooking field naming mismatches in override files so component
rendering works correctly:
- karambwan: cook_ticks → ticks
- monkfish: stop_burn → stop_burn_level, stop_burn_gauntlets → stop_burn_level_gauntlets

Also regenerates 3 item pages with updated Wiki API data (GE limits).
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

h0lybyte added 2 commits March 7, 2026 02:34
Add fields present in override data but missing from schemas:
- FoodSchema: type (fish/pie/cake), combo_food (1-tick eat)
- CookingSchema: quest_required (quest needed to cook)
- PotionSchema: effect (summary string), effects[].description
- ShopSourceSchema: requirements (quest/skill to access shop)
- RecipeSchema: product, product_id, product_quantity (output item)

Also adds isComboFood() type guard. Both IOSRSSchema.ts and
generated.ts updated to stay in sync.
Material quantity and recipe product_quantity can be ranges like "3-6"
or "100-250" in override data. Changed from z.number() to
z.union([z.number(), z.string()]) in both schema files.
@h0lybyte h0lybyte merged commit 6fb44e7 into dev Mar 7, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/osrs-astro-audit-1772850190 branch March 7, 2026 07:48
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