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

How to share relation interface schemas between charms #121

Closed
PietroPasotti opened this issue Nov 15, 2023 · 2 comments
Closed

How to share relation interface schemas between charms #121

PietroPasotti opened this issue Nov 15, 2023 · 2 comments

Comments

@PietroPasotti
Copy link
Contributor

Issue:
the charms implementing a charm-relation-interfaces-backed relation need to have access to the pydantic schemas in schema.py for the interface. Right now we need to copy-paste the code and share it 'manually' or bake it in the charm lib.

It would be nice if we could expose the interfaces from a pypi package (for example) or in some other way, so all the charm needs to do is:
from charm_relation_interfaces.foo.v0.bar import BarRequirerSchema

@sed-i
Copy link
Contributor

sed-i commented Nov 15, 2023

Related: #111

@PietroPasotti
Copy link
Contributor Author

not just related: duplicate. Forgot we had that one.

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

No branches or pull requests

2 participants