An open API service indexing awesome lists of open source software.

https://github.com/leoweyr/go-http-api-contract-io

Automatically handle strict request decoding, transparent validation with JSON-tag reflection, and standardized JSON responses.
https://github.com/leoweyr/go-http-api-contract-io

api-contract api-integration clean-code dx go-http golang http-request http-server json-response request-validation restful-api standardization

Last synced: 8 days ago
JSON representation

Automatically handle strict request decoding, transparent validation with JSON-tag reflection, and standardized JSON responses.

Awesome Lists containing this project

README

          

# Go HTTP API Contract IO

Automatically handle strict request decoding, transparent validation with JSON-tag reflection, and standardized JSON responses.

The library generates a standardized error response body designed for consistent API communication:

```json
{
"error": {
"message": "VALIDATION_FAILED",
"details": {}
}
}
```