Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support boolean values #15

Open
dziamid opened this issue Apr 11, 2017 · 0 comments
Open

Support boolean values #15

dziamid opened this issue Apr 11, 2017 · 0 comments

Comments

@dziamid
Copy link

dziamid commented Apr 11, 2017

Right now if you use boolean values in fixtures.yml, you we not get what you expected:


//task.json
{
  "name": "task",
  "base": "MyPersistedModel",
  "idInjection": true,
  "properties": {
    "completed": {
      "type": "boolean"
    }
}

//fixture/data.yml
task:
  task_1:
    completed: true //will be `true`
  task_2:
    completed: false //will be `true`
  task_3:
    completed: 1 //will be `true`
  task_4:
    completed: 0 //will be `true`
  task_5:
    completed: "1" //will be `true`
  task_6:
    completed: "0" //this is the only what to actually get a `false` value in db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant