-
Notifications
You must be signed in to change notification settings - Fork 453
Switch from JSON to KDL format #2056
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
Conversation
- Introduced new types in "addedTypes.kdl", including mixins, enums, and interfaces relevant to web APIs. - Removed deprecated types and interfaces from "removedTypes.kdl", streamlining the codebase and ensuring compatibility with current standards.
|
Thanks for the PR! This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged. |
|
Err, I was saying that I'd like to add a new topic-separated files in KDL, not converting existing monolithic file to KDL. |
inputfiles/addedTypes.kdl
Outdated
| @@ -0,0 +1,1650 @@ | |||
| mixins | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this formatting a mistake? This is pretty unreadable, way worse than described in the linked issue with the braces and so on
|
I understand @saschanaz |
|
Sounds good, but let's do it one by one in each PR so that the PR can be reviewed and merged separately! |
|
(I think we don't need to keep quirks like |
|
Hello @saschanaz |
|
What arrays are we talking about and what exact result are you getting? |
|
Like this @saschanaz
We are getting: {
"param": "options"
} |
|
But that's not KDL input? |
|
(But I think we can defer the removedTypes part, it just has different form) |
The input is: The issue is that KDL doesn't understand arrays for one item very well |
|
That still doesn't seem like a valid KDL input? Parsing it causes errors. Again let's skip removedItems for now. |
|
There is the same issue with added types. Original JSON: KDL to json: I could only find on solution, which is using an extra item that is ignored when compiling back the json. |
|
I think that's a quirk that I don't really want to copy into KDL. interface-mixin AbstractWorker {
event {
name "error"
type "ErrorEvent"
}
}This should be perfectly fine. |
|
Or go even further. interface-mixin AbstractWorker {
event error type="ErrorEvent"
} |
|
Okay |
|
I have converted a portion of the file to the format you suggested @saschanaz |
|
Also do you think this is more readable @jakebailey |
|
Mostly looks good with a few comments:
If you mean the other object types like interface and namespace, then yes. I think the migration should happen only progressively with topics rather than converting the whole file at once, that's explicitly not a goal. |
|
I have made sure everything is working in this pr. |
#2053