Skip to content

Commit

Permalink
Enable UserResource in airlines app
Browse files Browse the repository at this point in the history
Currently, the TCK verifies that the implementation creates paths and
operations for UserResource, even though it isn't configured as a rest
resource.

The spec doesn't demand that this should or shouldn't happen and it
makes sense for implementations to be allowed to check which resources
are actually included in the rest application and only generate schema
for those that are.
  • Loading branch information
Azquelt committed Feb 22, 2022
1 parent 778e55e commit 1140050
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -51,6 +51,7 @@
import org.eclipse.microprofile.openapi.apps.airlines.resources.AirlinesResource;
import org.eclipse.microprofile.openapi.apps.airlines.resources.AvailabilityResource;
import org.eclipse.microprofile.openapi.apps.airlines.resources.ReviewResource;
import org.eclipse.microprofile.openapi.apps.airlines.resources.UserResource;
import org.eclipse.microprofile.openapi.apps.airlines.resources.bookings.BookingResource;

import jakarta.ws.rs.ApplicationPath;
Expand Down Expand Up @@ -101,6 +102,7 @@ public Set<Object> getSingletons() {
singletons.add(new AvailabilityResource());
singletons.add(new BookingResource());
singletons.add(new ReviewResource());
singletons.add(new UserResource());
return singletons;
}

Expand Down

0 comments on commit 1140050

Please sign in to comment.