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

Evaluate JSON Schema for validation #36

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wagner-intevation
Copy link
Member

When creating a new organisation, the organsation data is now validated using a JSON schema. When this validation fails, a HTTP_UNPROCESSABLE_ENTITY response is sent to the client with details about the failure which the client could use to highlight the corresponding parts of the UI.

This code is primarily intended to demonstrate how JSON schema might be used for this. The Schema ist not necessarily complete and perhaps even incorrect.

When creating a new organisation, the organsation data is now validated
using a JSON schema. When this validation fails, a
HTTP_UNPROCESSABLE_ENTITY response is sent to the client with details
about the failure which the client could use to highlight the
corresponding parts of the UI.

This code is primarily intended to demonstrate how JSON schema might be
used for this. The Schema ist not necessarily complete and perhaps even
incorrect.
@wagner-intevation wagner-intevation marked this pull request as draft September 2, 2024 14:14
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