Skip to content
This repository was archived by the owner on Feb 12, 2021. It is now read-only.
This repository was archived by the owner on Feb 12, 2021. It is now read-only.

Implement JSON schema validation #12

@teemukataja

Description

@teemukataja

Proposed solution

Implement JSON schema validation to endpoints for automatic structure checking and user feedback.

DoD (Definition of Done)

  • To elixir_rems_proxy/schemas/ write JSON schemas;
  • To elixir_rems_proxy/utils/validate.py implement validation functions;
  • Validate POST body;
  • Validate PATCH body (currently identical to post, should change in the future with new version of API specification);
  • Validate GET response.

Testing

Write unit tests for elixir_rems_proxy/utils/validate.py and update tests for endpoints.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions