Files
unleash/src/lib/error
Christopher Kolstad 5cdb3f665a task: Ban changes to variants through feature (#1130)
* task: Ban changes to variants through feature

After adding the new `/variants` endpoint for features we now have a way
to access control adding/modifying variants, so the /:featureName
endpoint should no longer allow editing/adding variants.

This removes variants as a known field from the featureMetadata schema
and tells joi to stripUnknown, thus making sure we never include
variants in the initial creation or future update calls.

For the old features v1 API we allow it to declare that it has already
validated the data coming with its own schema, so we should use the data
we get from it. Thus keeping the old v1 functionality intact

Co-authored-by: Simon Hornby <simon@getunleash.ai>
2021-11-25 14:53:58 +01:00
..
2021-07-07 10:46:50 +02:00
2021-07-07 10:46:50 +02:00
2021-04-16 15:29:23 +02:00
2021-04-16 15:29:23 +02:00
2021-04-16 15:29:23 +02:00