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

Refactor query protocol #425

Merged
merged 3 commits into from
Jun 9, 2024
Merged

Conversation

xvrh
Copy link
Collaborator

@xvrh xvrh commented Jun 8, 2024

The query protocol was different than the other protocols (rest, xml).
The serialization format is stored in a model (thin model embedded as a json map literal). And at runtime, it uses that model to perform the serialization.

The other protocols, have the serialization rules directly generated as Dart code.

I refactored the protocol to get rid of the thin model and generate the serialization rules in code.

The main advantage is that it's better for tree-shaking and more inline with the other protocols.

@xvrh xvrh requested review from isoos and Schwusch June 8, 2024 07:36
Copy link
Contributor

@isoos isoos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@xvrh xvrh merged commit 6b56546 into agilord:master Jun 9, 2024
2 checks passed
@xvrh xvrh deleted the xha/query_protocol_refactor branch June 9, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants