Skip to content

[ENHANCEMENT] Add shelter class to the buildings schema - #656

Merged
Seth Fitzsimmons (sethfitz) merged 2 commits into
mainfrom
atiannicelli-add-shelter-building-class
Aug 13, 2026
Merged

[ENHANCEMENT] Add shelter class to the buildings schema#656
Seth Fitzsimmons (sethfitz) merged 2 commits into
mainfrom
atiannicelli-add-shelter-building-class

Conversation

@atiannicelli

Copy link
Copy Markdown
Contributor

Summary

Adds a shelter value to the class enum of buildings/building so that shelter structures — e.g. public transport (bus stop) shelters mapped in OSM as amenity=shelter + building=* — can receive a class instead of being left null.

Fixes #326

Changes

  • schema/buildings/building.yaml: add shelter to the class enum (alphabetical order)
  • packages/overture-schema-theme-buildings/src/overture/schema/buildings/building.py: add SHELTER = "shelter" to BuildingClass
  • packages/overture-schema-theme-buildings/tests/building_baseline_schema.json: add "shelter" to the baseline enum

Non-breaking enum addition; no migration needed.

Note: a follow-up change in the data pipeline is required to actually map OSM amenity=shelter / building=shelter features to class=shelter.

Testing

  • pytest packages/overture-schema-theme-buildings/ — baseline JSON-schema tests pass (2 passed)
  • Verified schema/buildings/building.yaml parses and the class enum remains alphabetically sorted

Adds 'shelter' to the building class enum so structures like public
transport shelters (OSM amenity=shelter + building=*) can receive a
class value instead of null.

Fixes #326

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alex Iannicelli <atiannicelli@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the buildings/building schema to classify shelter structures by adding a shelter option to the class enum, enabling OSM-derived shelter buildings to be assigned a non-null class value.

Changes:

  • Added shelter to the class enum in the building YAML schema (kept alphabetically sorted).
  • Added SHELTER = "shelter" to the Python BuildingClass enum.
  • Updated the baseline JSON-schema test fixture to include "shelter" in the enum list.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
schema/buildings/building.yaml Adds shelter to the class enum in the canonical schema.
packages/overture-schema-theme-buildings/src/overture/schema/buildings/building.py Adds the matching Python enum constant for BuildingClass.
packages/overture-schema-theme-buildings/tests/building_baseline_schema.json Updates the baseline enum list to keep schema tests in sync.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

🗺️ Schema reference docs preview is live!

🌍 Preview https://staging.overturemaps.org/schema/pr/656/schema/index.html
🕐 Updated Aug 12, 2026 20:10 UTC
📝 Commit 685adac
🔧 env SCHEMA_PREVIEW true

Note

♻️ This preview updates automatically with each push to this PR.

@atiannicelli Alex Iannicelli (atiannicelli) added the change type - minor 🤏 Minor schema change. See https://lf-overturemaps.atlassian.net/wiki/x/GgDa label Aug 12, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alex Iannicelli <atiannicelli@gmail.com>
@sethfitz
Seth Fitzsimmons (sethfitz) merged commit 2a6170c into main Aug 13, 2026
25 checks passed
@sethfitz
Seth Fitzsimmons (sethfitz) deleted the atiannicelli-add-shelter-building-class branch August 13, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change type - minor 🤏 Minor schema change. See https://lf-overturemaps.atlassian.net/wiki/x/GgDa

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bus stops not receiving a class attribute in the buildings/building theme/type

4 participants