Open NikPaushkin opened 1 year ago
@mkjpryor Hey, do you accept any pull requests?
@NikPaushkin We would welcome a PR to implement this!
Rather than accepting all strings, you should be able to define an OCI URI using stricturl
in Pydantic, which can then be added to the union. Something like:
OciUrl = stricturl(allowed_schemes = {"oci"})
This would be my preferred method.
@mkjpryor any feedback on the PR? Is there a reason not to merge this one? There's multiple PR's referencing the same issue(https://github.com/azimuth-cloud/pyhelm3/pull/4)
HTTP links are only allowed now here https://github.com/stackhpc/pyhelm3/blob/main/pyhelm3/models.py#L185. Could use simple
str
type or implement a custom one since Pydantic (and nobody tbh) doesn't know what OCI protocol is.