package ee.shy.core;

import ee.shy.io.Jsonable;
import ee.shy.io.Validated;

import java.net.URI;
import java.util.Objects;

/**
 * Class representing a remote repository's URI.
 */
public class Remote implements Jsonable, Validated {
    /**
     * Repository's URI.
     */
    private final URI remote;

    /**
     * Constructs a remote with given URI.
     * @param remote remote URI for repository
     */
    public Remote(URI remote) {
        this.remote = remote;
        assertValid();
    }

    public URI getURI() {
        return this.remote;
    }

    @Override
    public void assertValid() {
        Objects.requireNonNull(remote, "repository has no URI");
    }
}
@@ -292,22 +292,19 @@
 nal URI 
-remote
+uri
 ;%0A%0A    /
@@ -363,22 +363,19 @@
  @param 
-remote
+uri
  remote 
@@ -423,22 +423,19 @@
 ote(URI 
-remote
+uri
 ) %7B%0A    
@@ -447,23 +447,17 @@
 his.
-remote = remote
+uri = uri
 ;%0A  
@@ -530,22 +530,19 @@
 rn this.
-remote
+uri
 ;%0A    %7D%0A
@@ -619,22 +619,19 @@
 NonNull(
-remote
+uri
 , %22repos

Rename remote field to uri.