Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-3294

DB resolution fails on an empty dataset with required template mapping.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • Frankfurt Release
    • cds

      It is a perfectly valid case to have no data as the output of database resource resolution.

      It seems the reasoning for CDS was that if the required flag is set and no value returned by the query, then it's a failure.

      The alternative is to define "required" : false in the template mapping, but that is erroneous as the overall resource-resolution would not fail (if there's a database error for that step). 

      So it feels more correct to allow emptyset with required being true rather than not.

            Unassigned Unassigned
            pau2882 pau2882
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: