Skip to content
Last updated

hideInfoMetadata

You can add metadata to an API with the info.x-metadata extension or the metadata configuration option. The API reference displays that metadata by default.

The hideInfoMetadata setting is not available in Redoc Community Edition.

Screenshot of API documentation where hideInfoMetadata option is set to false

To omit the metadata section, set the hideInfoMetadata option.

Options

OptionTypeDescription
hideInfoMetadatabooleanHide the OpenAPI info metadata section of the API reference page. Default: false.

Examples

The following example hides the metadata content:

redocly.yaml
openapi:
  hideInfoMetadata: true
openapi.yaml
openapi: 3.1.0
info:
  title: Redocly Museum API
  description: Imaginary, but delightful Museum API for interacting with museum services and information.
  Built with love by Redocly.
  version: 1.1.0
  x-metadata:
    createdAt: '2016-11-15T00:53:45.524Z'
    domain: fake-museum-example.com
...
Screenshot of API documentation where hideInfoMetadata is set to true

Resources