GithubHelp home page GithubHelp logo

adoptopenjdk / openjdk-api-java-client Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 782 KB

A Java wrapper around the AdoptOpenJDK REST API

License: Apache License 2.0

Java 99.00% HTML 1.00%
adoptopenjdk-api adoptopenjdk-java java openjdk

openjdk-api-java-client's People

Contributors

io7m avatar joschi avatar karianna avatar maxandersen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

openjdk-api-java-client's Issues

Endpoints might not return arrays

See AdoptOpenJDK/openjdk-api#47.

This will trigger:

net.adoptopenjdk.spi.AOParseException: Error parsing JSON data.
Location: https://api.adoptopenjdk.net/openjdk8-openj9/releases @ 1:2
Expected: One of START_ARRAY
Received: START_OBJECT
	at net.adoptopenjdk.v1/net.adoptopenjdk.v1.AOv1Parser.parseErrorExpectedReceived(AOv1Parser.java:488)
	at net.adoptopenjdk.v1/net.adoptopenjdk.v1.AOv1Parser.parseErrorExpectedReceived(AOv1Parser.java:497)
	at net.adoptopenjdk.v1/net.adoptopenjdk.v1.AOv1Parser.requireOneOf(AOv1Parser.java:162)
	at net.adoptopenjdk.v1/net.adoptopenjdk.v1.AOv1Parser.parseReleases(AOv1Parser.java:131)
	at net.adoptopenjdk.v1/net.adoptopenjdk.v1.AOv1Requests.releasesForVariant(AOv1Requests.java:195)
	at net.adoptopenjdk.api/net.adoptopenjdk.api.AdoptOpenJDK$Requests.releasesForVariant(AdoptOpenJDK.java:112)

unrecognized field "most_recent_feature_version"

//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS net.adoptopenjdk:net.adoptopenjdk.v3.api:0.3.3
//DEPS net.adoptopenjdk:net.adoptopenjdk.v3.vanilla:0.3.3

import net.adoptopenjdk.v3.api.AOV3Exception;
import net.adoptopenjdk.v3.vanilla.AOV3Clients;

import java.io.IOException;

class adoptopenjdk {

    public static void main(String... args) throws Exception {
        var clients = new AOV3Clients();
        try (var client = clients.createClient()) {
            var request = client.availableReleases(e -> System.out.println(e));
            var releases = request.execute();
        }
    }
}

results in:
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "most_recent_feature_version" (class net.adoptopenjdk.v3.vanilla.internal.AOV3AST$AOV3AvailableReleasesJSON), not marked as ignorable (4 known properties: "available_releases", "most_recent_lts", "available_lts_releases", "most_recent_feature_release"])

Installer and package checksums are optional

The types are declared such that the checksums are not marked as optional. The code responds by essentially returning a blank string for a missing checksum; this is incorrect! It should return Optional.empty().

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.