Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-9590

Data Dictionary Validate method should accept a CDAP Schema JSON object

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0
    • Component/s: Metadata
    • Labels:
      None
    • Sprint:
      App Eng Sprint 5
    • Release Notes:
      Fixed an issue with the Data Dictionary's validate API not accepting CDAP-schema JSON.
    • Rank:
      1|hzzqlb:

      Description

      The data dictionary for tracker should accept a payload that is the result of Schema.toJson, that looks like this:

      {
        "fields": [
          {
            "name": "date_received", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "product", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "sub_product", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "issue", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "sub_issue", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "consumer_complaint_narrative", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "company_public_response", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "company", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "state", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "zip_code", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "tags", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "consumer_consent_provided", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "submitted_via", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "date_sent_to_company", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "company_response_to_consumer", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "timely_response", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "consumer_disputed", 
            "type": [
              "string", 
              "null"
            ]
          }, 
          {
            "name": "complaint_id", 
            "type": [
              "string", 
              "null"
            ]
          }
        ], 
        "name": "etlschemabody", 
        "type": "record"
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abhinav Abhinav Bansal
                Reporter:
                russellsavage Russ Savage
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: