Skip to content
This repository has been archived by the owner on Jan 7, 2018. It is now read-only.

Setup error data for easier overriding of URL variables. #21

Merged
merged 2 commits into from
Oct 9, 2015

Conversation

GUI
Copy link
Member

@GUI GUI commented Sep 19, 2015

Now there's a concept of "common" error data variables, which we can use so that contact URLs (and other things like this) only have to be defined once per API backend, which makes it much easier to define variables only once which can then be embedded in other areas of the error response.

See: 18F/api.data.gov#285

This also begins to cleanup and standardize the error data variables to snake_case moving forward (instead of some of our odd mixtures of camel-case that had built up over time).

Now there's a concept of "common" error data variables, which we can use
so that contact URLs (and other things like this) only have to be
defined once per API backend, which makes it much easier to define
variables only once which can then be embedded in other areas of the
error response.

See: 18F/api.data.gov#285

This also begins to cleanup and standardize the error data variables to
snake_case moving forward (instead of some of our odd mixtures of
camel-case that had built up over time).
Due to the order in which these were being looped over, if these
variables contained other internal variables, the legacy copies weren't
working properly (since they were bein modified later).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant