-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To what extend do we enforce a language for adapter configuration files #32
Comments
Should we enforce?I understand the concept of a schema as the abstract representation of what goes in such a file, with names and relations, but irrelevant of the implementation language. As such, I think we don't need to enforce. As long as we can convert between formats (which a schema should by definition enable us to), even if we currently don't have deterministic ways to convert between all formats, I also don't think we need to enforce. Given that:
I think we should not enforce. Should we encourage?Yes, definitely! We should lead with an example to follow, but state that old adapters are still fine. If yes, which language?As I wrote in more detail #18 (comment), the choice for JSON is mostly historical/inertia. Since we are currently in the process of designing the ecosystem as we want it to be, I think it is wrong to make the choice solely based on what is widely used. The reasons should be usability-focused, given technical restrictions. In the end, it might be neither JSON nor YAML, but something else. But I agree that these are good starting points. DisclaimerI have no objection in porting any adapter myself to what we decide to. I am just imagining how I would argue with users about this. |
Pros and Cons: JSON:
YAML
|
YAML is easier to read and write than JSON. I suggest to use YAML by default primarily as it will make adapter documentation easier to write and read. |
To what extend should the adapter schema enforce the language of the adapter configuration file?
v0.2 of the guidelines say:
preeco-orga/guidelines/guidelines-adapters.md
Line 74 in 543f29c
(we should actually remove the "LLM-based" and allow any conversion)
So, we currently do not enforce any format and there are good reasons for this as summarized by @MakisH: #18 (comment)
Should we still tend towards a certain configuration language and if yes, which one?
If for a certain adapter or tool, there is no good reasons to use a solver-specific configuration, we could still weakly recommend using either YAML of JSON. This could further improve interoperability, since the conversion could be skipped.
Pro JSON:
Pro YAML:
The text was updated successfully, but these errors were encountered: