centralizedSpec method

OpenApi centralizedSpec()

Return a centralized OpenAPI spec.

This will convert all complex schemas that are found in the paths to references and move the complex schemas to the components section.

Implementation

OpenApi centralizedSpec() {
  final centralizer = SchemaCentralizer(this);
  final centralizedSpec = centralizer.centralizedSpec();
  return centralizedSpec;
}