Skip to content

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