Annotation Type VersionSelector


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Inherited
    public @interface VersionSelector
    Used to specify which versions to use when querying the Pact matrix.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String consumer
      Consumer name to fetch pacts for.
      java.lang.String fallbackTag
      If a pact for the specified tag does not exist, then use this tag as a fallback.
      java.lang.String latest
      "true" to fetch the latest version of the pact, or "false" to fetch all versions
      java.lang.String tag
      Tags to use to fetch pacts for.
    • Element Detail

      • tag

        java.lang.String tag
        Tags to use to fetch pacts for. Empty string represents all tags.
        Default:
        ""
      • latest

        java.lang.String latest
        "true" to fetch the latest version of the pact, or "false" to fetch all versions
        Default:
        "true"
      • consumer

        java.lang.String consumer
        Consumer name to fetch pacts for. Empty string represents all consumers
        Default:
        ""
      • fallbackTag

        java.lang.String fallbackTag
        If a pact for the specified tag does not exist, then use this tag as a fallback. This is useful for co-ordinating development between consumer and provider teams when matching branch names are used.
        Default:
        ""