Skip to content

API: add JSON schema validation #16

Description

@paullatzelsperger

All APIs should validate incoming request payload against a JSON schema. This is to make sure that

  • all required fields are present
  • all fields contain allowed values (numbers vs strings)
  • no unknown fields are present
  • all preconditions are met (e.g. referencing a non-existent foreign object)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apianything to do with REST APIsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions