GSA / GSA/data.gov

spatial_filter, org_type parameters silently ignore invalid values

Open
#5,899 0 comments 0 reactions 0 assignees View on GitHub
API bug Catalog
Dominant language
Python
Stars
1.1k
Forks
200
Avg merge
4h 56m
Merged PRs (30d)
5

Description

## Description
Passing invalid values to `spatial_filter` or `org_type` on `/search` returns HTTP 200 with unfiltered or empty results rather than a validation error.

## Steps to Reproduce
GET https://catalog.data.gov/search?spatial_filter=badvalue
GET https://catalog.data.gov/search?org_type=FakeType

## Expected Behavior
HTTP 422 -- both parameters have a fixed set of valid values defined in the OpenAPI spec.

## Actual Behavior
- `spatial_filter=badvalue` returns HTTP 200 with unfiltered results as if the parameter was not provided
- `org_type=FakeType` returns HTTP 200 with zero results -- indistinguishable from a valid org type with no matching datasets

## Notes
Confirmed April 27, 2026. May be intentional permissive behavior -- need to confirm. If intentional, at minimum the docs should note that invalid values are silently ignored.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.