Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2209

Orphaned validation (when @Action is NOT mandatory) isn't working.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • 2.0.0-M3
    • None
    • None

    Description

      Andi, 10:11

      I think we have 2 scenarios as configured:

      1. @Action is mandatory ... then we could allow disable/hide/... prefixes on actions (no need for the validator to discard these cases)
      2. @Action is optional ... then we need to preserve the original behavior as you suggested

      Dan: 10:13
      Yes, agreed.
      I have reinstated that code, though something else must have changed because I couldn't reproduce scenario (2) to trigger the "orphaned methods" validation error.
      But scenario (1) works fine.
      For our own apps, I intend to make @Action mandatory, as per isis.reflector.validator.explication-annotations.action=true

      Andi, 10:16
      ok, we gonna need to write test cases to check this then

      Dan, 10:16
      I'll add a ticket

      Attachments

        Issue Links

          Activity

            People

              hobrom Andi Huber
              danhaywood Daniel Keir Haywood
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: