@@ -8,7 +8,7 @@ but the patch version is not the same:
88
99| OpenAPI Specification | @ts-stack/openapi-spec |
1010| -------------------------| -------------------------|
11- | v3.1.0 | <ul ><li >v3.1.0</li ><li >v3.1.1</li ><li >v3.1.2</li ><li >v3.1.3</li ><li >v3.1.4</li ><li >v3.1.5</li ></ul > |
11+ | v3.1.0 | <ul ><li >v3.1.0</li ><li >v3.1.1</li ><li >v3.1.2</li ><li >v3.1.3</li ><li >v3.1.4</li ><li >v3.1.5</li ><li >v3.1.6</ li >< /ul > |
1212
1313
1414## Introduction
@@ -29,8 +29,6 @@ and many other use cases.
2929npm i -D @ts-stack/openapi-spec
3030```
3131
32- [ 1 ] : https://github.com/OAI/OpenAPI-Specification
33-
3432## openapi version usage
3533
3634You can use the ` openapi ` constant that contains the version of the OpenAPI Specification:
@@ -49,7 +47,7 @@ If you want to use already extended interfaces, you need to import interfaces wi
4947import { XOasObject } from ' @ts-stack/openapi-spec' ;
5048
5149const extendedOasObject: XOasObject <' x-one' | ' x-two' > = {
52- info: {title: ' ' , version: ' ' },
50+ info: { title: ' ' , version: ' ' },
5351 openapi: ' ' ,
5452 ' x-one' : ' ' ,
5553 ' x-two' : ' ' ,
@@ -64,7 +62,7 @@ import { OasObject, SpecificationExtension } from '@ts-stack/openapi-spec';
6462type ExtendedOasObject = OasObject & SpecificationExtension <' x-one' | ' x-two' >;
6563
6664const extendedOasObject: ExtendedOasObject = {
67- info: {title: ' ' , version: ' ' },
65+ info: { title: ' ' , version: ' ' },
6866 openapi: ' ' ,
6967 ' x-one' : ' ' ,
7068 ' x-two' : ' ' ,
@@ -105,3 +103,6 @@ const paths: StrictDifinedPaths = {
105103 ' /two' : {},
106104};
107105```
106+
107+
108+ [ 1 ] : https://github.com/OAI/OpenAPI-Specification
0 commit comments