tirith
tirith copied to clipboard
Improve code structure and metadata for providers
The current implementation of the providers has several areas that need improvement to enhance clarity, maintainability, and robustness.
- [ ] There is no clear documentation or structure indicating which arguments are required for each operation type (input_type). This can lead to confusion and errors in usage.
- [ ] There is no straightforward way to list all supported input_type values programmatically. This could be solved by defining a constant or enumeration for operation types.
- [ ] Functions aren't modular/reusable.
TODO:
- Add possible approaches and designs to introduce metadata to the Tirith providers and schema
- Also consider that Tirith providers will not be in the Tirith core repository, it will be separated, and users can create their own custom providers, so that providers and core should be decoupled
This is related a little bit to https://github.com/StackGuardian/tirith/issues/154