Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove requirement for default settings in schema #328

Closed
jimlambie opened this issue Sep 18, 2017 · 0 comments
Closed

Remove requirement for default settings in schema #328

jimlambie opened this issue Sep 18, 2017 · 0 comments
Assignees

Comments

@jimlambie
Copy link
Contributor

Expected behavior

When POSTing to a config endpoint with a schema, the settings block should not be validated.

Actual behavior

The schema is validated to ensure settings exist for 'cache', 'authenticate', 'callback', 'defaultFilters', 'fieldLimiters', 'count'. Each of these can be set to a default in the model instead.

https://github.com/dadi/api/blob/master/dadi/lib/help.js#L249

Package details

API all versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants