Class: Lutaml::Xsd::Errors::Troubleshooters::NamespaceTroubleshooter
- Inherits:
-
TroubleshootingHandler
- Object
- TroubleshootingHandler
- Lutaml::Xsd::Errors::Troubleshooters::NamespaceTroubleshooter
- Defined in:
- lib/lutaml/xsd/errors/troubleshooters/namespace_troubleshooter.rb
Overview
Troubleshooter for namespace-related errors
Provides tips for resolving namespace issues
Instance Method Summary collapse
-
#tips_for(error) ⇒ Array<String>
Generate namespace troubleshooting tips.
Methods inherited from TroubleshootingHandler
Instance Method Details
#tips_for(error) ⇒ Array<String>
Generate namespace troubleshooting tips
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/lutaml/xsd/errors/troubleshooters/namespace_troubleshooter.rb', line 31 def tips_for(error) return [] unless can_troubleshoot?(error) tips = [] context = context_from(error) tips.concat(namespace_uri_tips(context)) if context.namespace tips.concat(namespace_prefix_tips(context)) if context.actual_value&.include?(":") tips.concat(general_namespace_tips) tips end |