kevin-lee / sbt-devoops

Sbt Plugin with some tools to help build your project

Home Page:https://sbt-devoops.kevinly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add errors to FailedResponseBodyJson

kevin-lee opened this issue · comments

Task

Summary

Add errors to FailedResponseBodyJson. It will be available in the UnprocessableEntity error.

Project Details

Version: 2.15.0

Description

So the new FailedResponseBodyJson should be able to contain all the fields from the following JSON.

{
    "message": "Validation Failed",
    "errors": [
        {
            "code": "already_exists",
            "field": "tag_name",
            "resource": "Release"
        }
    ],
    "documentation_url": "https://docs.github.com/rest/reference/repos#create-a-release"
}