BlueBrain / BlueBrain/nexus

Apply schema mapping to resources

Open
#4,704 0 comments 0 reactions 0 assignees View on GitHub
delta feature
Dominant language
Scala
Stars
301
Forks
76
PR merge metrics
No merged PRs in 30d

Description

**Motivation**
Following #4703, about introducing a new entity to define and manage a schema mapping by type, the next step is to apply it to resources during creation

**Acceptance criteria**
1. When the schema is not provided by the user, Delta will inject a schema to validate the resource with from this configuration and resource validation will follow the same workflow as if it was provided by the user
2. If no mapping are found for a type, Delta will attempt to make it unconstrained (and return an error if this is not allowed on the enclosing project)

**Not in scope**
1. Updating the schema for resources when the schema mapping configuration is updated.

Contributor guide

Open the contributing guide

Research direction

Start with issue #4703 to understand the schema-mapping entity, then trace resource creation and the existing user-provided schema validation workflow. Apply the mapping only when no schema is supplied, fall back to an unconstrained resource when no mapping exists, and verify the enclosing project's constraints are respected; updating existing resources is out of scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.