Choice returns UnsupportedField when used with Field
See original GitHub issueBug report
What’s wrong
I was attempting to use choice
within Schema generation to pick from a list of options but ran into an UnsupportedField
error.
It would appear that AbsrtractField returns UnsupportedField when used with on Choice
provider.
Example:
>>> from mimesis.schema import Field, Schema
>>> _ = Field('en')
>>> _('choice', items=[1,2,3])
Traceback (most recent call last):
File "C:\dev\fakemimesis\.pyenv\lib\site-packages\mimesis\schema.py", line 100, in __call__
result = self._table[name](**kwargs)
KeyError: 'choice'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#24>", line 1, in <module>
_('choice', items=[1,2,3])
File "C:\dev\fakemimesis\.pyenv\lib\site-packages\mimesis\schema.py", line 105, in __call__
raise UnsupportedField(name)
mimesis.exceptions.UnsupportedField: Field «choice» is not supported.
>>>
System information
Python version: 3.6.5 Mimesis version: 3.0.0 OS: Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Supported And Unsupported Columns In SharePoint ...
Use Choice Column in SharePoint Calculated Column Formula ... The choice field with single selection is only supported in the SharePoint ...
Read more >An error message : TF400645 Missing or unsupported field id 0
Developer Community. And when I want to create a work item, I have the error message: In my Work Item rules setting, I...
Read more >React/Firebase -> DocumentReference.set() called with ...
set() called with invalid data. Unsupported field value: undefined (found in field lastname in document av_deliveries/[object Object])" ", it ...
Read more >Global Option Set "data type unsupported for evaluation"
I'm working on an app that displays an edit form connected to a D365 entity called 'Contact Ext (NAC)'. Many of the fields...
Read more >Unsupported operand types in LinkFormatter->buildUrl()
Nope, you can't. It's obviously an erroneous condition, it shouldn't happen. I had fields in migrated old content that had the options missing....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s done. 3.1.0 has been released. Thanks for the bug report!
Thanks! I ended doing something similar but with a custom provider.