sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

[HOLD] Initial map coordinates validator #684

Closed lwrubel closed 6 months ago

lwrubel commented 7 months ago

Why was this change made? 🤔

Refs #663.

@thatbudakguy there's probably some room to improve the clarity of the code. I made a few tweaks to the NavPlace code for it to fit here. Note that the NavPlace logic can handle extra characters in the coordinates string (it has a regex to extract the coordinates), so this validator does not care about that either.

Also probably good to add other invalid coordinates tests.

How was this change tested? 🤨

Unit tests

âš¡ âš  If this change has cross service impact, run integration tests and/or test in [stage|qa] environment, in addition to specs. âš¡

thatbudakguy commented 6 months ago

superseded by #688