package org.jboss.resteasy.test.validation.resource;

import jakarta.validation.GroupDefinitionException;
import jakarta.validation.GroupSequence;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.ext.Provider;

@Path("/")
@GroupSequence({ ValidationExceptionTestGroup1.class, ValidationExceptionTestGroup2.class })
public class ValidationExceptionResourceWithInvalidConstraintGroup {

    @Provider
    public static class GroupDefinitionExceptionMapper extends ValidationExceptionMapper<GroupDefinitionException> {
    }

    private String s;

    @GET
    public String test() {
        return s;
    }
}
