Troubleshooting Generation
If firestone generate fails, use the --debug flag to get a full stack trace and verbose logging:
firestone --debug generate --resources . openapi
Common Error Categories:
-
YAML/JSON Syntax:
- Symptom:
ScannerErrororParserError. - Fix: Check indentation and special characters. Use a linter.
- Symptom:
-
Schema Validation:
- Symptom:
ValidationError: 'properties' is a required property. - Fix: Your resource does not conform to the JSON Schema spec. Ensure
itemshastype: object.
- Symptom:
-
Firestone DSL:
- Symptom:
KeyError: 'kind'. - Fix: You are missing a required Firestone top-level field (
kind,apiVersion).
- Symptom:
-
Ref Resolution:
- Symptom:
RefResolutionError. - Fix: Check your
$refpaths. Paths are relative to the file containing the reference.
- Symptom: