@tsed/openspec 8.11.1 → 8.11.2-rc.1

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.
Files changed (112) hide show
  1. package/lib/esm/common/OpenSpecExternalDocs.js +0 -1
  2. package/lib/esm/common/OpenSpecHash.js +0 -1
  3. package/lib/esm/common/OpenSpecInfo.js +0 -1
  4. package/lib/esm/common/OpenSpecJsonSchema.js +0 -1
  5. package/lib/esm/common/OpenSpecPath.js +0 -1
  6. package/lib/esm/common/OpenSpecRef.js +0 -1
  7. package/lib/esm/common/OpenSpecSecurity.js +0 -1
  8. package/lib/esm/common/OpenSpecTag.js +0 -1
  9. package/lib/esm/common/OpenSpecTypes.js +0 -1
  10. package/lib/esm/common/OpenSpecVersions.js +0 -1
  11. package/lib/esm/common/OpenSpecXML.js +0 -1
  12. package/lib/esm/index.js +0 -1
  13. package/lib/esm/openspec2/OS2Header.js +0 -1
  14. package/lib/esm/openspec2/OS2Operation.js +0 -1
  15. package/lib/esm/openspec2/OS2Parameter.js +0 -1
  16. package/lib/esm/openspec2/OS2Paths.js +0 -1
  17. package/lib/esm/openspec2/OS2Response.js +0 -1
  18. package/lib/esm/openspec2/OS2Schema.js +0 -1
  19. package/lib/esm/openspec2/OS2Security.js +0 -1
  20. package/lib/esm/openspec2/OpenSpec2.js +0 -1
  21. package/lib/esm/openspec3/OS3Callbacks.js +0 -1
  22. package/lib/esm/openspec3/OS3Components.js +0 -1
  23. package/lib/esm/openspec3/OS3Encoding.js +0 -1
  24. package/lib/esm/openspec3/OS3Example.js +0 -1
  25. package/lib/esm/openspec3/OS3Flows.js +0 -1
  26. package/lib/esm/openspec3/OS3Header.js +0 -1
  27. package/lib/esm/openspec3/OS3Link.js +0 -1
  28. package/lib/esm/openspec3/OS3MediaType.js +0 -1
  29. package/lib/esm/openspec3/OS3Operation.js +0 -1
  30. package/lib/esm/openspec3/OS3Parameter.js +0 -1
  31. package/lib/esm/openspec3/OS3Paths.js +0 -1
  32. package/lib/esm/openspec3/OS3RequestBody.js +0 -1
  33. package/lib/esm/openspec3/OS3Response.js +0 -1
  34. package/lib/esm/openspec3/OS3Schema.js +0 -1
  35. package/lib/esm/openspec3/OS3Security.js +0 -1
  36. package/lib/esm/openspec3/OS3Server.js +0 -1
  37. package/lib/esm/openspec3/OpenSpec3.js +0 -1
  38. package/package.json +7 -4
  39. package/lib/esm/common/OpenSpecExternalDocs.js.map +0 -1
  40. package/lib/esm/common/OpenSpecHash.js.map +0 -1
  41. package/lib/esm/common/OpenSpecInfo.js.map +0 -1
  42. package/lib/esm/common/OpenSpecJsonSchema.js.map +0 -1
  43. package/lib/esm/common/OpenSpecPath.js.map +0 -1
  44. package/lib/esm/common/OpenSpecRef.js.map +0 -1
  45. package/lib/esm/common/OpenSpecSecurity.js.map +0 -1
  46. package/lib/esm/common/OpenSpecTag.js.map +0 -1
  47. package/lib/esm/common/OpenSpecTypes.js.map +0 -1
  48. package/lib/esm/common/OpenSpecVersions.js.map +0 -1
  49. package/lib/esm/common/OpenSpecXML.js.map +0 -1
  50. package/lib/esm/index.js.map +0 -1
  51. package/lib/esm/openspec2/OS2Header.js.map +0 -1
  52. package/lib/esm/openspec2/OS2Operation.js.map +0 -1
  53. package/lib/esm/openspec2/OS2Parameter.js.map +0 -1
  54. package/lib/esm/openspec2/OS2Paths.js.map +0 -1
  55. package/lib/esm/openspec2/OS2Response.js.map +0 -1
  56. package/lib/esm/openspec2/OS2Schema.js.map +0 -1
  57. package/lib/esm/openspec2/OS2Security.js.map +0 -1
  58. package/lib/esm/openspec2/OpenSpec2.js.map +0 -1
  59. package/lib/esm/openspec3/OS3Callbacks.js.map +0 -1
  60. package/lib/esm/openspec3/OS3Components.js.map +0 -1
  61. package/lib/esm/openspec3/OS3Encoding.js.map +0 -1
  62. package/lib/esm/openspec3/OS3Example.js.map +0 -1
  63. package/lib/esm/openspec3/OS3Flows.js.map +0 -1
  64. package/lib/esm/openspec3/OS3Header.js.map +0 -1
  65. package/lib/esm/openspec3/OS3Link.js.map +0 -1
  66. package/lib/esm/openspec3/OS3MediaType.js.map +0 -1
  67. package/lib/esm/openspec3/OS3Operation.js.map +0 -1
  68. package/lib/esm/openspec3/OS3Parameter.js.map +0 -1
  69. package/lib/esm/openspec3/OS3Paths.js.map +0 -1
  70. package/lib/esm/openspec3/OS3RequestBody.js.map +0 -1
  71. package/lib/esm/openspec3/OS3Response.js.map +0 -1
  72. package/lib/esm/openspec3/OS3Schema.js.map +0 -1
  73. package/lib/esm/openspec3/OS3Security.js.map +0 -1
  74. package/lib/esm/openspec3/OS3Server.js.map +0 -1
  75. package/lib/esm/openspec3/OpenSpec3.js.map +0 -1
  76. package/src/common/OpenSpecExternalDocs.ts +0 -10
  77. package/src/common/OpenSpecHash.ts +0 -1
  78. package/src/common/OpenSpecInfo.ts +0 -52
  79. package/src/common/OpenSpecJsonSchema.ts +0 -153
  80. package/src/common/OpenSpecPath.ts +0 -10
  81. package/src/common/OpenSpecRef.ts +0 -3
  82. package/src/common/OpenSpecSecurity.ts +0 -3
  83. package/src/common/OpenSpecTag.ts +0 -7
  84. package/src/common/OpenSpecTypes.ts +0 -1
  85. package/src/common/OpenSpecVersions.ts +0 -3
  86. package/src/common/OpenSpecXML.ts +0 -22
  87. package/src/index.ts +0 -39
  88. package/src/openspec2/OS2Header.ts +0 -8
  89. package/src/openspec2/OS2Operation.ts +0 -65
  90. package/src/openspec2/OS2Parameter.ts +0 -65
  91. package/src/openspec2/OS2Paths.ts +0 -8
  92. package/src/openspec2/OS2Response.ts +0 -22
  93. package/src/openspec2/OS2Schema.ts +0 -39
  94. package/src/openspec2/OS2Security.ts +0 -58
  95. package/src/openspec2/OpenSpec2.ts +0 -73
  96. package/src/openspec3/OS3Callbacks.ts +0 -5
  97. package/src/openspec3/OS3Components.ts +0 -49
  98. package/src/openspec3/OS3Encoding.ts +0 -25
  99. package/src/openspec3/OS3Example.ts +0 -19
  100. package/src/openspec3/OS3Flows.ts +0 -49
  101. package/src/openspec3/OS3Header.ts +0 -18
  102. package/src/openspec3/OS3Link.ts +0 -25
  103. package/src/openspec3/OS3MediaType.ts +0 -24
  104. package/src/openspec3/OS3Operation.ts +0 -70
  105. package/src/openspec3/OS3Parameter.ts +0 -83
  106. package/src/openspec3/OS3Paths.ts +0 -29
  107. package/src/openspec3/OS3RequestBody.ts +0 -22
  108. package/src/openspec3/OS3Response.ts +0 -25
  109. package/src/openspec3/OS3Schema.ts +0 -51
  110. package/src/openspec3/OS3Security.ts +0 -63
  111. package/src/openspec3/OS3Server.ts +0 -31
  112. package/src/openspec3/OpenSpec3.ts +0 -44
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecExternalDocs.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecHash.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecInfo.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecJsonSchema.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecPath.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecRef.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecSecurity.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecTag.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecTypes.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecVersions.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpecXML.js.map
package/lib/esm/index.js CHANGED
@@ -37,4 +37,3 @@ export * from "./openspec3/OS3Response.js";
37
37
  export * from "./openspec3/OS3Schema.js";
38
38
  export * from "./openspec3/OS3Security.js";
39
39
  export * from "./openspec3/OS3Server.js";
40
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS2Header.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS2Operation.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS2Parameter.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS2Paths.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS2Response.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS2Schema.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS2Security.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpec2.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Callbacks.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Components.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Encoding.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Example.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Flows.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Header.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Link.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3MediaType.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Operation.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Parameter.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Paths.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3RequestBody.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Response.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Schema.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Security.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OS3Server.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=OpenSpec3.js.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/openspec",
3
3
  "description": "OpenSpec2 and OpenSpec3 interfaces declarations for TypeScript application",
4
4
  "type": "module",
5
- "version": "8.11.1",
5
+ "version": "8.11.2-rc.1",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -31,8 +31,8 @@
31
31
  "JsonSchema"
32
32
  ],
33
33
  "devDependencies": {
34
- "@tsed/barrels": "8.11.1",
35
- "@tsed/typescript": "8.11.1",
34
+ "@tsed/barrels": "8.11.2-rc.1",
35
+ "@tsed/typescript": "8.11.2-rc.1",
36
36
  "eslint": "9.12.0",
37
37
  "typescript": "5.4.5"
38
38
  },
@@ -44,5 +44,8 @@
44
44
  },
45
45
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/specs/openspec",
46
46
  "author": "Romain Lenzotti",
47
- "license": "MIT"
47
+ "license": "MIT",
48
+ "publishConfig": {
49
+ "tag": "rc"
50
+ }
48
51
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecExternalDocs.js","sourceRoot":"","sources":["../../../src/common/OpenSpecExternalDocs.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecHash.js","sourceRoot":"","sources":["../../../src/common/OpenSpecHash.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecInfo.js","sourceRoot":"","sources":["../../../src/common/OpenSpecInfo.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecJsonSchema.js","sourceRoot":"","sources":["../../../src/common/OpenSpecJsonSchema.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecPath.js","sourceRoot":"","sources":["../../../src/common/OpenSpecPath.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecRef.js","sourceRoot":"","sources":["../../../src/common/OpenSpecRef.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecSecurity.js","sourceRoot":"","sources":["../../../src/common/OpenSpecSecurity.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecTag.js","sourceRoot":"","sources":["../../../src/common/OpenSpecTag.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecTypes.js","sourceRoot":"","sources":["../../../src/common/OpenSpecTypes.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecVersions.js","sourceRoot":"","sources":["../../../src/common/OpenSpecVersions.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpecXML.js","sourceRoot":"","sources":["../../../src/common/OpenSpecXML.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS2Header.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Header.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS2Operation.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Operation.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS2Parameter.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Parameter.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS2Paths.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Paths.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS2Response.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Response.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS2Schema.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Schema.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS2Security.js","sourceRoot":"","sources":["../../../src/openspec2/OS2Security.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpec2.js","sourceRoot":"","sources":["../../../src/openspec2/OpenSpec2.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Callbacks.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Callbacks.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Components.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Components.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Encoding.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Encoding.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Example.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Example.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Flows.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Flows.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Header.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Header.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Link.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Link.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3MediaType.js","sourceRoot":"","sources":["../../../src/openspec3/OS3MediaType.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Operation.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Operation.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Parameter.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Parameter.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Paths.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Paths.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3RequestBody.js","sourceRoot":"","sources":["../../../src/openspec3/OS3RequestBody.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Response.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Response.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Schema.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Schema.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Security.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Security.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OS3Server.js","sourceRoot":"","sources":["../../../src/openspec3/OS3Server.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OpenSpec3.js","sourceRoot":"","sources":["../../../src/openspec3/OpenSpec3.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- export interface OpenSpecExternalDocs {
2
- /**
3
- * The URL for the target documentation. Value MUST be in the format of a URL.
4
- */
5
- url: string;
6
- /**
7
- * A short description of the target documentation. [CommonMark syntax](http://spec.commonmark.org/) MAY be used for rich text representation.
8
- */
9
- description?: string;
10
- }
@@ -1 +0,0 @@
1
- export type OpenSpecHash<T> = Record<string, T>;
@@ -1,52 +0,0 @@
1
- export interface OpenSpecContact {
2
- /**
3
- * The identifying name of the contact person/organization.
4
- */
5
- name?: string;
6
- /**
7
- * The email address of the contact person/organization. MUST be in the format of an email address.
8
- */
9
- email?: string;
10
- /**
11
- * The URL pointing to the contact information. MUST be in the format of a URL.
12
- */
13
- url?: string;
14
- }
15
-
16
- export interface OpenSpecLicense {
17
- /**
18
- * The license name used for the API.
19
- */
20
- name: string;
21
- /**
22
- * A URL to the license used for the API. MUST be in the format of a URL.
23
- */
24
- url?: string;
25
- }
26
-
27
- export interface OpenSpecInfo {
28
- /**
29
- * The title of the application.
30
- */
31
- title: string;
32
- /**
33
- * The version of the OpenAPI document (which is distinct from the [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#oasVersion) version or the API implementation version).
34
- */
35
- version: string;
36
- /**
37
- * A short description of the application. [CommonMark syntax](http://spec.commonmark.org/) MAY be used for rich text representation.
38
- */
39
- description?: string;
40
- /**
41
- * A URL to the Terms of Service for the API. MUST be in the format of a URL.
42
- */
43
- termsOfService?: string;
44
- /**
45
- * The contact information for the exposed API.
46
- */
47
- contact?: OpenSpecContact;
48
- /**
49
- * The license information for the exposed API.
50
- */
51
- license?: OpenSpecLicense;
52
- }
@@ -1,153 +0,0 @@
1
- import {OpenSpecHash} from "./OpenSpecHash.js";
2
- import {OpenSpecRef} from "./OpenSpecRef.js";
3
- import {OpenSpecTypes} from "./OpenSpecTypes.js";
4
-
5
- export interface OpenSpecBaseJsonSchema {
6
- $ref?: string;
7
- /**
8
- * This attribute is a string that provides a short description of the instance property.
9
- *
10
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2
11
- */
12
- title?: string;
13
- /**
14
- * Must be strictly greater than 0.
15
- * A numeric instance is valid only if division by this keyword's value results in an integer.
16
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.1
17
- */
18
- multipleOf?: number;
19
- /**
20
- * Representing an inclusive upper limit for a numeric instance.
21
- * This keyword validates only if the instance is less than or exactly equal to "maximum".
22
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.2
23
- */
24
- maximum?: number;
25
- /**
26
- * Representing an exclusive upper limit for a numeric instance.
27
- * This keyword validates only if the instance is strictly less than (not equal to) to "exclusiveMaximum".
28
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.3
29
- */
30
- exclusiveMaximum?: boolean;
31
- /**
32
- * Representing an inclusive lower limit for a numeric instance.
33
- * This keyword validates only if the instance is greater than or exactly equal to "minimum".
34
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.4
35
- */
36
- minimum?: number;
37
- /**
38
- * Representing an exclusive lower limit for a numeric instance.
39
- * This keyword validates only if the instance is strictly greater than (not equal to) to "exclusiveMinimum".
40
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.5
41
- */
42
- exclusiveMinimum?: boolean;
43
- /**
44
- * Must be a non-negative integer.
45
- * A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword.
46
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.6
47
- */
48
- maxLength?: number;
49
- /**
50
- * Must be a non-negative integer.
51
- * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword.
52
- * Omitting this keyword has the same behavior as a value of 0.
53
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.7
54
- */
55
- minLength?: number;
56
- /**
57
- * Should be a valid regular expression, according to the ECMA 262 regular expression dialect.
58
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.8
59
- */
60
- pattern?: string;
61
- /**
62
- * Must be a non-negative integer.
63
- * An array instance is valid against "maxItems" if its size is less than, or equal to, the value of this keyword.
64
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.11
65
- */
66
- maxItems?: number;
67
- /**
68
- * Must be a non-negative integer.
69
- * An array instance is valid against "maxItems" if its size is greater than, or equal to, the value of this keyword.
70
- * Omitting this keyword has the same behavior as a value of 0.
71
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.12
72
- */
73
- minItems?: number;
74
- /**
75
- * If this keyword has boolean value false, the instance validates successfully.
76
- * If it has boolean value true, the instance validates successfully if all of its elements are unique.
77
- * Omitting this keyword has the same behavior as a value of false.
78
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.13
79
- */
80
- uniqueItems?: boolean;
81
- /**
82
- * Must be a non-negative integer.
83
- * An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the value of this keyword.
84
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.15
85
- */
86
- maxProperties?: number;
87
- /**
88
- * Must be a non-negative integer.
89
- * An object instance is valid against "maxProperties" if its number of properties is greater than,
90
- * or equal to, the value of this keyword.
91
- * Omitting this keyword has the same behavior as a value of 0.
92
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.16
93
- */
94
- minProperties?: number;
95
- /**
96
- * This provides an enumeration of all possible values that are valid
97
- * for the instance property. This MUST be an array, and each item in
98
- * the array represents a possible value for the instance value. If
99
- * this attribute is defined, the instance value MUST be one of the
100
- * values in the array in order for the schema to be valid.
101
- *
102
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.23
103
- */
104
- enum?: any[];
105
- /**
106
- * This attribute is a string that provides a full description of the of purpose the instance property.
107
- *
108
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2
109
- */
110
- description?: string;
111
- /**
112
- * This keyword can be used to supply a default JSON value associated with a particular schema.
113
- * It is RECOMMENDED that a default value be valid against the associated schema.
114
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.3
115
- */
116
- default?: any;
117
- /**
118
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-8
119
- */
120
- format?: string;
121
- /**
122
- * A single type, or a union of simple types
123
- * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.25
124
- */
125
- type?: OpenSpecTypes;
126
- }
127
-
128
- export interface OpenSpecJsonSchema<Schema = any> extends OpenSpecBaseJsonSchema {
129
- /**
130
- * Required if type is "array". Describes the type of items in the array.
131
- */
132
- items?: Schema | OpenSpecRef;
133
- /**
134
- * A free-form property to include an example of an instance for this schema.
135
- */
136
- required?: string[];
137
- /**
138
- * Value can be boolean or object. Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.
139
- */
140
- additionalProperties?: Schema | boolean;
141
- /**
142
- * Property definitions MUST be a Schema Object and not a standard JSON Schema (inline or referenced).
143
- */
144
- properties?: OpenSpecHash<Schema>;
145
- /**
146
- * Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.
147
- */
148
- allOf?: (Schema | OpenSpecRef)[];
149
- /**
150
- * Additional external documentation for this schema.
151
- */
152
- example?: any;
153
- }
@@ -1,10 +0,0 @@
1
- export interface OpenSpecPath<Operation> {
2
- $ref?: string;
3
- get?: Operation;
4
- put?: Operation;
5
- post?: Operation;
6
- delete?: Operation;
7
- options?: Operation;
8
- head?: Operation;
9
- patch?: Operation;
10
- }
@@ -1,3 +0,0 @@
1
- export interface OpenSpecRef {
2
- $ref: string;
3
- }
@@ -1,3 +0,0 @@
1
- import {OpenSpecHash} from "./OpenSpecHash.js";
2
-
3
- export type OpenSpecSecurity = OpenSpecHash<string[]>[];
@@ -1,7 +0,0 @@
1
- import {OpenSpecExternalDocs} from "./OpenSpecExternalDocs.js";
2
-
3
- export interface OpenSpecTag {
4
- name: string;
5
- description?: string;
6
- externalDocs?: OpenSpecExternalDocs;
7
- }
@@ -1 +0,0 @@
1
- export type OpenSpecTypes = "string" | "number" | "integer" | "boolean" | "array" | "object" | "file";
@@ -1,3 +0,0 @@
1
- export type OS2Versions = "2.0";
2
- export type OS3Versions = "3.0.1" | "3.0.2" | "3.0.3" | "3.1.0";
3
- export type OpenSpecVersions = OS2Versions | OS3Versions;
@@ -1,22 +0,0 @@
1
- export interface OpenSpecXML {
2
- /**
3
- * Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being array (outside the items), it will affect the wrapping element and only if wrapped is true. If wrapped is false, it will be ignored.
4
- */
5
- name?: string;
6
- /**
7
- * The URI of the namespace definition. Value MUST be in the form of an absolute URI.
8
- */
9
- namespace?: string;
10
- /**
11
- * The prefix to be used for the [name](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#xmlName).
12
- */
13
- prefix?: string;
14
- /**
15
- * Declares whether the property definition translates to an attribute instead of an element. Default value is false.
16
- */
17
- attribute?: boolean;
18
- /**
19
- * MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being array (outside the items).
20
- */
21
- wrapped?: boolean;
22
- }