Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Multiple Data Source Dropdown Values #44

Open
aqmnguyen opened this issue Jul 19, 2018 · 0 comments
Open

Multiple Data Source Dropdown Values #44

aqmnguyen opened this issue Jul 19, 2018 · 0 comments

Comments

@aqmnguyen
Copy link

When there are multiple data source fields, regardless of the sample value in the manifest.yml it seems to pulls in all the referenced sample files.

For example when opening the second DS I have open in this test app I see the following:

screenshot 2018-07-19 17 55 40
https://www.dropbox.com/s/vpbkrmd2xpn0ajy/Screenshot%202018-07-19%2017.55.40.png?dl=0

In the manifest.yml file I've only defined the nyc.json file.

screenshot 2018-07-19 17 59 17

https://www.dropbox.com/s/6ogadnv2dzh2ssu/Screenshot%202018-07-19%2017.59.17.png?dl=0

Full data source definition below:

data_source_definitions:
  pokeapi:
    url: 'https://pokeapi.co/api/v2/pokemon/[pokemonID]/'
    type: ApiDataSource
    content_type: application/json
    name: Pokemon API
    sample_responses:
      - name: Bulbasaur
        path: sample_data/1.json
      - name: Charizard
        path: sample_data/6.json
      - name: Blastoise
        path: sample_data/9.json

  weather:
    url: 'https://api.darksky.net/forecast/[key]/[lat],[lon]'
    type: ApiDataSource
    content_type: application/json
    name: Weather API
    sample_responses:
      - name: NYC
        path: sample_data/nyc.json
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