Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Fix comment schema; return error when response data doesn't match schema #1023

Description

@danielbachhuber

In #955, @rmccue was able to change the response format for a comment without updating the schema. The API shouldn't ever return a response that doesn't match the declared schema.

In this issue, we should:

  1. Fix the schema, somewhat contingent on Establish criteria for when data should be nested in sub-objects on resources #1022
  2. Return a 500 error when the produced response doesn't match the schema, instead of a malformed object.

Note for the second, I'm just referring to fields in the response that are missing or of a different format than in the declared schema. Additional fields can be ignored.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions