Class PluginMarketplaceValidateRepositoryParams.Body

  • All Implemented Interfaces:

    
    public final class PluginMarketplaceValidateRepositoryParams.Body
    
                        

    The repository to validate: its URL, and optionally the branch or commit to read. repository_url is required and any other field is refused; a repository_url or ref that fails the checks listed on its field is a 400, and a repository, branch, or commit that cannot be read is reported in the response, not refused.

    • Constructor Detail

    • Method Detail

      • repositoryUrl

         final String repositoryUrl()

        The https:// URL of a public repository on github.com that holds the marketplace. A URL longer than 2,048 characters, on any other host or scheme, with a port other than 443 or 80, with credentials in it, or that does not name exactly owner/repo (a trailing .git or / is accepted) is a 400. A private or missing repository is reported in the response, not refused.

      • ref

         final Optional<String> ref()

        The branch to validate the tip of, or the full 40-character SHA of the commit to validate. When omitted, the branch a synchronization would read (usually the repository's default branch); if that is not the default branch, the report's ref says which branch was read. An empty string, a value longer than 255 characters, or one that contains .. or a character other than ASCII letters, digits, ., _, -, +, and /, is a 400. Any other value that is not a 40-character SHA is read as a branch name; if the repository has no such branch, the response is a report with valid: false, not a 400.

      • _repositoryUrl

         final JsonField<String> _repositoryUrl()

        Returns the raw JSON value of repositoryUrl.

        Unlike repositoryUrl, this method doesn't throw if the JSON field has an unexpected type.

      • _ref

         final JsonField<String> _ref()

        Returns the raw JSON value of ref.

        Unlike ref, this method doesn't throw if the JSON field has an unexpected type.