Skip to content

Modify collection schema #388

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

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Conversation

rashtao
Copy link
Collaborator

@rashtao rashtao commented Apr 27, 2021

added schema attribute to CollectionPropertiesOptions

" }" +
" }")
.replaceAll("\\s", "");
String schemaMessage = "The document has problems!";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily in this pr, but shouldn't the message be configurable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code here is from the tests. Also, the message is the same for any validation error, since:

The schema validation cannot pin-point which part of a rule made it fail

See https://www.arangodb.com/docs/stable/data-modeling-documents-schema-validation.html#error-message

@rashtao rashtao merged commit 14a5a89 into master Apr 28, 2021
@rashtao rashtao deleted the feature/modify_collection_schema branch July 19, 2022 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants