Skip to content

fix(NOJIRA-123): fix Condition variable type property #52

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

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

nicolaslwilson
Copy link
Contributor

When I retrieve a form from Typeform I notice that some of my condition variables have the value 'choice' as the type, i.e.

                            {
                                "op": "is",
                                "vars": [
                                    {
                                        "type": "field",
                                        "value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
                                    },
                                    {
                                        "type": "choice",
                                        "value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"                                    }
                                ]
                            },

The value 'choice' doesn't appear to be listed in the docs Create API docs:

https://developer.typeform.com/create/reference/create-form/

If i've misunderstood, feel free to close this PR. Otherwise, this PR adds the value 'choice' to the Condition var type property.

When I retrieve a form from Typeform I notice that some of my condition variables have the value `'choice'` as the type, i.e.

```
                            {
                                "op": "is",
                                "vars": [
                                    {
                                        "type": "field",
                                        "value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
                                    },
                                    {
                                        "type": "choice",
                                        "value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"                                    }
                                ]
                            },
```

The value `'choice'` doesn't appear to be listed in the docs Create API docs:

https://developer.typeform.com/create/reference/create-form/

If i've misunderstood, feel free to close this PR. Otherwise, this PR adds the value `'choice'` to the Condition var `type` property.
@mathio mathio changed the title fix(types): fix Condition variable type property fix(NOJIRA-123): fix Condition variable type property Oct 4, 2023
@mathio mathio merged commit 4de9490 into Typeform:main Oct 4, 2023
@typeform-ops-gha
Copy link

🎉 This PR is included in version 1.8.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants