Skip to content

Instantly share code, notes, and snippets.

@dtkav
Created October 4, 2018 04:54
Show Gist options
  • Save dtkav/ea5299fd70997bf288f4b1a3759dea2b to your computer and use it in GitHub Desktop.
Save dtkav/ea5299fd70997bf288f4b1a3759dea2b to your computer and use it in GitHub Desktop.
RFC-7809-jsonschema.yaml
Error:
description: schema for problem+json (RFC 7807)
type: object
required:
- type
properties:
type:
description: A URI reference [RFC3986] that identifies the problem type.
type: string
format: uri
title:
description: A short, human-readable summary of the problem type.
type: string
status:
description: The HTTP status code ([RFC7231], Section 6) generated by the
origin server for this occurrence of the problem.
type: number
instance:
description: A URI reference that identifies the specific occurrence of the
problem.
type: string
detail:
description: A human-readable explanation specific to this occurrence of the
problem.
type: string
debugging:
description: Debugging information for DEV and QA environments.
type: string
invalid-params:
description: An array of validation errors.
type: array
items:
description: The validation error descriptor.
type: object
required:
- path
- name
- reason
properties:
path:
type: string
name:
type: string
reason:
type: string
additionalProperties: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment