Closed quintenvk closed 8 years ago
Issue can be closed. The error was as follows:
I had a JSON file that had an array of objects in it (to configure my inputs). That json file was imported by webpack as follows:
import * as fields from './form-fields.json';
I then assigned the fields as $scope.fields = fields;
This assigned a fields
object, so the fix was
$scope.fields = fields.default;
in order to access the array as intended.
I'm currently importing the following JSON as fields:
But yet, I get the error stated in the title. This is what I get back from the API:
As far as I can see, the data does fit the requirements. If I need to post my types/wrappers as well, let me know.