@tsed/openspec 8.34.0 → 8.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types/openspec2/OS2Operation.d.ts +2 -2
- package/lib/types/openspec2/OS2Parameter.d.ts +1 -1
- package/lib/types/openspec2/OS2Paths.d.ts +2 -2
- package/lib/types/openspec2/OS2Response.d.ts +1 -1
- package/lib/types/openspec2/OS2Schema.d.ts +1 -1
- package/lib/types/openspec2/OpenSpec2.d.ts +5 -5
- package/lib/types/openspec3/OS3Callbacks.d.ts +1 -1
- package/lib/types/openspec3/OS3Components.d.ts +1 -1
- package/lib/types/openspec3/OS3Encoding.d.ts +1 -1
- package/lib/types/openspec3/OS3Header.d.ts +1 -1
- package/lib/types/openspec3/OS3Link.d.ts +1 -1
- package/lib/types/openspec3/OS3MediaType.d.ts +2 -2
- package/lib/types/openspec3/OS3Operation.d.ts +3 -3
- package/lib/types/openspec3/OS3Parameter.d.ts +2 -2
- package/lib/types/openspec3/OS3Paths.d.ts +2 -2
- package/lib/types/openspec3/OS3RequestBody.d.ts +2 -2
- package/lib/types/openspec3/OS3Response.d.ts +2 -2
- package/lib/types/openspec3/OS3Schema.d.ts +1 -1
- package/lib/types/openspec3/OpenSpec3.d.ts +4 -4
- package/package.json +14 -15
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { OS2Parameter } from "./OS2Parameter.js";
|
|
2
|
+
import { OS2Response } from "./OS2Response.js";
|
|
1
3
|
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
4
|
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
3
5
|
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
4
6
|
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
5
|
-
import { OS2Parameter } from "./OS2Parameter.js";
|
|
6
|
-
import { OS2Response } from "./OS2Response.js";
|
|
7
7
|
export interface OS2Operation {
|
|
8
8
|
/**
|
|
9
9
|
* A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenSpecTypes } from "../common/OpenSpecTypes.js";
|
|
2
1
|
import { OS2BaseSchema, OS2Schema } from "./OS2Schema.js";
|
|
2
|
+
import { OpenSpecTypes } from "../common/OpenSpecTypes.js";
|
|
3
3
|
export type OS2BaseParameter = {
|
|
4
4
|
name: string;
|
|
5
5
|
in: "body" | "query" | "path" | "header" | "formData";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OpenSpecPath } from "../common/OpenSpecPath.js";
|
|
2
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
1
|
import { OS2Operation } from "./OS2Operation.js";
|
|
4
2
|
import { OS2Parameter } from "./OS2Parameter.js";
|
|
3
|
+
import { OpenSpecPath } from "../common/OpenSpecPath.js";
|
|
4
|
+
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
5
5
|
export interface OS2Paths extends OpenSpecPath<OS2Operation> {
|
|
6
6
|
parameters?: (OS2Parameter | OpenSpecRef)[];
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
1
|
import { OS2Header } from "./OS2Header.js";
|
|
3
2
|
import { OS2Schema } from "./OS2Schema.js";
|
|
3
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
4
4
|
export interface OS2Response {
|
|
5
5
|
/**
|
|
6
6
|
* A short description of the response. GFM syntax can be used for rich text representation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
1
|
import { OpenSpecBaseJsonSchema, OpenSpecJsonSchema } from "../common/OpenSpecJsonSchema.js";
|
|
2
|
+
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
3
3
|
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
4
4
|
import { OpenSpecXML } from "../common/OpenSpecXML.js";
|
|
5
5
|
export interface OS2XML {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
3
|
-
import { OpenSpecInfo } from "../common/OpenSpecInfo.js";
|
|
4
|
-
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
5
|
-
import { OpenSpecTag } from "../common/OpenSpecTag.js";
|
|
6
1
|
import { OS2BodyParameter, OS2QueryParameter } from "./OS2Parameter.js";
|
|
7
2
|
import { OS2Paths } from "./OS2Paths.js";
|
|
8
3
|
import { OS2Response } from "./OS2Response.js";
|
|
9
4
|
import { OS2Schema } from "./OS2Schema.js";
|
|
10
5
|
import { OS2Security } from "./OS2Security.js";
|
|
6
|
+
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
7
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
8
|
+
import { OpenSpecInfo } from "../common/OpenSpecInfo.js";
|
|
9
|
+
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
10
|
+
import { OpenSpecTag } from "../common/OpenSpecTag.js";
|
|
11
11
|
export interface OpenSpec2 {
|
|
12
12
|
/**
|
|
13
13
|
* Specifies the Swagger Specification version being used. It can be used by the Swagger UI and other clients to interpret the API listing. The value MUST be "2.0".
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
1
|
import { OS3Paths } from "./OS3Paths.js";
|
|
3
2
|
import { OS3Schema } from "./OS3Schema.js";
|
|
3
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
4
4
|
export type OS3Callbacks<Schema = OS3Schema> = OpenSpecHash<OpenSpecHash<OS3Paths<Schema>>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
1
|
import { OS3Callbacks } from "./OS3Callbacks.js";
|
|
3
2
|
import { OS3Example } from "./OS3Example.js";
|
|
4
3
|
import { OS3Header } from "./OS3Header.js";
|
|
@@ -8,6 +7,7 @@ import { OS3RequestBody } from "./OS3RequestBody.js";
|
|
|
8
7
|
import { OS3Response } from "./OS3Response.js";
|
|
9
8
|
import { OS3Schema } from "./OS3Schema.js";
|
|
10
9
|
import { OS3Security } from "./OS3Security.js";
|
|
10
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
11
11
|
export interface OS3Components<Schema = OS3Schema> {
|
|
12
12
|
/**
|
|
13
13
|
* An object to hold reusable [Schema Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
1
|
import { OS3Header } from "./OS3Header.js";
|
|
2
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
3
3
|
export interface OS3Encoding {
|
|
4
4
|
/**
|
|
5
5
|
* The `Content-Type` for encoding a specific property. Default value depends on the property type: for `string` with `format` being `binary` – `application/octet-stream`; for other primitive types – `text/plain`; for `object` - application/json; for `array` – the default is defined based on the inner type. The value can be a specific media type (e.g. `application/json`), a wildcard media type (e.g. `image/*`), or a comma-separated list of the two types.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { OS3Schema } from "./OS3Schema.js";
|
|
1
2
|
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
3
|
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
|
-
import { OS3Schema } from "./OS3Schema.js";
|
|
4
4
|
export interface OS3Header<Schema = OS3Schema> {
|
|
5
5
|
/**
|
|
6
6
|
* A description of the header. CommonMark syntax MAY be used for rich text representation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
1
|
import { OS3Server } from "./OS3Server.js";
|
|
2
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
3
3
|
export interface OS3Link {
|
|
4
4
|
/**
|
|
5
5
|
* A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
1
|
import { OS3Encoding } from "./OS3Encoding.js";
|
|
4
2
|
import { OS3Example } from "./OS3Example.js";
|
|
5
3
|
import { OS3Schema } from "./OS3Schema.js";
|
|
4
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
5
|
+
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
6
6
|
export interface OS3MediaType<Schema = OS3Schema> {
|
|
7
7
|
/**
|
|
8
8
|
* The schema defining the type used for the request body.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
3
|
-
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
4
1
|
import { OS3Callbacks } from "./OS3Callbacks.js";
|
|
5
2
|
import { OS3Parameter } from "./OS3Parameter.js";
|
|
6
3
|
import { OS3RequestBody } from "./OS3RequestBody.js";
|
|
7
4
|
import { OS3Response } from "./OS3Response.js";
|
|
8
5
|
import { OS3Schema } from "./OS3Schema.js";
|
|
9
6
|
import { OS3Server } from "./OS3Server.js";
|
|
7
|
+
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
8
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
9
|
+
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
10
10
|
export interface OS3Operation<Schema = OS3Schema, Parameter = OS3Parameter<Schema>, Response = OpenSpecHash<OS3Response<Schema>>> {
|
|
11
11
|
/**
|
|
12
12
|
* Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
1
|
import { OS3Example } from "./OS3Example.js";
|
|
4
2
|
import { OS3MediaType } from "./OS3MediaType.js";
|
|
5
3
|
import { OS3Schema } from "./OS3Schema.js";
|
|
4
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
5
|
+
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
6
6
|
export type OS3StyleParameter = "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject";
|
|
7
7
|
export interface OS3Parameter<Schema = OS3Schema> {
|
|
8
8
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OpenSpecPath } from "../common/OpenSpecPath.js";
|
|
2
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
1
|
import { OS3Operation } from "./OS3Operation.js";
|
|
4
2
|
import { OS3Parameter } from "./OS3Parameter.js";
|
|
5
3
|
import { OS3Schema } from "./OS3Schema.js";
|
|
6
4
|
import { OS3Server } from "./OS3Server.js";
|
|
5
|
+
import { OpenSpecPath } from "../common/OpenSpecPath.js";
|
|
6
|
+
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
7
7
|
export interface OS3Paths<Schema = OS3Schema> extends OpenSpecPath<OS3Operation<Schema>> {
|
|
8
8
|
/**
|
|
9
9
|
* An optional, string summary, intended to apply to all operations in this path.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
1
|
import { OS3Example } from "./OS3Example.js";
|
|
4
2
|
import { OS3MediaType } from "./OS3MediaType.js";
|
|
5
3
|
import { OS3Schema } from "./OS3Schema.js";
|
|
4
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
5
|
+
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
6
6
|
export interface OS3RequestBody<Schema = OS3Schema> {
|
|
7
7
|
/**
|
|
8
8
|
* A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
1
|
import { OS3Header } from "./OS3Header.js";
|
|
4
2
|
import { OS3Link } from "./OS3Link.js";
|
|
5
3
|
import { OS3MediaType } from "./OS3MediaType.js";
|
|
6
4
|
import { OS3Schema } from "./OS3Schema.js";
|
|
5
|
+
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
6
|
+
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
7
7
|
export interface OS3Response<Schema = OS3Schema, Header = OS3Header<Schema>> {
|
|
8
8
|
/**
|
|
9
9
|
* A short description of the response. CommonMark syntax MAY be used for rich text representation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
1
|
import { OpenSpecBaseJsonSchema, OpenSpecJsonSchema } from "../common/OpenSpecJsonSchema.js";
|
|
2
|
+
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
3
3
|
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
4
4
|
import { OpenSpecXML } from "../common/OpenSpecXML.js";
|
|
5
5
|
export interface OS3BaseSchema extends OpenSpecBaseJsonSchema {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { OS3Components } from "./OS3Components.js";
|
|
2
|
+
import { OS3Paths } from "./OS3Paths.js";
|
|
3
|
+
import { OS3Schema } from "./OS3Schema.js";
|
|
4
|
+
import { OS3Server } from "./OS3Server.js";
|
|
1
5
|
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
6
|
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
3
7
|
import { OpenSpecInfo } from "../common/OpenSpecInfo.js";
|
|
4
8
|
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
5
9
|
import { OpenSpecTag } from "../common/OpenSpecTag.js";
|
|
6
|
-
import { OS3Components } from "./OS3Components.js";
|
|
7
|
-
import { OS3Paths } from "./OS3Paths.js";
|
|
8
|
-
import { OS3Schema } from "./OS3Schema.js";
|
|
9
|
-
import { OS3Server } from "./OS3Server.js";
|
|
10
10
|
export interface OpenSpec3<Schema = OS3Schema> {
|
|
11
11
|
/**
|
|
12
12
|
* This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string.
|
package/package.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/openspec",
|
|
3
|
+
"version": "8.36.0",
|
|
3
4
|
"description": "OpenSpec2 and OpenSpec3 interfaces declarations for TypeScript application",
|
|
4
|
-
"
|
|
5
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"JsonSchema",
|
|
7
|
+
"OAS2",
|
|
8
|
+
"OAS3",
|
|
9
|
+
"OpenSpec",
|
|
10
|
+
"TypeScript",
|
|
11
|
+
"interfaces",
|
|
12
|
+
"open-spec",
|
|
13
|
+
"swagger"
|
|
14
|
+
],
|
|
6
15
|
"source": "./src/index.ts",
|
|
16
|
+
"type": "module",
|
|
7
17
|
"main": "./lib/esm/index.js",
|
|
8
18
|
"module": "./lib/esm/index.js",
|
|
9
19
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -20,20 +30,9 @@
|
|
|
20
30
|
"barrels": "barrels",
|
|
21
31
|
"build:ts": "tsc --build tsconfig.esm.json"
|
|
22
32
|
},
|
|
23
|
-
"keywords": [
|
|
24
|
-
"TypeScript",
|
|
25
|
-
"interfaces",
|
|
26
|
-
"OpenSpec",
|
|
27
|
-
"open-spec",
|
|
28
|
-
"swagger",
|
|
29
|
-
"OAS3",
|
|
30
|
-
"OAS2",
|
|
31
|
-
"JsonSchema"
|
|
32
|
-
],
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tsed/barrels": "8.
|
|
35
|
-
"@tsed/typescript": "8.
|
|
36
|
-
"eslint": "9.12.0",
|
|
34
|
+
"@tsed/barrels": "8.36.0",
|
|
35
|
+
"@tsed/typescript": "8.36.0",
|
|
37
36
|
"typescript": "6.0.2"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {},
|