Skip to content

Commit

Permalink
Release 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaTretyak committed Mar 26, 2021
1 parent dc438bb commit c954ede
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
9 changes: 8 additions & 1 deletion versions/3.1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<a name="3.1.1"></a>
# [3.1.1](https://github.com/ts-stack/ditsmod/releases/tag/3.1.1) (2021-03-26)

### Features

- Added extended interfaces with a prefix `X`.

<a name="3.1.0"></a>
# [3.1.0](https://github.com/ts-stack/ditsmod/releases/tag/3.1.0) (2021-02-17)
## [3.1.0](https://github.com/ts-stack/ditsmod/releases/tag/3.1.0) (2021-02-17)

### Breaking Changes

Expand Down
17 changes: 15 additions & 2 deletions versions/3.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ but the patch version is not the same:

| OpenAPI Specification | @ts-stack/open-api-spec |
|-------------------------|-------------------------|
| v3.1.0 | <ul><li>v3.1.0</li></ul>|
| v3.1.0 | <ul><li>v3.1.0</li><li>v3.1.1</li></ul> |


## Introduction
Expand All @@ -33,7 +33,20 @@ npm i @ts-stack/open-api-spec

## SpecificationExtension Usage

You can extends any of model in this way:
If you want to use already extended interfaces, you need to import interfaces with the `X` prefix:

```ts
import { XOasObject } from '@ts-stack/open-api-spec';

const extendedOasObject: XOasObject<'x-one' | 'x-two'> = {
info: {title: '', version: ''},
openapi: '',
'x-one': '',
'x-two': '',
};
```

Or, you can extends any of model in this way:

```ts
import { OasObject, SpecificationExtension } from '@ts-stack/open-api-spec';
Expand Down
2 changes: 1 addition & 1 deletion versions/3.1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-stack/open-api-spec",
"version": "3.1.0",
"version": "3.1.1",
"description": "This is OpenAPI Specification v3.1.0 writen in TypeScript.",
"main": "dist/index",
"typings": "dist/index",
Expand Down

0 comments on commit c954ede

Please sign in to comment.