-
Notifications
You must be signed in to change notification settings - Fork 75
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 string parameter types #1094
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Web API would also have to be tested for exposing such types.
@nikhilwoodruff Do you have all the information you need about the Web API test suggested above? |
Thanks @MattiSG and @sandcha - not sure I fully understand what exactly the Web API should test for, could you provide any more detail? |
The test you added tests the Python API of OpenFisca 👍 That's a great starting point! However, by enabling new data types to be exposed, this changeset also changes the Web API (the module that exposes parameter values and calculations over RESTful HTTP). The web API is packaged in its own module ( This is done by editing the Finally, of course, updating the documentation would be a great final touch for users to know about this new feature 😉 |
This PR fixes #1092 by supporting string parameters. I've added a test for it, and removed an old test which would now be incorrect (testing that a string parameter fails).