Skip to content

fix: make campsites field optional in RecDotGovCampsiteResponse (closes #415)#416

Open
botbikamordehai2-sketch wants to merge 1 commit into
juftin:mainfrom
botbikamordehai2-sketch:fix/issue-415-1781874017
Open

fix: make campsites field optional in RecDotGovCampsiteResponse (closes #415)#416
botbikamordehai2-sketch wants to merge 1 commit into
juftin:mainfrom
botbikamordehai2-sketch:fix/issue-415-1781874017

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

The API response for Recreation Area ID 2845 may not include a campsites field or may return null for it, causing a Pydantic ValidationError during parsing.

Fix

Updated the RecDotGovCampsiteResponse model to make the campsites field optional (defaulting to None) so that missing or null values are handled gracefully instead of raising a validation error.

Closes #415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValidationError: 1 validation error for RecDotGovCampsiteResponse campsites field required (type=value_error.missing)

1 participant