Skip to content

Repository defaults reference

Applies to version 0.1

The repository defaults file, gateway.yaml, at the root of a repository of APIs: defaults every overlay file can override. Not the gateway’s own configuration file, also called gateway.yaml by its README; see the words and names rule of the documentation spec, section 9. Generated from its JSON Schema.

Field Type Description
defaults object
defaults.char object
defaults.char.pad left or right
defaults.char.padChar string
defaults.char.nullAs string
defaults.inputoutput both or fail
defaults.largeArrayThreshold integer A fixed output array of at least this many elements without trim is reported (OVL005). Default 100.
defaults.maxResponseValues integer The largest number of scalar values a response may hold after trimming. Default 100000.
emitters array

Repository-wide defaults only. Every key is optional.

defaults:
  char:
    pad: left
    padChar: "0"
    nullAs: ""
  inputoutput: fail
  largeArrayThreshold: 100
  maxResponseValues: 100000
emitters:
  - descriptor
  - openapi
  - mock