(v, parameter_schema)
| 73 | |
| 74 | |
| 75 | def _cast(v, parameter_schema): |
| 76 | if v is None or not parameter_schema: |
| 77 | return v |
| 78 | |
| 79 | parameter_type = parameter_schema.get("type", None) |
| 80 | if not parameter_type: |
| 81 | return v |
| 82 | |
| 83 | cast = get_cast(cast_type=parameter_type) |
| 84 | if not cast: |
| 85 | return v |
| 86 | |
| 87 | return cast(v) |
| 88 | |
| 89 | |
| 90 | def _create_graph(action_context, config): |
no test coverage detected