@@ -234,7 +234,7 @@ def setup_incremental_object(
234234 if param_config .get ("end_value" ) or param_config .get ("end_param" ):
235235 raise ValueError (
236236 "Only `start_param` and `initial_value` are allowed in the configuration of"
237- f" param: { param_name } "
237+ f" param: ` { param_name } `. "
238238 "To set `end_value` too use the incremental configuration at the resource"
239239 " level. "
240240 "See https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/basic#incremental-loading"
@@ -499,8 +499,8 @@ def _bind_path_params(resource: EndpointResource) -> None:
499499 if len (resolve_params ) > 0 :
500500 raise ValueError (
501501 f"Resource `{ resource ['name' ]} ` defines resolve params `{ resolve_params } ` that are not"
502- f" bound in path `{ path } `. To reference parent resource in query params use"
503- " resources.<parent_resource>.<field> syntax. "
502+ f" bound in path `{ path } `. To reference parent resource in query params use syntax "
503+ " ' resources.<parent_resource>.<field>' "
504504 )
505505
506506 resource ["endpoint" ]["path" ] = "" .join (new_path_segments )
@@ -796,9 +796,9 @@ def collect_resolved_values(
796796 field_path = resolved_param .resolve_config ["field" ]
797797 raise ValueError (
798798 f"Resource expects a field `{ field_path } ` to be present in the incoming data from"
799- f" resource `{ parent_resource_name } ` in order to bind it to path param"
799+ f" resource `{ parent_resource_name } ` in order to bind it to path param: "
800800 f" `{ resolved_param .param_name } `. Available parent fields are:"
801- f" [ { ', ' . join (item .keys ())} ] "
801+ f" { list (item .keys ())} "
802802 )
803803
804804 params_values [resolved_param .param_name ] = field_values [0 ]
@@ -893,7 +893,7 @@ def build_parent_record(
893893 raise ValueError (
894894 f"Resource expects a field `{ parent_key } ` to be present in the incoming data "
895895 f"from resource `{ parent_resource_name } ` in order to include it in child records"
896- f" under `{ child_key } `. Available parent fields are: [ { ', ' . join (item .keys ())} ] "
896+ f" under `{ child_key } `. Available parent fields are: { list (item .keys ())} "
897897 )
898898 parent_record [child_key ] = item [parent_key ]
899899 return parent_record
@@ -976,7 +976,7 @@ def _raise_if_any_not_in(expressions: Set[str], available_contexts: Set[str], me
976976 if not any (expression .startswith (prefix + "." ) for prefix in available_contexts ):
977977 raise ValueError (
978978 f"Expression `{ expression } ` defined in `{ message } ` is not valid. Valid expressions"
979- f" must start with one of: [ { ', ' . join ( available_contexts ) } ] . If you need to use"
979+ f" must start with one of: ` { available_contexts } ` . If you need to use"
980980 " literal curly braces in your expression, escape them by doubling them: {{ and"
981981 " }}"
982982 )
0 commit comments