Skip to content
This repository was archived by the owner on Sep 18, 2026. It is now read-only.
This repository was archived by the owner on Sep 18, 2026. It is now read-only.

fake.Json fails with snowfakery_version: 3 #1096

Description

@rrutum
- var: snowfakery_locale
  value: en_US
- snowfakery_version: 3
- object: SomeObject
  fields:
    formula_field_example: ${{fake.Json(data_columns={'Spec':'@1.0.1', 'ID':'pyint',
      'Details':{'Name':'name', 'Address':'address'}}, num_rows=2)}}

output:

snowfakery.data_gen_exceptions.DataGenValueError: Field 'formula_field_example' generated unexpected object: [{'Spec': '1.0.1', 'ID': 5730, 'Details': {'Name': 'Mrs. Samantha Brandt DVM', 'Address': '60884 Kathy Motorway\nLake Bernard, AZ 76551'}}, {'Spec': '1.0.1', 'ID': 9314, 'Details': {'Name': 'John Fowler', 'Address': 'PSC 9160, Box 4669\nAPO AE 08490'}}] <class 'list'>
 near /Users/rrutumlavana/Documents/repos/data-synthesizer-definitions/discoball/discoblueaerospike/snowfakery.yaml:4

This works with snowfakery_version 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions