Skip to content

Conversation

@bussyjd
Copy link
Contributor

@bussyjd bussyjd commented Nov 13, 2025

Improves the validator client type validation error messages to provide better user guidance when invalid types are specified.

Changes:

  • Add generic fuzzy matching for "did you mean" suggestions
    • Known typos map: loki→lodestar, prism→prysm, lighthose→lighthouse
    • Prefix matching: tek→teku, nim→nimbus, lodest→lodestar
    • Substring matching for partial matches
  • Provide actionable fix instructions showing:
    • CLI flag syntax: --set validatorClient.type=
    • values.yaml format with proper indentation
    • Custom values file approach
  • Include documentation reference to README.md
  • Use suggested type in examples when available

Example error output:
ERROR: Invalid validator client type 'loki'.

Valid options: lighthouse, lodestar, teku, prysm, nimbus

⚠️ Did you mean 'lodestar'?

How to fix this: • Using --set flag: --set validatorClient.type=lodestar

• In your values.yaml file:
  validatorClient:
    type: lodestar

Tested with all validator client types and various typos. All valid types (lighthouse, lodestar, teku, prysm, nimbus) still work correctly.

Addresses user feedback from PR #148 that validation errors needed more actionable guidance.

Improves the validator client type validation error messages to provide
better user guidance when invalid types are specified.

Changes:
- Add generic fuzzy matching for "did you mean" suggestions
  * Known typos map: loki→lodestar, prism→prysm, lighthose→lighthouse
  * Prefix matching: tek→teku, nim→nimbus, lodest→lodestar
  * Substring matching for partial matches
- Provide actionable fix instructions showing:
  * CLI flag syntax: --set validatorClient.type=<type>
  * values.yaml format with proper indentation
  * Custom values file approach
- Include documentation reference to README.md
- Use suggested type in examples when available

Example error output:
  ERROR: Invalid validator client type 'loki'.

  Valid options: lighthouse, lodestar, teku, prysm, nimbus

  ⚠️  Did you mean 'lodestar'?

  How to fix this:
    • Using --set flag:
      --set validatorClient.type=lodestar

    • In your values.yaml file:
      validatorClient:
        type: lodestar

Tested with all validator client types and various typos.
All valid types (lighthouse, lodestar, teku, prysm, nimbus) still work correctly.

Addresses user feedback from PR #148 that validation errors needed
more actionable guidance.
@bussyjd
Copy link
Contributor Author

bussyjd commented Nov 13, 2025

Consolidated into #152 along with other workshop improvements

@bussyjd bussyjd closed this Nov 13, 2025
@bussyjd bussyjd deleted the enhance-validator-client-type-validation branch November 16, 2025 17:58
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.

2 participants