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

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

[Home](./index.md) &gt; [@loopback/openapi-v3](./openapi-v3.md) &gt; [createEmptyApiSpec](./openapi-v3.createemptyapispec.md)

## createEmptyApiSpec() function

> Warning: This API is now obsolete.
> 
> Use `OpenApiBuilder` from `openapi3-ts` instead.
> 

Create an empty OpenApiSpec object that's still a valid openapi document.

<b>Signature:</b>

```typescript
export declare function createEmptyApiSpec(): OpenApiSpec;
```
<b>Returns:</b>

`OpenApiSpec`


