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

Prohibit from using Nexus vocab types in generic resources #5046

Merged

Conversation

imsdu
Copy link
Contributor

@imsdu imsdu commented Jun 28, 2024

Fixes #5043

@imsdu imsdu changed the title Restrict from using Nexus vocab types in generic resources Prohibit from using Nexus vocab types in generic resources Jun 28, 2024
@@ -93,7 +98,7 @@ final class ResourcesRoutes(
.flatTap(index(project, _, mode))
.map(_.void)
.attemptNarrow[ResourceRejection]
.rejectOn[InvalidSchemaRejection]
.rejectWhen(rejectPredicateOnWrite)
Copy link
Contributor

Choose a reason for hiding this comment

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

"reject when reject predicate on write" doesn't communicate what is happening here

@imsdu imsdu merged commit 673a1b6 into BlueBrain:master Jun 28, 2024
7 checks passed
@imsdu imsdu deleted the 5043-prevent-generic-resources-nexus-vocab branch June 28, 2024 15:23
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.

Prevent a generic resource to be created with a type from the Nexus vocabulary
2 participants