Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Imparative declaration of Schema with cc.getFields() broken #365

Open
sebdei opened this issue Aug 11, 2020 · 0 comments
Open

Imparative declaration of Schema with cc.getFields() broken #365

sebdei opened this issue Aug 11, 2020 · 0 comments

Comments

@sebdei
Copy link

sebdei commented Aug 11, 2020

It seems like that the imparative declaration of the schema as seen in the example custom connector is broken.

After returning a plain JSON schema in getFields() it was fixxed.

function getFields() {
   return [ 
       { 
        dataType: 'STRING',
        label: 'Package',
        name: 'packageName' 
      },
      { 
        name: 'day',
        dataType: 'STRING',
        label: 'Date' 
      },
      { 
        label: 'Downloads',
        defaultAggregationType: 'SUM',
        name: 'downloads',
        dataType: 'NUMBER' 
      } 
    ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant