---
lang: en
title: 'API docs: openapi-spec-builder.anopenapispec'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.openapi-spec-builder.anopenapispec.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/openapi-spec-builder](./openapi-spec-builder.md) &gt; [anOpenApiSpec](./openapi-spec-builder.anopenapispec.md)

## anOpenApiSpec() function

Create a new instance of OpenApiSpecBuilder.

<b>Signature:</b>

```typescript
export declare function anOpenApiSpec(): OpenApiSpecBuilder;
```
<b>Returns:</b>

`OpenApiSpecBuilder`


