nmfta-repo / nmfta-opentelematics-api

API Blueprint for Open Telematics API
Apache License 2.0
13 stars 6 forks source link

use regex for timestamps #72

Closed BenGardiner closed 5 years ago

BenGardiner commented 5 years ago

related to #23

the Aussie EWD rules have a regex for timestamps that we should use here

BenGardiner commented 5 years ago

The only way to set content restrictions in API blueprint is via a JSON schema specified explicitly on the actions. The JSON schema is otherwise generated from the data structures / attributes assigned to the action.

Specifying the JSON schemas explicitly (to override what is generated) is fragile since changes to the data structures will not propagate to the schema. As noted in #23, content filtering will yield the most bang-for-buck in the endpoints that receive data.

We'll resolve this issue by starting some groundwork for #23 by importing generated JSON Schemas into the POST PATCH PUT method endpoints and then refining the schema for the timestamps.