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

Add Protobuf Serializer #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonnylangefeld
Copy link

@jonnylangefeld jonnylangefeld commented Jan 17, 2023

This adds the ability to serialize voluptuous schemas to .proto files which can be used in many other contexts such as API client generation or docs generation.

This could be used to auto-generate home-assistant documentation reference pages for all yaml schemas as suggested in this post.

See the addition in the readme for an example.

This is just a proof of concept and not complete. It is missing tests and more complex voluptuous options.

With thanks to @ziv1234 who implemented serialization of dictionaries in #18

This adds the ability to serialize `voluptuous` schemas to `.proto`
files which can be used in many other contexts such as API client generation or
docs generation.

This could be used to auto-generate home-assistant documentation
reference pages for all yaml schemas as suggested in [this post](home-assistant/core#86050).

See the addition in the readme for an example.

With thanks to @ziv1234 who implemented serialization of dictionaries in home-assistant-libs#18
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.

1 participant