|
Download tasks/format-code-task-000027/instruction.md from FineEnvs/MiMo-V2.6-RL-harbor-code: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000027/instruction.md
- Command line
-
hf download hf://datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/tasks/format-code-task-000027/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000027/instruction.md
887 Bytes
| Fix the following issue: | |
| Support string initialization for map in schema | |
| ### Prerequisites | |
| - [X] I have written a descriptive issue title | |
| - [X] I have searched existing issues to ensure the feature has not already been requested | |
| ### 🚀 Feature Proposal | |
| My project uses String for setting the type in schema of each keys like this: | |
| ```js | |
| username: { type: 'string', required: true } | |
| ``` | |
| In case of map, I just tried this style of code: | |
| ```js | |
| instance: { | |
| type: Schema.Types.Map, | |
| of: Schema.Types.Mixed, | |
| default: new Map<string, any>(), | |
| } | |
| ``` | |
| This is working code. But if I use 'Map' instead of `Schema.Types.Map`, compiler aborts to compile. | |
| ```js | |
| instance: { | |
| type: 'Map', | |
| of: 'Mixed', | |
| default: new Map<string, any>(), | |
| } | |
| ``` | |
| So, is it able to allow with setting the map type with String? | |
| ### Motivation | |
| _No response_ | |
| ### Example | |
| _No response_ |