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 a URI subclass of Scalar #278

Open
dlindhol opened this issue May 25, 2021 · 0 comments
Open

Add a URI subclass of Scalar #278

dlindhol opened this issue May 25, 2021 · 0 comments

Comments

@dlindhol
Copy link
Member

We currently use regular text variables to represent URIs. In latis2, we use naming conventions ("file" or "url") to pick out the URI variables. This is limiting and less safe.

With a Uri class that extends Scalar (invoked with a class property in the fdml), we could more safely pick out the URI variable (e.g. in a granule list dataset).

Presumably we would encapsulate some URI utility methods here, though we need to be mindful of other URI use cases (e.g. reading datasets). Maybe make a uri package to encapsulate all things URI? This is akin to Time.

Another question to consider: Should we continue to use the java.net.URI class internally? Or http4s? Or...?

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

1 participant