opendata / Hunting-and-Fishing

Rendering hunting and fishing regulations as open data. [RETIRED]
MIT License
17 stars 3 forks source link

Document the constrained "method" vocabulary #23

Open waldoj opened 10 years ago

waldoj commented 10 years ago

Each method element specifies a method of hunting. Valid values include "archery," "firearms," and "muzzleloader," among others. At a minimum, we should document what the possible values are. Better, we should provide another dataset of machine-readable information defining each of these methods.

waldoj commented 10 years ago

This, of course, will be part of the schema (per #4), from which we'll generate the schema documentation.

waldoj commented 9 years ago

I have to believe that JSON Schema v0.4 addresses this. It has an enum data type, but I think that only allows 1 value, not n values. Maybe combined with oneOf?

waldoj commented 9 years ago

Or maybe just use pattern?