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

Add JSON Schema definition of the submitted data to the JSON registration backend plugin #4980

Open
Tracked by #4908
viktorvanwijk opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
enhancement owner: venlo topic: registration waiting for approval An estimate was made but the stakeholder still needs to approve it.
Milestone

Comments

@viktorvanwijk
Copy link
Contributor

viktorvanwijk commented Jan 2, 2025

Sub task of #4908

Example

An example form with the following configuration:

  • Authentication via DigiD, capturing a BSN
  • First form step with text fields firstName and lastName
  • Second form step with a user upload attachment

Should lead to a JSON object being sent with the shape:

{
    "values":
    {
        "auth_bsn": "123456782",
        "firstName": "Donnie",
        "lastName": "Darko",
        "attachment": "<base64 encoded data>"
    },
    "schema":
    {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties":
        {
            "auth_bsn":
            {
                "type": "string",
                "pattern": "^\\d{9}$"
            },
            "firstName":
            {
                "type": "string"
            },
            "lastName":
            {
                "type": "string"
            },
            "attachment":
            {
                "type": "string",
                "contentEncoding": "base64"
            }
        },
        "required":
        [
            "auth_bsn",
            "firstName",
            "lastName"
        ],
        "additionalProperties": false
    }
}
@viktorvanwijk viktorvanwijk self-assigned this Jan 2, 2025
@viktorvanwijk viktorvanwijk added enhancement topic: registration waiting for approval An estimate was made but the stakeholder still needs to approve it. owner: venlo labels Jan 2, 2025
@viktorvanwijk viktorvanwijk changed the title Optionally, a JSON Schema definition of the submitted data is provided in the schema key Add JSON Schema definition of the submitted data to the JSON registration backend Jan 2, 2025
@viktorvanwijk viktorvanwijk changed the title Add JSON Schema definition of the submitted data to the JSON registration backend Add JSON Schema definition of the submitted data to the JSON registration backend plugin Jan 2, 2025
viktorvanwijk added a commit that referenced this issue Jan 2, 2025
…lugin

Just as an example of what will be implemented in #4980
@viktorvanwijk viktorvanwijk added this to the Release 3.1.0 milestone Jan 6, 2025
@viktorvanwijk viktorvanwijk moved this from Todo to In Progress in Development Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement owner: venlo topic: registration waiting for approval An estimate was made but the stakeholder still needs to approve it.
Projects
Status: In Progress
Development

No branches or pull requests

1 participant