You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation
The resource endpoint is very permissive as it can accept almost any valid json-ld payload to create a resource.
This can cause some problems as someone can create what should be a schema or a view with this endpoint: the resource then has the correct json-ld type but is still considered a generic resource and extra validation is not applied.
Ex:
Import resolution for schemas
Creation of the index and validation of the mapping/settings for Elasticsearch views
Acceptance criteria
When attempting to create a generic resource when one of the types belongs to the Nexus vocabulary (so a type starting with https://bluebrain.github.io/nexus/vocabulary/), an error is returned
Implementation notes
This error must be translated as an Akka rejection in ResourcesRoutes
The text was updated successfully, but these errors were encountered:
imsdu
changed the title
Prevent resources with a type from the Nexus vocabulary to be created with the resource endpoint
Prevent a generic resource to be created with a type from the Nexus vocabulary
Jun 26, 2024
Motivation
The resource endpoint is very permissive as it can accept almost any valid json-ld payload to create a resource.
This can cause some problems as someone can create what should be a schema or a view with this endpoint: the resource then has the correct json-ld type but is still considered a generic resource and extra validation is not applied.
Ex:
Acceptance criteria
Implementation notes
This error must be translated as an Akka rejection in
ResourcesRoutes
The text was updated successfully, but these errors were encountered: