Skip to content

Instantly share code, notes, and snippets.

@notEthan
Created November 25, 2019 16:14
Show Gist options
  • Save notEthan/1627d9ba103d4e86a10860ccf47e897f to your computer and use it in GitHub Desktop.
Save notEthan/1627d9ba103d4e86a10860ccf47e897f to your computer and use it in GitHub Desktop.

Schema

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated No Experimental No Forbidden Permitted ur.schema.json

Properties

Property Type Required Nullable Defined by
bound enum Optional No (this schema)
processing object Optional No (this schema)
request object Optional No (this schema)
response object Optional No (this schema)
* any Additional Yes this schema allows additional properties

bound

[rfc2616] Inbound and outbound refer to the request and response paths for messages: "inbound" means "traveling toward the origin server", and "outbound" means "traveling toward the user agent"

bound

  • is optional
  • type: enum
  • defined in this schema

The value of this property must be equal to one of the known values below.

bound Known Values

Value Description
inbound
outbound

processing

processing

  • is optional
  • type: object
  • defined in this schema

processing Type

object with following properties:

Property Type Required
began_at_s string Optional
duration number Optional
tags array Optional

began_at_s

began_at_s

  • is optional
  • type: string
began_at_s Type

string

duration

duration

  • is optional
  • type: number
duration Type

number

tags

tags

  • is optional
  • type: string[]
tags Type

Array type: string[]

All items must be of the type: string

request

request

  • is optional
  • type: object
  • defined in this schema

request Type

object with following properties:

Property Type Required
body string Optional
headers object Optional
method string Optional
uri string Optional

body

body

  • is optional
  • type: string
body Type

string

headers

headers

  • is optional
  • type: object
headers Type

object with following properties:

Property Type Required

method

HTTP

method

  • is optional
  • type: string
method Type

string

uri

uri

  • is optional
  • type: string
uri Type

string

response

response

  • is optional
  • type: object
  • defined in this schema

response Type

object with following properties:

Property Type Required
body string Optional
headers object Optional
status integer Optional

body

body

  • is optional
  • type: string
body Type

string

headers

headers

  • is optional
  • type: object
headers Type

object with following properties:

Property Type Required

status

status

  • is optional
  • type: integer
status Type

integer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment