diff --git a/src/stac_api_validator/validations.py b/src/stac_api_validator/validations.py index 0e847b4..d5af1fd 100644 --- a/src/stac_api_validator/validations.py +++ b/src/stac_api_validator/validations.py @@ -2185,7 +2185,6 @@ def validate_exclude_field( field: str, errors: Errors, warnings: Warnings, - disallow_extra: bool = True, ): if not body or not (item := first_item(body)): errors += f"[{context}] : response had no items in response for {desc}" @@ -2200,10 +2199,6 @@ def validate_exclude_field( if value: errors += f"[{context}] : {desc} response contained '{field}', but should have been excluded" - if disallow_extra: - if len(item) < 5: - errors += f"[{context}] : {desc} response contained fewer than 5 fields {list(item.keys())}" - if Method.GET in search_method_to_url: _, body, _ = retrieve( Method.GET, @@ -2384,7 +2379,7 @@ def validate_post_case(fields: Any, msg: str): r_session=r_session, ) desc = f"GET fields='{field}'" - validate_exclude_field(desc, body, "geometry", errors, warnings, False) + validate_exclude_field(desc, body, "geometry", errors, warnings) validate_include_field( desc, body, fields_nested_property, errors, warnings, True )