18F / omb-eregs

A tool to find, read, and maintain White House Office of Management and Budget (OMB) policy requirements

Home Page:https://policy-beta.cio.gov/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validate "type_emblem" in PUT API requests

toolness opened this issue · comments

Since type_emblem is ultimately part of an element's (auto-generated) identifier, we should make sure that it:

  • only contains alphanumeric-ish characters (figure out what the actual criteria is).
  • doesn't cause an element's identifier to become non-unique. I think this means that we should ensure that the (node_type, type_emblem) is unique among all immediate children of any given node.