Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2144

Create a validation rule for good usage of Schema and Record

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Work Item
    • Resolution: Fixed
    • Major
    • 1.63.0
    • None
    • None
    • All
    • GreenHopper Ranking:
      0|i2g62z:
    • 9223372036854775807
    • Small

    Description

      Implementation:

      • create : SchemaValidator, RecordValidator,
        • implements Validator, implementing method: validate(final AnnotationFinder finder, final List<Class<?>> components)
        • but all methods in Record have no annotations.

      This rule will enforce usage of builders ant not eventual internal / technical methods.

      The test:

      • gets all TCK Java methods that return a Record.Builder or Entry.Builder
      • filters only the methods that are called in package processing-functions
        makes sure that either:
      • the TCK method itself is safe (preserves props from a previous builder/entry/Record)
      • the TDP caller of the TCK method is safe (ex: creates a new Entry => no props to preserve)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              emmanuel_g emmanuel gallois
              Fabien Desiles Fabien Desiles
              emmanuel gallois, Fabien Desiles, Yueyan Yin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: