OpenApiSpec constructor

const OpenApiSpec({
  1. required OpenApiInfo info,
  2. OpenApiExternalDocs? externalDocs,
  3. List<String>? servers,
})

Creates an OpenAPI specification instance.

Parameters:

  • info contains the metadata of the API (required).
  • externalDocs provides links to external documentation (optional).
  • servers lists the servers where the API is available (optional).

Implementation

const OpenApiSpec({
  required this.info,
  this.externalDocs,
  this.servers,
});