Skip to content
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

JSON like DSL instead of CSVs #30

Open
john30 opened this issue Nov 17, 2016 · 5 comments
Open

JSON like DSL instead of CSVs #30

john30 opened this issue Nov 17, 2016 · 5 comments
Assignees

Comments

@john30
Copy link
Owner

john30 commented Nov 17, 2016

No description provided.

@john30 john30 added this to the 3.0 milestone Nov 17, 2016
@john30 john30 self-assigned this Nov 17, 2016
@john30 john30 changed the title Support for JSON like DSL instead of CSVs JSON like DSL instead of CSVs Dec 3, 2016
@john30 john30 removed this from the 3.0 milestone Dec 4, 2016
@koen-lee
Copy link

I think this is a good idea that will make contributing easier. The CSVs have quite a learning curve and are error-prone.
Could you elaborate on the reasoning of removing it from the milestone?

@john30
Copy link
Owner Author

john30 commented Nov 28, 2021

It is still on the road map and actually I was browsing for good JSON libs last week for another thing. Anyway, this is a very time consuming thing to do and it will still take a while. In the meanwhile I'm working on a web UI that is supposed to allow clicking configs together and talk directly to ebusd to update the definitions online.

@anticultist
Copy link

anticultist commented May 29, 2024

Maybe a intermediate json format could be a good starting point. So you can transform between the json format and the current csv based format back and forth but ebusd would only understand the "old" csv based format. With this approach you could test a new json based configuration without rewriting the existing code.

By the way do you know json schema? It is a powerful json-based meta-description of the structure of a json file. With that you can get error checking or auto-completion in modern code editors like VS Code while you work with a json file. Maybe it could be useful here.

@john30
Copy link
Owner Author

john30 commented Jun 8, 2024

thats already there and of course I know json schema and there is a schema for what ebusd offers on its http port already in the openapi spec. the same schema is also produced by ebusd when using --dumpconfig=json

nevertheless I'm already working on that topic, recently by using typespec

@john30
Copy link
Owner Author

john30 commented Jul 13, 2024

a lot of work has been put into this in the last weeks in ebus-typespec, ebusd-configuration, as well as ebusd itself and ebus-notebook.
the (intermediate) result of all that ends in https://ebus.github.io/ which is the new webservice to be used from the next version of ebusd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants