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

stricter schema validation? #207

Open
wkdewey opened this issue Sep 26, 2022 · 2 comments
Open

stricter schema validation? #207

wkdewey opened this issue Sep 26, 2022 · 2 comments
Assignees
Labels
Discuss issues that require discussion before moving forward feature request

Comments

@wkdewey
Copy link
Contributor

wkdewey commented Sep 26, 2022

Although the latest release includes schema validation, it is still possible to post fields that conflict with the schema, and this leads to errors if you post in the same index later (especially if you posted with the wrong version of the schema). I wonder if Datura (and specifically the 2.0 version of the API) should be modified to reject these extraneous fields.

@wkdewey wkdewey added feature request Discuss issues that require discussion before moving forward labels Sep 26, 2022
@karindalziel
Copy link
Member

Strict validation is a good idea

@wkdewey
Copy link
Contributor Author

wkdewey commented Oct 27, 2022

It looks like this feature is already included in 2.0, documents with extra fields will not validate or post. The examples were with 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discuss issues that require discussion before moving forward feature request
Projects
None yet
Development

No branches or pull requests

3 participants