@skmtc/core 0.0.926 → 0.0.930

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 (719) hide show
  1. package/esm/app/validate.d.ts +0 -1
  2. package/esm/app/validate.d.ts.map +1 -1
  3. package/esm/app/validate.js +0 -1
  4. package/esm/context/CoreContext.d.ts +1 -1
  5. package/esm/context/CoreContext.d.ts.map +1 -1
  6. package/esm/context/CoreContext.js +7 -6
  7. package/esm/context/GenerateContext.d.ts +1 -1
  8. package/esm/context/GenerateContext.d.ts.map +1 -1
  9. package/esm/context/GenerateContext.js +4 -5
  10. package/esm/context/ParseContext.d.ts +1 -134
  11. package/esm/context/ParseContext.d.ts.map +1 -1
  12. package/esm/context/ParseContext.js +11 -157
  13. package/esm/context/RenderContext.d.ts +1 -6
  14. package/esm/context/RenderContext.d.ts.map +1 -1
  15. package/esm/context/RenderContext.js +9 -19
  16. package/esm/context/StackTrail.d.ts +0 -172
  17. package/esm/context/StackTrail.d.ts.map +1 -1
  18. package/esm/context/StackTrail.js +1 -195
  19. package/esm/dsl/Stringable.d.ts +0 -1
  20. package/esm/dsl/Stringable.d.ts.map +1 -1
  21. package/esm/dsl/Stringable.js +1 -76
  22. package/esm/dsl/model/toModelBase.d.ts +2 -3
  23. package/esm/dsl/model/toModelBase.d.ts.map +1 -1
  24. package/esm/dsl/model/toModelBase.js +1 -1
  25. package/esm/dsl/operation/toOperationBase.d.ts +2 -2
  26. package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
  27. package/esm/dsl/operation/toOperationBase.js +1 -1
  28. package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
  29. package/esm/dsl/operation/toOperationEntry.js +1 -1
  30. package/esm/helpers/ResultsLog.js +1 -1
  31. package/esm/helpers/collateExamples.d.ts +0 -1
  32. package/esm/helpers/collateExamples.d.ts.map +1 -1
  33. package/esm/helpers/collateExamples.js +0 -1
  34. package/esm/helpers/formatNumber.d.ts +0 -1
  35. package/esm/helpers/formatNumber.d.ts.map +1 -1
  36. package/esm/helpers/formatNumber.js +0 -1
  37. package/esm/helpers/isEmpty.d.ts +0 -60
  38. package/esm/helpers/isEmpty.d.ts.map +1 -1
  39. package/esm/helpers/isEmpty.js +1 -61
  40. package/esm/helpers/naming.js +2 -2
  41. package/esm/helpers/refFns.d.ts +0 -1
  42. package/esm/helpers/refFns.d.ts.map +1 -1
  43. package/esm/helpers/refFns.js +0 -1
  44. package/esm/helpers/strings.d.ts +0 -1
  45. package/esm/helpers/strings.d.ts.map +1 -1
  46. package/esm/helpers/strings.js +0 -1
  47. package/esm/helpers/toResolvedArtifactPath.d.ts +0 -1
  48. package/esm/helpers/toResolvedArtifactPath.d.ts.map +1 -1
  49. package/esm/helpers/toResolvedArtifactPath.js +0 -1
  50. package/esm/helpers/tracer.d.ts +1 -2
  51. package/esm/helpers/tracer.d.ts.map +1 -1
  52. package/esm/helpers/tracer.js +1 -1
  53. package/esm/mod.d.ts +0 -13
  54. package/esm/mod.d.ts.map +1 -1
  55. package/esm/mod.js +0 -13
  56. package/esm/oas/_helpers/parseEnum.d.ts +8 -136
  57. package/esm/oas/_helpers/parseEnum.d.ts.map +1 -1
  58. package/esm/oas/_helpers/parseEnum.js +21 -119
  59. package/esm/oas/_helpers/parseNullable.d.ts.map +1 -1
  60. package/esm/oas/_helpers/parseNullable.js +16 -6
  61. package/esm/oas/_merge-all-of/merge-enum-values.js +1 -1
  62. package/esm/oas/array/Array.d.ts +18 -96
  63. package/esm/oas/array/Array.d.ts.map +1 -1
  64. package/esm/oas/array/Array.js +38 -102
  65. package/esm/oas/array/array-types.d.ts +6 -174
  66. package/esm/oas/array/array-types.d.ts.map +1 -1
  67. package/esm/oas/array/array-types.js +4 -76
  68. package/esm/oas/array/toArray.d.ts +0 -52
  69. package/esm/oas/array/toArray.d.ts.map +1 -1
  70. package/esm/oas/array/toArray.js +67 -72
  71. package/esm/oas/boolean/Boolean.d.ts +12 -133
  72. package/esm/oas/boolean/Boolean.d.ts.map +1 -1
  73. package/esm/oas/boolean/Boolean.js +28 -134
  74. package/esm/oas/boolean/boolean-types.d.ts +14 -1
  75. package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
  76. package/esm/oas/boolean/boolean-types.js +4 -1
  77. package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
  78. package/esm/oas/boolean/toBoolean.js +75 -19
  79. package/esm/oas/components/Components.d.ts +0 -2
  80. package/esm/oas/components/Components.d.ts.map +1 -1
  81. package/esm/oas/components/Components.js +0 -2
  82. package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
  83. package/esm/oas/components/toComponentsV3.js +7 -9
  84. package/esm/oas/discriminator/Discriminator.d.ts +0 -1
  85. package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
  86. package/esm/oas/discriminator/Discriminator.js +0 -1
  87. package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
  88. package/esm/oas/discriminator/toDiscriminatorV3.js +4 -1
  89. package/esm/oas/document/Document.d.ts +5 -1
  90. package/esm/oas/document/Document.d.ts.map +1 -1
  91. package/esm/oas/document/Document.js +7 -1
  92. package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
  93. package/esm/oas/document/toDocumentFieldsV3.js +11 -8
  94. package/esm/oas/example/Example.d.ts +10 -85
  95. package/esm/oas/example/Example.d.ts.map +1 -1
  96. package/esm/oas/example/Example.js +35 -105
  97. package/esm/oas/example/toExamplesV3.d.ts +1 -1
  98. package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
  99. package/esm/oas/example/toExamplesV3.js +13 -8
  100. package/esm/oas/externalDocs/ExternalDocs.d.ts +10 -0
  101. package/esm/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
  102. package/esm/oas/externalDocs/ExternalDocs.js +18 -0
  103. package/esm/oas/externalDocs/externalDocsTypes.d.ts +7 -0
  104. package/esm/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
  105. package/esm/oas/externalDocs/externalDocsTypes.js +6 -0
  106. package/esm/oas/externalDocs/toExternalDocs.d.ts +10 -0
  107. package/esm/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
  108. package/esm/oas/externalDocs/toExternalDocs.js +15 -0
  109. package/esm/oas/header/Header.d.ts +6 -6
  110. package/esm/oas/header/Header.d.ts.map +1 -1
  111. package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
  112. package/esm/oas/header/toHeadersV3.js +9 -5
  113. package/esm/oas/info/Info.d.ts +0 -1
  114. package/esm/oas/info/Info.d.ts.map +1 -1
  115. package/esm/oas/info/Info.js +0 -1
  116. package/esm/oas/integer/Integer.d.ts +18 -81
  117. package/esm/oas/integer/Integer.d.ts.map +1 -1
  118. package/esm/oas/integer/Integer.js +33 -82
  119. package/esm/oas/integer/integer-types.d.ts +21 -1
  120. package/esm/oas/integer/integer-types.d.ts.map +1 -1
  121. package/esm/oas/integer/integer-types.js +8 -2
  122. package/esm/oas/integer/toInteger.d.ts.map +1 -1
  123. package/esm/oas/integer/toInteger.js +66 -19
  124. package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
  125. package/esm/oas/mediaType/toMediaTypeItemV3.js +9 -10
  126. package/esm/oas/number/Number.d.ts +18 -164
  127. package/esm/oas/number/Number.d.ts.map +1 -1
  128. package/esm/oas/number/Number.js +33 -165
  129. package/esm/oas/number/number-types.d.ts +22 -2
  130. package/esm/oas/number/number-types.d.ts.map +1 -1
  131. package/esm/oas/number/number-types.js +4 -1
  132. package/esm/oas/number/toNumber.d.ts +0 -62
  133. package/esm/oas/number/toNumber.d.ts.map +1 -1
  134. package/esm/oas/number/toNumber.js +66 -81
  135. package/esm/oas/object/Object.d.ts +0 -1
  136. package/esm/oas/object/Object.d.ts.map +1 -1
  137. package/esm/oas/object/Object.js +0 -1
  138. package/esm/oas/object/toObject.d.ts.map +1 -1
  139. package/esm/oas/object/toObject.js +38 -13
  140. package/esm/oas/operation/Operation.d.ts +9 -108
  141. package/esm/oas/operation/Operation.d.ts.map +1 -1
  142. package/esm/oas/operation/Operation.js +16 -108
  143. package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
  144. package/esm/oas/operation/toOperationsV3.js +12 -7
  145. package/esm/oas/parameter/Parameter.d.ts +12 -13
  146. package/esm/oas/parameter/Parameter.d.ts.map +1 -1
  147. package/esm/oas/parameter/Parameter.js +0 -3
  148. package/esm/oas/parameter/parameter-types.d.ts +0 -20
  149. package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
  150. package/esm/oas/parameter/parameter-types.js +0 -20
  151. package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
  152. package/esm/oas/parameter/toParameterV3.js +14 -11
  153. package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
  154. package/esm/oas/pathItem/toPathItemV3.js +2 -1
  155. package/esm/oas/ref/Ref.d.ts +0 -1
  156. package/esm/oas/ref/Ref.d.ts.map +1 -1
  157. package/esm/oas/ref/Ref.js +0 -1
  158. package/esm/oas/ref/toRefV31.d.ts.map +1 -1
  159. package/esm/oas/ref/toRefV31.js +4 -1
  160. package/esm/oas/requestBody/RequestBody.d.ts +0 -1
  161. package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
  162. package/esm/oas/requestBody/RequestBody.js +0 -1
  163. package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  164. package/esm/oas/requestBody/toRequestBodiesV3.js +6 -2
  165. package/esm/oas/response/Response.d.ts +0 -1
  166. package/esm/oas/response/Response.d.ts.map +1 -1
  167. package/esm/oas/response/Response.js +0 -1
  168. package/esm/oas/response/toResponseV3.d.ts.map +1 -1
  169. package/esm/oas/response/toResponseV3.js +9 -8
  170. package/esm/oas/schema/Schema.d.ts +0 -1
  171. package/esm/oas/schema/Schema.d.ts.map +1 -1
  172. package/esm/oas/schema/Schema.js +1 -1
  173. package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
  174. package/esm/oas/schema/toSchemasV3.js +10 -16
  175. package/esm/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  176. package/esm/oas/securitySchemes/toSecuritySchemes.js +22 -9
  177. package/esm/oas/server/Server.d.ts +0 -1
  178. package/esm/oas/server/Server.d.ts.map +1 -1
  179. package/esm/oas/server/Server.js +0 -1
  180. package/esm/oas/server/toServerV3.d.ts.map +1 -1
  181. package/esm/oas/server/toServerV3.js +2 -1
  182. package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
  183. package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
  184. package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
  185. package/esm/oas/string/String.d.ts +16 -88
  186. package/esm/oas/string/String.d.ts.map +1 -1
  187. package/esm/oas/string/String.js +33 -91
  188. package/esm/oas/string/string-types.d.ts +23 -80
  189. package/esm/oas/string/string-types.d.ts.map +1 -1
  190. package/esm/oas/string/string-types.js +6 -2
  191. package/esm/oas/string/toString.d.ts.map +1 -1
  192. package/esm/oas/string/toString.js +68 -18
  193. package/esm/oas/tag/Tag.d.ts +0 -1
  194. package/esm/oas/tag/Tag.d.ts.map +1 -1
  195. package/esm/oas/tag/Tag.js +0 -1
  196. package/esm/oas/union/toUnion.d.ts.map +1 -1
  197. package/esm/oas/union/toUnion.js +6 -2
  198. package/esm/oas/unknown/Unknown.d.ts +3 -1
  199. package/esm/oas/unknown/Unknown.d.ts.map +1 -1
  200. package/esm/oas/unknown/Unknown.js +8 -1
  201. package/esm/oas/unknown/toUnknown.js +1 -1
  202. package/esm/oas/void/Void.d.ts +0 -1
  203. package/esm/oas/void/Void.d.ts.map +1 -1
  204. package/esm/oas/void/Void.js +0 -1
  205. package/esm/types/Brand.d.ts +0 -1
  206. package/esm/types/Brand.d.ts.map +1 -1
  207. package/esm/types/Brand.js +1 -10
  208. package/esm/types/CustomValue.d.ts +0 -1
  209. package/esm/types/CustomValue.d.ts.map +1 -1
  210. package/esm/types/CustomValue.js +0 -1
  211. package/esm/types/DenoJson.d.ts +0 -1
  212. package/esm/types/DenoJson.d.ts.map +1 -1
  213. package/esm/types/DenoJson.js +0 -1
  214. package/esm/types/EnrichmentRequest.d.ts +0 -1
  215. package/esm/types/EnrichmentRequest.d.ts.map +1 -1
  216. package/esm/types/EnrichmentRequest.js +1 -1
  217. package/esm/types/Enrichments.d.ts +0 -1
  218. package/esm/types/Enrichments.d.ts.map +1 -1
  219. package/esm/types/Enrichments.js +0 -1
  220. package/esm/types/GeneratorKeys.d.ts +0 -1
  221. package/esm/types/GeneratorKeys.d.ts.map +1 -1
  222. package/esm/types/GeneratorKeys.js +0 -1
  223. package/esm/types/Manifest.d.ts +0 -1
  224. package/esm/types/Manifest.d.ts.map +1 -1
  225. package/esm/types/Manifest.js +0 -1
  226. package/esm/types/Method.d.ts +0 -165
  227. package/esm/types/Method.d.ts.map +1 -1
  228. package/esm/types/Method.js +1 -141
  229. package/esm/types/ModuleExport.d.ts +0 -1
  230. package/esm/types/ModuleExport.d.ts.map +1 -1
  231. package/esm/types/ModuleExport.js +0 -1
  232. package/esm/types/PrettierConfig.d.ts +0 -1
  233. package/esm/types/PrettierConfig.d.ts.map +1 -1
  234. package/esm/types/PrettierConfig.js +0 -1
  235. package/esm/types/Preview.d.ts +0 -1
  236. package/esm/types/Preview.d.ts.map +1 -1
  237. package/esm/types/Preview.js +0 -1
  238. package/esm/types/RefName.d.ts +0 -1
  239. package/esm/types/RefName.d.ts.map +1 -1
  240. package/esm/types/RefName.js +1 -1
  241. package/esm/types/Results.d.ts +0 -1
  242. package/esm/types/Results.d.ts.map +1 -1
  243. package/esm/types/Results.js +0 -1
  244. package/esm/types/Settings.d.ts +0 -1
  245. package/esm/types/Settings.d.ts.map +1 -1
  246. package/esm/types/Settings.js +0 -1
  247. package/esm/types/TypeSystem.d.ts +0 -1
  248. package/esm/types/TypeSystem.d.ts.map +1 -1
  249. package/esm/types/TypeSystem.js +1 -1
  250. package/package.json +1 -9
  251. package/script/app/validate.d.ts +0 -1
  252. package/script/app/validate.d.ts.map +1 -1
  253. package/script/app/validate.js +0 -1
  254. package/script/context/CoreContext.d.ts +1 -1
  255. package/script/context/CoreContext.d.ts.map +1 -1
  256. package/script/context/CoreContext.js +7 -6
  257. package/script/context/GenerateContext.d.ts +1 -1
  258. package/script/context/GenerateContext.d.ts.map +1 -1
  259. package/script/context/GenerateContext.js +4 -38
  260. package/script/context/ParseContext.d.ts +1 -134
  261. package/script/context/ParseContext.d.ts.map +1 -1
  262. package/script/context/ParseContext.js +12 -192
  263. package/script/context/RenderContext.d.ts +1 -6
  264. package/script/context/RenderContext.d.ts.map +1 -1
  265. package/script/context/RenderContext.js +9 -52
  266. package/script/context/StackTrail.d.ts +0 -172
  267. package/script/context/StackTrail.d.ts.map +1 -1
  268. package/script/context/StackTrail.js +1 -195
  269. package/script/dsl/Stringable.d.ts +0 -1
  270. package/script/dsl/Stringable.d.ts.map +1 -1
  271. package/script/dsl/Stringable.js +0 -76
  272. package/script/dsl/model/toModelBase.d.ts +2 -3
  273. package/script/dsl/model/toModelBase.d.ts.map +1 -1
  274. package/script/dsl/model/toModelBase.js +5 -2
  275. package/script/dsl/operation/toOperationBase.d.ts +2 -2
  276. package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
  277. package/script/dsl/operation/toOperationBase.js +5 -2
  278. package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
  279. package/script/dsl/operation/toOperationEntry.js +5 -2
  280. package/script/helpers/ResultsLog.js +5 -2
  281. package/script/helpers/collateExamples.d.ts +0 -1
  282. package/script/helpers/collateExamples.d.ts.map +1 -1
  283. package/script/helpers/collateExamples.js +0 -1
  284. package/script/helpers/formatNumber.d.ts +0 -1
  285. package/script/helpers/formatNumber.d.ts.map +1 -1
  286. package/script/helpers/formatNumber.js +0 -1
  287. package/script/helpers/isEmpty.d.ts +0 -60
  288. package/script/helpers/isEmpty.d.ts.map +1 -1
  289. package/script/helpers/isEmpty.js +1 -61
  290. package/script/helpers/naming.js +1 -1
  291. package/script/helpers/refFns.d.ts +0 -1
  292. package/script/helpers/refFns.d.ts.map +1 -1
  293. package/script/helpers/refFns.js +0 -1
  294. package/script/helpers/strings.d.ts +0 -1
  295. package/script/helpers/strings.d.ts.map +1 -1
  296. package/script/helpers/strings.js +0 -1
  297. package/script/helpers/toResolvedArtifactPath.d.ts +0 -1
  298. package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -1
  299. package/script/helpers/toResolvedArtifactPath.js +2 -3
  300. package/script/helpers/tracer.d.ts +1 -2
  301. package/script/helpers/tracer.d.ts.map +1 -1
  302. package/script/helpers/tracer.js +1 -1
  303. package/script/mod.d.ts +0 -13
  304. package/script/mod.d.ts.map +1 -1
  305. package/script/mod.js +15 -28
  306. package/script/oas/_helpers/parseEnum.d.ts +8 -136
  307. package/script/oas/_helpers/parseEnum.d.ts.map +1 -1
  308. package/script/oas/_helpers/parseEnum.js +21 -152
  309. package/script/oas/_helpers/parseNullable.d.ts.map +1 -1
  310. package/script/oas/_helpers/parseNullable.js +16 -39
  311. package/script/oas/_merge-all-of/merge-enum-values.js +1 -1
  312. package/script/oas/array/Array.d.ts +18 -96
  313. package/script/oas/array/Array.d.ts.map +1 -1
  314. package/script/oas/array/Array.js +38 -102
  315. package/script/oas/array/array-types.d.ts +6 -174
  316. package/script/oas/array/array-types.d.ts.map +1 -1
  317. package/script/oas/array/array-types.js +5 -77
  318. package/script/oas/array/toArray.d.ts +0 -52
  319. package/script/oas/array/toArray.d.ts.map +1 -1
  320. package/script/oas/array/toArray.js +67 -72
  321. package/script/oas/boolean/Boolean.d.ts +12 -133
  322. package/script/oas/boolean/Boolean.d.ts.map +1 -1
  323. package/script/oas/boolean/Boolean.js +28 -134
  324. package/script/oas/boolean/boolean-types.d.ts +14 -1
  325. package/script/oas/boolean/boolean-types.d.ts.map +1 -1
  326. package/script/oas/boolean/boolean-types.js +4 -1
  327. package/script/oas/boolean/toBoolean.d.ts.map +1 -1
  328. package/script/oas/boolean/toBoolean.js +75 -19
  329. package/script/oas/components/Components.d.ts +0 -2
  330. package/script/oas/components/Components.d.ts.map +1 -1
  331. package/script/oas/components/Components.js +0 -2
  332. package/script/oas/components/toComponentsV3.d.ts.map +1 -1
  333. package/script/oas/components/toComponentsV3.js +7 -9
  334. package/script/oas/discriminator/Discriminator.d.ts +0 -1
  335. package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
  336. package/script/oas/discriminator/Discriminator.js +0 -1
  337. package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
  338. package/script/oas/discriminator/toDiscriminatorV3.js +4 -1
  339. package/script/oas/document/Document.d.ts +5 -1
  340. package/script/oas/document/Document.d.ts.map +1 -1
  341. package/script/oas/document/Document.js +7 -1
  342. package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
  343. package/script/oas/document/toDocumentFieldsV3.js +11 -8
  344. package/script/oas/example/Example.d.ts +10 -85
  345. package/script/oas/example/Example.d.ts.map +1 -1
  346. package/script/oas/example/Example.js +35 -105
  347. package/script/oas/example/toExamplesV3.d.ts +1 -1
  348. package/script/oas/example/toExamplesV3.d.ts.map +1 -1
  349. package/script/oas/example/toExamplesV3.js +13 -8
  350. package/script/oas/externalDocs/ExternalDocs.d.ts +10 -0
  351. package/script/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
  352. package/script/oas/externalDocs/ExternalDocs.js +22 -0
  353. package/script/oas/externalDocs/externalDocsTypes.d.ts +7 -0
  354. package/script/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
  355. package/script/oas/{requestBody/requestBody-types.js → externalDocs/externalDocsTypes.js} +3 -6
  356. package/script/oas/externalDocs/toExternalDocs.d.ts +10 -0
  357. package/script/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
  358. package/script/oas/{response/response-types.js → externalDocs/toExternalDocs.js} +16 -11
  359. package/script/oas/header/Header.d.ts +6 -6
  360. package/script/oas/header/Header.d.ts.map +1 -1
  361. package/script/oas/header/toHeadersV3.d.ts.map +1 -1
  362. package/script/oas/header/toHeadersV3.js +9 -5
  363. package/script/oas/info/Info.d.ts +0 -1
  364. package/script/oas/info/Info.d.ts.map +1 -1
  365. package/script/oas/info/Info.js +0 -1
  366. package/script/oas/integer/Integer.d.ts +18 -81
  367. package/script/oas/integer/Integer.d.ts.map +1 -1
  368. package/script/oas/integer/Integer.js +33 -82
  369. package/script/oas/integer/integer-types.d.ts +21 -1
  370. package/script/oas/integer/integer-types.d.ts.map +1 -1
  371. package/script/oas/integer/integer-types.js +8 -2
  372. package/script/oas/integer/toInteger.d.ts.map +1 -1
  373. package/script/oas/integer/toInteger.js +65 -18
  374. package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
  375. package/script/oas/mediaType/toMediaTypeItemV3.js +9 -10
  376. package/script/oas/number/Number.d.ts +18 -164
  377. package/script/oas/number/Number.d.ts.map +1 -1
  378. package/script/oas/number/Number.js +33 -165
  379. package/script/oas/number/number-types.d.ts +22 -2
  380. package/script/oas/number/number-types.d.ts.map +1 -1
  381. package/script/oas/number/number-types.js +4 -1
  382. package/script/oas/number/toNumber.d.ts +0 -62
  383. package/script/oas/number/toNumber.d.ts.map +1 -1
  384. package/script/oas/number/toNumber.js +66 -81
  385. package/script/oas/object/Object.d.ts +0 -1
  386. package/script/oas/object/Object.d.ts.map +1 -1
  387. package/script/oas/object/Object.js +0 -1
  388. package/script/oas/object/toObject.d.ts.map +1 -1
  389. package/script/oas/object/toObject.js +38 -46
  390. package/script/oas/operation/Operation.d.ts +9 -108
  391. package/script/oas/operation/Operation.d.ts.map +1 -1
  392. package/script/oas/operation/Operation.js +16 -108
  393. package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
  394. package/script/oas/operation/toOperationsV3.js +12 -7
  395. package/script/oas/parameter/Parameter.d.ts +12 -13
  396. package/script/oas/parameter/Parameter.d.ts.map +1 -1
  397. package/script/oas/parameter/Parameter.js +0 -3
  398. package/script/oas/parameter/parameter-types.d.ts +0 -20
  399. package/script/oas/parameter/parameter-types.d.ts.map +1 -1
  400. package/script/oas/parameter/parameter-types.js +1 -21
  401. package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
  402. package/script/oas/parameter/toParameterV3.js +14 -11
  403. package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
  404. package/script/oas/pathItem/toPathItemV3.js +2 -1
  405. package/script/oas/ref/Ref.d.ts +0 -1
  406. package/script/oas/ref/Ref.d.ts.map +1 -1
  407. package/script/oas/ref/Ref.js +0 -1
  408. package/script/oas/ref/toRefV31.d.ts.map +1 -1
  409. package/script/oas/ref/toRefV31.js +4 -1
  410. package/script/oas/requestBody/RequestBody.d.ts +0 -1
  411. package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
  412. package/script/oas/requestBody/RequestBody.js +0 -1
  413. package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  414. package/script/oas/requestBody/toRequestBodiesV3.js +6 -2
  415. package/script/oas/response/Response.d.ts +0 -1
  416. package/script/oas/response/Response.d.ts.map +1 -1
  417. package/script/oas/response/Response.js +0 -1
  418. package/script/oas/response/toResponseV3.d.ts.map +1 -1
  419. package/script/oas/response/toResponseV3.js +9 -8
  420. package/script/oas/schema/Schema.d.ts +0 -1
  421. package/script/oas/schema/Schema.d.ts.map +1 -1
  422. package/script/oas/schema/Schema.js +0 -1
  423. package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
  424. package/script/oas/schema/toSchemasV3.js +10 -16
  425. package/script/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  426. package/script/oas/securitySchemes/toSecuritySchemes.js +22 -9
  427. package/script/oas/server/Server.d.ts +0 -1
  428. package/script/oas/server/Server.d.ts.map +1 -1
  429. package/script/oas/server/Server.js +0 -1
  430. package/script/oas/server/toServerV3.d.ts.map +1 -1
  431. package/script/oas/server/toServerV3.js +2 -1
  432. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
  433. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
  434. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
  435. package/script/oas/string/String.d.ts +16 -88
  436. package/script/oas/string/String.d.ts.map +1 -1
  437. package/script/oas/string/String.js +33 -91
  438. package/script/oas/string/string-types.d.ts +23 -80
  439. package/script/oas/string/string-types.d.ts.map +1 -1
  440. package/script/oas/string/string-types.js +6 -2
  441. package/script/oas/string/toString.d.ts.map +1 -1
  442. package/script/oas/string/toString.js +68 -18
  443. package/script/oas/tag/Tag.d.ts +0 -1
  444. package/script/oas/tag/Tag.d.ts.map +1 -1
  445. package/script/oas/tag/Tag.js +0 -1
  446. package/script/oas/union/toUnion.d.ts.map +1 -1
  447. package/script/oas/union/toUnion.js +6 -2
  448. package/script/oas/unknown/Unknown.d.ts +3 -1
  449. package/script/oas/unknown/Unknown.d.ts.map +1 -1
  450. package/script/oas/unknown/Unknown.js +8 -1
  451. package/script/oas/unknown/toUnknown.js +1 -1
  452. package/script/oas/void/Void.d.ts +0 -1
  453. package/script/oas/void/Void.d.ts.map +1 -1
  454. package/script/oas/void/Void.js +0 -1
  455. package/script/types/Brand.d.ts +0 -1
  456. package/script/types/Brand.d.ts.map +1 -1
  457. package/script/types/Brand.js +0 -10
  458. package/script/types/CustomValue.d.ts +0 -1
  459. package/script/types/CustomValue.d.ts.map +1 -1
  460. package/script/types/CustomValue.js +0 -1
  461. package/script/types/DenoJson.d.ts +0 -1
  462. package/script/types/DenoJson.d.ts.map +1 -1
  463. package/script/types/DenoJson.js +0 -1
  464. package/script/types/EnrichmentRequest.d.ts +0 -1
  465. package/script/types/EnrichmentRequest.d.ts.map +1 -1
  466. package/script/types/EnrichmentRequest.js +1 -2
  467. package/script/types/Enrichments.d.ts +0 -1
  468. package/script/types/Enrichments.d.ts.map +1 -1
  469. package/script/types/Enrichments.js +35 -36
  470. package/script/types/GeneratorKeys.d.ts +0 -1
  471. package/script/types/GeneratorKeys.d.ts.map +1 -1
  472. package/script/types/GeneratorKeys.js +2 -3
  473. package/script/types/Manifest.d.ts +0 -1
  474. package/script/types/Manifest.d.ts.map +1 -1
  475. package/script/types/Manifest.js +35 -36
  476. package/script/types/Method.d.ts +0 -165
  477. package/script/types/Method.d.ts.map +1 -1
  478. package/script/types/Method.js +1 -141
  479. package/script/types/ModuleExport.d.ts +0 -1
  480. package/script/types/ModuleExport.d.ts.map +1 -1
  481. package/script/types/ModuleExport.js +0 -1
  482. package/script/types/PrettierConfig.d.ts +0 -1
  483. package/script/types/PrettierConfig.d.ts.map +1 -1
  484. package/script/types/PrettierConfig.js +35 -36
  485. package/script/types/Preview.d.ts +0 -1
  486. package/script/types/Preview.d.ts.map +1 -1
  487. package/script/types/Preview.js +35 -36
  488. package/script/types/RefName.d.ts +0 -1
  489. package/script/types/RefName.d.ts.map +1 -1
  490. package/script/types/RefName.js +1 -2
  491. package/script/types/Results.d.ts +0 -1
  492. package/script/types/Results.d.ts.map +1 -1
  493. package/script/types/Results.js +35 -36
  494. package/script/types/Settings.d.ts +0 -1
  495. package/script/types/Settings.d.ts.map +1 -1
  496. package/script/types/Settings.js +35 -36
  497. package/script/types/TypeSystem.d.ts +0 -1
  498. package/script/types/TypeSystem.d.ts.map +1 -1
  499. package/script/types/TypeSystem.js +0 -1
  500. package/esm/_dnt.polyfills.d.ts +0 -12
  501. package/esm/_dnt.polyfills.d.ts.map +0 -1
  502. package/esm/_dnt.polyfills.js +0 -15
  503. package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
  504. package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
  505. package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -48
  506. package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
  507. package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
  508. package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1427
  509. package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
  510. package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
  511. package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -117
  512. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
  513. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
  514. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -103
  515. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
  516. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
  517. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -32
  518. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
  519. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
  520. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -96
  521. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
  522. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
  523. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -159
  524. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
  525. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
  526. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -14
  527. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
  528. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
  529. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -10
  530. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
  531. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
  532. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -22
  533. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
  534. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
  535. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -29
  536. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
  537. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
  538. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -19
  539. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
  540. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
  541. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -30
  542. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
  543. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
  544. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -10
  545. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
  546. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
  547. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -14
  548. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
  549. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
  550. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -9
  551. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
  552. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
  553. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -81
  554. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
  555. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
  556. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -20
  557. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
  558. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
  559. package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -6
  560. package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
  561. package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
  562. package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -13
  563. package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
  564. package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
  565. package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -93
  566. package/esm/oas/_helpers/parseDefault.d.ts +0 -164
  567. package/esm/oas/_helpers/parseDefault.d.ts.map +0 -1
  568. package/esm/oas/_helpers/parseDefault.js +0 -144
  569. package/esm/oas/_helpers/parseExample.d.ts +0 -123
  570. package/esm/oas/_helpers/parseExample.d.ts.map +0 -1
  571. package/esm/oas/_helpers/parseExample.js +0 -103
  572. package/esm/oas/_helpers/parseFormat.d.ts +0 -169
  573. package/esm/oas/_helpers/parseFormat.d.ts.map +0 -1
  574. package/esm/oas/_helpers/parseFormat.js +0 -154
  575. package/esm/oas/components/components-types.d.ts +0 -19
  576. package/esm/oas/components/components-types.d.ts.map +0 -1
  577. package/esm/oas/components/components-types.js +0 -21
  578. package/esm/oas/document/document-types.d.ts +0 -16
  579. package/esm/oas/document/document-types.d.ts.map +0 -1
  580. package/esm/oas/document/document-types.js +0 -18
  581. package/esm/oas/header/header-types.d.ts +0 -50
  582. package/esm/oas/header/header-types.d.ts.map +0 -1
  583. package/esm/oas/header/header-types.js +0 -30
  584. package/esm/oas/mediaType/mediaType-types.d.ts +0 -29
  585. package/esm/oas/mediaType/mediaType-types.d.ts.map +0 -1
  586. package/esm/oas/mediaType/mediaType-types.js +0 -18
  587. package/esm/oas/object/object-types.d.ts +0 -19
  588. package/esm/oas/object/object-types.d.ts.map +0 -1
  589. package/esm/oas/object/object-types.js +0 -23
  590. package/esm/oas/operation/operation-types.d.ts +0 -273
  591. package/esm/oas/operation/operation-types.d.ts.map +0 -1
  592. package/esm/oas/operation/operation-types.js +0 -133
  593. package/esm/oas/pathItem/pathItem-types.d.ts +0 -12
  594. package/esm/oas/pathItem/pathItem-types.d.ts.map +0 -1
  595. package/esm/oas/pathItem/pathItem-types.js +0 -12
  596. package/esm/oas/requestBody/requestBody-types.d.ts +0 -10
  597. package/esm/oas/requestBody/requestBody-types.d.ts.map +0 -1
  598. package/esm/oas/requestBody/requestBody-types.js +0 -9
  599. package/esm/oas/response/response-types.d.ts +0 -12
  600. package/esm/oas/response/response-types.d.ts.map +0 -1
  601. package/esm/oas/response/response-types.js +0 -11
  602. package/esm/oas/schema/schema-types.d.ts +0 -12
  603. package/esm/oas/schema/schema-types.d.ts.map +0 -1
  604. package/esm/oas/schema/schema-types.js +0 -19
  605. package/esm/oas/union/union-types.d.ts +0 -34
  606. package/esm/oas/union/union-types.d.ts.map +0 -1
  607. package/esm/oas/union/union-types.js +0 -19
  608. package/esm/run/toV3JsonDocument.d.ts +0 -151
  609. package/esm/run/toV3JsonDocument.d.ts.map +0 -1
  610. package/esm/run/toV3JsonDocument.js +0 -172
  611. package/script/_dnt.polyfills.d.ts +0 -12
  612. package/script/_dnt.polyfills.d.ts.map +0 -1
  613. package/script/_dnt.polyfills.js +0 -16
  614. package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
  615. package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
  616. package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -55
  617. package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
  618. package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
  619. package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1431
  620. package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
  621. package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
  622. package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -121
  623. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
  624. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
  625. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -106
  626. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
  627. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
  628. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -35
  629. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
  630. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
  631. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -99
  632. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
  633. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
  634. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -162
  635. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
  636. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
  637. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -17
  638. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
  639. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
  640. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -13
  641. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
  642. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
  643. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -25
  644. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
  645. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
  646. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -32
  647. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
  648. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
  649. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -22
  650. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
  651. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
  652. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -33
  653. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
  654. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
  655. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -13
  656. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
  657. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
  658. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -17
  659. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
  660. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
  661. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -12
  662. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
  663. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
  664. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -84
  665. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
  666. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
  667. package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -23
  668. package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
  669. package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
  670. package/script/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -7
  671. package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
  672. package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
  673. package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -18
  674. package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
  675. package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
  676. package/script/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -97
  677. package/script/oas/_helpers/parseDefault.d.ts +0 -164
  678. package/script/oas/_helpers/parseDefault.d.ts.map +0 -1
  679. package/script/oas/_helpers/parseDefault.js +0 -181
  680. package/script/oas/_helpers/parseExample.d.ts +0 -123
  681. package/script/oas/_helpers/parseExample.d.ts.map +0 -1
  682. package/script/oas/_helpers/parseExample.js +0 -140
  683. package/script/oas/_helpers/parseFormat.d.ts +0 -169
  684. package/script/oas/_helpers/parseFormat.d.ts.map +0 -1
  685. package/script/oas/_helpers/parseFormat.js +0 -191
  686. package/script/oas/components/components-types.d.ts +0 -19
  687. package/script/oas/components/components-types.d.ts.map +0 -1
  688. package/script/oas/components/components-types.js +0 -57
  689. package/script/oas/document/document-types.d.ts +0 -16
  690. package/script/oas/document/document-types.d.ts.map +0 -1
  691. package/script/oas/document/document-types.js +0 -54
  692. package/script/oas/header/header-types.d.ts +0 -50
  693. package/script/oas/header/header-types.d.ts.map +0 -1
  694. package/script/oas/header/header-types.js +0 -66
  695. package/script/oas/mediaType/mediaType-types.d.ts +0 -29
  696. package/script/oas/mediaType/mediaType-types.d.ts.map +0 -1
  697. package/script/oas/mediaType/mediaType-types.js +0 -54
  698. package/script/oas/object/object-types.d.ts +0 -19
  699. package/script/oas/object/object-types.d.ts.map +0 -1
  700. package/script/oas/object/object-types.js +0 -59
  701. package/script/oas/operation/operation-types.d.ts +0 -273
  702. package/script/oas/operation/operation-types.d.ts.map +0 -1
  703. package/script/oas/operation/operation-types.js +0 -169
  704. package/script/oas/pathItem/pathItem-types.d.ts +0 -12
  705. package/script/oas/pathItem/pathItem-types.d.ts.map +0 -1
  706. package/script/oas/pathItem/pathItem-types.js +0 -48
  707. package/script/oas/requestBody/requestBody-types.d.ts +0 -10
  708. package/script/oas/requestBody/requestBody-types.d.ts.map +0 -1
  709. package/script/oas/response/response-types.d.ts +0 -12
  710. package/script/oas/response/response-types.d.ts.map +0 -1
  711. package/script/oas/schema/schema-types.d.ts +0 -12
  712. package/script/oas/schema/schema-types.d.ts.map +0 -1
  713. package/script/oas/schema/schema-types.js +0 -55
  714. package/script/oas/union/union-types.d.ts +0 -34
  715. package/script/oas/union/union-types.d.ts.map +0 -1
  716. package/script/oas/union/union-types.js +0 -55
  717. package/script/run/toV3JsonDocument.d.ts +0 -151
  718. package/script/run/toV3JsonDocument.d.ts.map +0 -1
  719. package/script/run/toV3JsonDocument.js +0 -180
@@ -1,140 +1,12 @@
1
- import type { OpenAPIV3 } from 'openapi-types';
2
- import type { ParseContext } from '../../context/ParseContext.js';
3
- import * as v from 'valibot';
4
- /**
5
- * Arguments for parsing OpenAPI schema enum values.
6
- *
7
- * @template T - The expected type of enum values
8
- * @template Nullable - Whether the schema allows null values
9
- * @template Value - The OpenAPI schema object type
10
- */
11
- type ParseEnumArgs<T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject> = {
12
- /** The OpenAPI schema object without nullable property */
13
- value: Omit<Value, 'nullable'>;
14
- /** Whether the schema allows null values */
15
- nullable: Nullable;
16
- /** Valibot schema for validating enum values */
17
- valibotSchema: v.GenericSchema<T>;
18
- /** Parse context for error handling */
1
+ import type { ParseContext } from '../../mod.js';
2
+ type ParseEnumArgs = {
3
+ value: unknown;
4
+ nullable: boolean | undefined;
5
+ parent: unknown;
6
+ check: (item: unknown) => boolean;
7
+ toMessage: (item: unknown) => string;
19
8
  context: ParseContext;
20
9
  };
21
- /**
22
- * Return type for parsed enum data.
23
- *
24
- * @template T - The expected type of enum values
25
- * @template Nullable - Whether the schema allows null values
26
- * @template Value - The OpenAPI schema object type
27
- */
28
- type ParseEnumReturn<T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject> = {
29
- /** The parsed and validated enum array */
30
- enum: Nullable extends true ? (T | null)[] | undefined : T[] | undefined;
31
- /** The schema object without enum and nullable properties */
32
- value: Omit<Value, 'nullable' | 'enum'>;
33
- };
34
- /**
35
- * Parses and validates OpenAPI schema enum values with type safety.
36
- *
37
- * This function extracts and validates enum arrays from OpenAPI schema objects,
38
- * ensuring all enum values conform to the expected type and handling nullable
39
- * schemas correctly. Invalid enum values are removed and logged as warnings
40
- * through the parse context.
41
- *
42
- * The function provides full type safety, with the return type reflecting whether
43
- * null values are allowed in the enum array based on the nullable parameter.
44
- *
45
- * @template T - The expected type of enum values
46
- * @template Nullable - Whether the schema allows null values in enums
47
- * @template Value - The OpenAPI schema object type
48
- *
49
- * @param args - Parsing configuration
50
- * @returns Parsed enum data with the validated enum array and cleaned schema
51
- *
52
- * @example Basic string enum parsing
53
- * ```typescript
54
- * import { parseEnum } from '@skmtc/core/oas/_helpers';
55
- * import * as v from 'valibot';
56
- *
57
- * const result = parseEnum({
58
- * value: {
59
- * type: 'string',
60
- * enum: ['active', 'inactive', 'pending'],
61
- * description: 'User status'
62
- * },
63
- * nullable: false,
64
- * valibotSchema: v.string(),
65
- * context: parseContext
66
- * });
67
- *
68
- * console.log(result.enum); // ['active', 'inactive', 'pending']
69
- * console.log(result.value); // { type: 'string', description: 'User status' }
70
- * ```
71
- *
72
- * @example Nullable enum parsing
73
- * ```typescript
74
- * const result = parseEnum({
75
- * value: {
76
- * type: 'string',
77
- * enum: ['red', 'green', 'blue', null],
78
- * description: 'Optional color selection'
79
- * },
80
- * nullable: true,
81
- * valibotSchema: v.string(),
82
- * context: parseContext
83
- * });
84
- *
85
- * console.log(result.enum); // ['red', 'green', 'blue', null]
86
- * // Type: (string | null)[] | undefined
87
- * ```
88
- *
89
- * @example Number enum parsing
90
- * ```typescript
91
- * const result = parseEnum({
92
- * value: {
93
- * type: 'number',
94
- * enum: [1, 2, 3, 5, 8, 13],
95
- * description: 'Fibonacci subset'
96
- * },
97
- * nullable: false,
98
- * valibotSchema: v.number(),
99
- * context: parseContext
100
- * });
101
- *
102
- * console.log(result.enum); // [1, 2, 3, 5, 8, 13]
103
- * ```
104
- *
105
- * @example Invalid enum handling
106
- * ```typescript
107
- * const result = parseEnum({
108
- * value: {
109
- * type: 'number',
110
- * enum: [1, 'invalid', 3], // Contains invalid value
111
- * description: 'Mixed enum (invalid)'
112
- * },
113
- * nullable: false,
114
- * valibotSchema: v.number(),
115
- * context: parseContext
116
- * });
117
- *
118
- * console.log(result.enum); // undefined (entire enum removed due to invalid value)
119
- * // Context will log a warning about the invalid enum
120
- * ```
121
- *
122
- * @example Boolean enum (essentially optional boolean)
123
- * ```typescript
124
- * const result = parseEnum({
125
- * value: {
126
- * type: 'boolean',
127
- * enum: [true, false],
128
- * description: 'Explicit boolean enum'
129
- * },
130
- * nullable: false,
131
- * valibotSchema: v.boolean(),
132
- * context: parseContext
133
- * });
134
- *
135
- * console.log(result.enum); // [true, false]
136
- * ```
137
- */
138
- export declare const parseEnum: <T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject>({ value, nullable, valibotSchema, context }: ParseEnumArgs<T, Nullable, Value>) => ParseEnumReturn<T, Nullable, Value>;
10
+ export declare const parseEnum: ({ value, nullable, parent, context, check, toMessage }: ParseEnumArgs) => any[] | undefined;
139
11
  export {};
140
12
  //# sourceMappingURL=parseEnum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseEnum.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseEnum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;GAMG;AACH,KAAK,aAAa,CAChB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,IAClC;IACF,0DAA0D;IAC1D,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IAC9B,4CAA4C;IAC5C,QAAQ,EAAE,QAAQ,CAAA;IAClB,gDAAgD;IAChD,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;IACjC,uCAAuC;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;GAMG;AACH,KAAK,eAAe,CAClB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,IAClC;IACF,0CAA0C;IAC1C,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,CAAC,EAAE,GAAG,SAAS,CAAA;IACxE,6DAA6D;IAC7D,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC,CAAA;CACxC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuGG;AACH,eAAO,MAAM,SAAS,GACpB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,EACpC,6CAKC,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAG,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAgBxE,CAAA"}
1
+ {"version":3,"file":"parseEnum.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseEnum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,OAAO,CAAA;IAEd,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAA;IACjC,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,MAAM,CAAA;IACpC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,wDAOvB,aAAa,sBA0Bf,CAAA"}
@@ -1,157 +1,26 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.parseEnum = void 0;
37
- const v = __importStar(require("valibot"));
38
- /**
39
- * Parses and validates OpenAPI schema enum values with type safety.
40
- *
41
- * This function extracts and validates enum arrays from OpenAPI schema objects,
42
- * ensuring all enum values conform to the expected type and handling nullable
43
- * schemas correctly. Invalid enum values are removed and logged as warnings
44
- * through the parse context.
45
- *
46
- * The function provides full type safety, with the return type reflecting whether
47
- * null values are allowed in the enum array based on the nullable parameter.
48
- *
49
- * @template T - The expected type of enum values
50
- * @template Nullable - Whether the schema allows null values in enums
51
- * @template Value - The OpenAPI schema object type
52
- *
53
- * @param args - Parsing configuration
54
- * @returns Parsed enum data with the validated enum array and cleaned schema
55
- *
56
- * @example Basic string enum parsing
57
- * ```typescript
58
- * import { parseEnum } from '@skmtc/core/oas/_helpers';
59
- * import * as v from 'valibot';
60
- *
61
- * const result = parseEnum({
62
- * value: {
63
- * type: 'string',
64
- * enum: ['active', 'inactive', 'pending'],
65
- * description: 'User status'
66
- * },
67
- * nullable: false,
68
- * valibotSchema: v.string(),
69
- * context: parseContext
70
- * });
71
- *
72
- * console.log(result.enum); // ['active', 'inactive', 'pending']
73
- * console.log(result.value); // { type: 'string', description: 'User status' }
74
- * ```
75
- *
76
- * @example Nullable enum parsing
77
- * ```typescript
78
- * const result = parseEnum({
79
- * value: {
80
- * type: 'string',
81
- * enum: ['red', 'green', 'blue', null],
82
- * description: 'Optional color selection'
83
- * },
84
- * nullable: true,
85
- * valibotSchema: v.string(),
86
- * context: parseContext
87
- * });
88
- *
89
- * console.log(result.enum); // ['red', 'green', 'blue', null]
90
- * // Type: (string | null)[] | undefined
91
- * ```
92
- *
93
- * @example Number enum parsing
94
- * ```typescript
95
- * const result = parseEnum({
96
- * value: {
97
- * type: 'number',
98
- * enum: [1, 2, 3, 5, 8, 13],
99
- * description: 'Fibonacci subset'
100
- * },
101
- * nullable: false,
102
- * valibotSchema: v.number(),
103
- * context: parseContext
104
- * });
105
- *
106
- * console.log(result.enum); // [1, 2, 3, 5, 8, 13]
107
- * ```
108
- *
109
- * @example Invalid enum handling
110
- * ```typescript
111
- * const result = parseEnum({
112
- * value: {
113
- * type: 'number',
114
- * enum: [1, 'invalid', 3], // Contains invalid value
115
- * description: 'Mixed enum (invalid)'
116
- * },
117
- * nullable: false,
118
- * valibotSchema: v.number(),
119
- * context: parseContext
120
- * });
121
- *
122
- * console.log(result.enum); // undefined (entire enum removed due to invalid value)
123
- * // Context will log a warning about the invalid enum
124
- * ```
125
- *
126
- * @example Boolean enum (essentially optional boolean)
127
- * ```typescript
128
- * const result = parseEnum({
129
- * value: {
130
- * type: 'boolean',
131
- * enum: [true, false],
132
- * description: 'Explicit boolean enum'
133
- * },
134
- * nullable: false,
135
- * valibotSchema: v.boolean(),
136
- * context: parseContext
137
- * });
138
- *
139
- * console.log(result.enum); // [true, false]
140
- * ```
141
- */
142
- const parseEnum = ({ value, nullable, valibotSchema, context }) => {
143
- const { enum: enums, ...rest } = value;
144
- const parsedEnum = context.provisionalParse({
145
- key: 'enum',
146
- value: enums,
147
- parent: value,
148
- schema: nullable === true ? v.array(v.nullable(valibotSchema)) : v.array(valibotSchema),
149
- toMessage: value => `Removed invalid enum. Expected ${valibotSchema.type}, got: ${value}`,
150
- type: 'INVALID_ENUM'
151
- });
152
- return {
153
- enum: parsedEnum,
154
- value: rest
155
- };
4
+ const parseEnum = ({ value, nullable, parent, context, check, toMessage }) => {
5
+ if (Array.isArray(value)) {
6
+ for (const item of value) {
7
+ if (nullable && item === null) {
8
+ continue;
9
+ }
10
+ if (check(item)) {
11
+ continue;
12
+ }
13
+ context.logIssue({
14
+ key: 'default',
15
+ level: 'warning',
16
+ message: toMessage(item),
17
+ parent,
18
+ type: 'INVALID_DEFAULT'
19
+ });
20
+ return undefined;
21
+ }
22
+ return value;
23
+ }
24
+ return undefined;
156
25
  };
157
26
  exports.parseEnum = parseEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"parseNullable.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseNullable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAGjE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,SAAS,CAAC,YAAY,IAAI;IACpE,iEAAiE;IACjE,KAAK,EAAE,KAAK,CAAA;IACZ,uCAAuC;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,SAAS,CAAC,YAAY,IAAI;IACtE,8DAA8D;IAC9D,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,sDAAsD;IACtD,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;CAC/B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,SAAS,CAAC,YAAY,EAAE,oBAGjE,iBAAiB,CAAC,KAAK,CAAC,KAAG,mBAAmB,CAAC,KAAK,CAgBtD,CAAA"}
1
+ {"version":3,"file":"parseNullable.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseNullable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,SAAS,CAAC,YAAY,IAAI;IACpE,iEAAiE;IACjE,KAAK,EAAE,KAAK,CAAA;IACZ,uCAAuC;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,SAAS,CAAC,YAAY,IAAI;IACtE,8DAA8D;IAC9D,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,sDAAsD;IACtD,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;CAC/B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,SAAS,CAAC,YAAY,EAAE,oBAGjE,iBAAiB,CAAC,KAAK,CAAC,KAAG,mBAAmB,CAAC,KAAK,CA6BtD,CAAA"}
@@ -1,40 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.parseNullable = void 0;
37
- const v = __importStar(require("valibot"));
38
4
  /**
39
5
  * Parses and validates the nullable property from OpenAPI schema objects.
40
6
  *
@@ -149,17 +115,28 @@ const v = __importStar(require("valibot"));
149
115
  * ```
150
116
  */
151
117
  const parseNullable = ({ value, context }) => {
118
+ if (value.nullable === undefined) {
119
+ return {
120
+ nullable: undefined,
121
+ value: value
122
+ };
123
+ }
152
124
  const { nullable, ...rest } = value;
153
- const parsedNullable = context.provisionalParse({
125
+ if (typeof nullable === 'boolean') {
126
+ return {
127
+ nullable: nullable,
128
+ value: rest
129
+ };
130
+ }
131
+ context.logIssue({
154
132
  key: 'nullable',
155
- value: nullable,
156
133
  parent: value,
157
- schema: v.optional(v.boolean()),
158
- toMessage: (input) => `Invalid nullable: ${input}`,
134
+ level: 'warning',
135
+ message: `Invalid nullable: ${value}`,
159
136
  type: 'INVALID_NULLABLE'
160
137
  });
161
138
  return {
162
- nullable: parsedNullable,
139
+ nullable: undefined,
163
140
  value: rest
164
141
  };
165
142
  };
@@ -56,7 +56,7 @@ function mergeEnumValues(first, second, typeCheck) {
56
56
  // Find intersection of enum values
57
57
  const intersection = first
58
58
  .enum.filter(value => second.enum.some(bValue => (0, is_equal_js_1.isEqual)(value, bValue)))
59
- .map(value => (typeCheck ? v.parse(typeCheck, value) : value));
59
+ .map(value => (typeCheck ? (v.is(typeCheck, value) ? value : undefined) : value));
60
60
  // If intersection is empty, throw error
61
61
  if (intersection.length === 0) {
62
62
  throw new Error('Merged schema has empty enum array');
@@ -1,4 +1,3 @@
1
- import "../../_dnt.polyfills.js";
2
1
  import type { OasSchema, ToJsonSchemaOptions } from '../schema/Schema.js';
3
2
  import type { OasRef } from '../ref/Ref.js';
4
3
  import type { OpenAPIV3 } from 'openapi-types';
@@ -30,102 +29,13 @@ export type ArrayFields<Nullable extends boolean | undefined> = {
30
29
  enums?: Nullable extends true ? (unknown | null)[] | undefined : unknown[] | undefined;
31
30
  /** Default value for the array */
32
31
  defaultValue?: Nullable extends true ? unknown[] | null | undefined : unknown[] | undefined;
32
+ /** Whether the array is read-only */
33
+ readOnly?: boolean;
34
+ /** Whether the array is write-only */
35
+ writeOnly?: boolean;
36
+ /** Whether the array is deprecated */
37
+ deprecated?: boolean;
33
38
  };
34
- /**
35
- * Represents an array schema in the OpenAPI Specification.
36
- *
37
- * `OasArray` handles array type definitions with comprehensive validation
38
- * constraints including item count limits, uniqueness requirements, and
39
- * item type specifications. It supports nested schemas and references
40
- * for complex array structures.
41
- *
42
- * This class is used throughout the OAS processing pipeline to represent
43
- * array fields in API schemas, including lists of objects, primitive arrays,
44
- * and complex nested array structures.
45
- *
46
- * ## Key Features
47
- *
48
- * - **Item Type Definition**: Support for any schema type as array items
49
- * - **Size Constraints**: Minimum and maximum item count validation
50
- * - **Uniqueness Validation**: Ensure array items are unique (like Set behavior)
51
- * - **Nested Schemas**: Support for complex nested array structures
52
- * - **Reference Handling**: Seamless integration with schema references
53
- * - **Nullable Support**: Type-safe nullable array handling
54
- * - **JSON Schema**: Conversion to standard JSON Schema format
55
- *
56
- * @template Nullable - Whether the array value can be null
57
- *
58
- * @example String array
59
- * ```typescript
60
- * import { OasArray, OasString } from '@skmtc/core';
61
- *
62
- * const tagsArray = new OasArray({
63
- * title: 'Tags',
64
- * description: 'List of tags associated with the item',
65
- * items: new OasString({ minLength: 1 }),
66
- * minItems: 1,
67
- * uniqueItems: true,
68
- * example: ['javascript', 'typescript', 'react']
69
- * });
70
- * ```
71
- *
72
- * @example Object array with references
73
- * ```typescript
74
- * import { OasArray, OasRef } from '@skmtc/core';
75
- *
76
- * const usersArray = new OasArray({
77
- * title: 'Users',
78
- * description: 'List of user objects',
79
- * items: new OasRef({ refName: 'User' }),
80
- * maxItems: 100,
81
- * example: [
82
- * { id: 1, name: 'John' },
83
- * { id: 2, name: 'Jane' }
84
- * ]
85
- * });
86
- * ```
87
- *
88
- * @example Nested array (array of arrays)
89
- * ```typescript
90
- * const matrixArray = new OasArray({
91
- * title: 'Matrix',
92
- * description: '2D array of numbers',
93
- * items: new OasArray({
94
- * items: new OasInteger({ minimum: 0 })
95
- * }),
96
- * example: [
97
- * [1, 2, 3],
98
- * [4, 5, 6],
99
- * [7, 8, 9]
100
- * ]
101
- * });
102
- * ```
103
- *
104
- * @example Nullable array with constraints
105
- * ```typescript
106
- * const optionalIdsArray = new OasArray<true>({
107
- * title: 'Optional IDs',
108
- * description: 'Optional list of IDs',
109
- * items: new OasInteger({ format: 'int64', minimum: 1 }),
110
- * nullable: true,
111
- * minItems: 0,
112
- * maxItems: 10,
113
- * defaultValue: null
114
- * });
115
- * ```
116
- *
117
- * @example Unique items validation
118
- * ```typescript
119
- * const uniqueEmailsArray = new OasArray({
120
- * title: 'Email Recipients',
121
- * description: 'List of unique email addresses',
122
- * items: new OasString({ format: 'email' }),
123
- * uniqueItems: true, // Ensures no duplicate emails
124
- * minItems: 1,
125
- * example: ['user1@example.com', 'user2@example.com']
126
- * });
127
- * ```
128
- */
129
39
  export declare class OasArray<Nullable extends boolean | undefined = boolean | undefined> {
130
40
  /**
131
41
  * Object is part the 'schema' set which is used
@@ -183,6 +93,18 @@ export declare class OasArray<Nullable extends boolean | undefined = boolean | u
183
93
  *
184
94
  * @param fields - Array configuration fields including items schema, validation constraints, and metadata
185
95
  */
96
+ /**
97
+ * Whether the array is read-only.
98
+ */
99
+ readOnly: boolean | undefined;
100
+ /**
101
+ * Whether the array is write-only.
102
+ */
103
+ writeOnly: boolean | undefined;
104
+ /**
105
+ * Whether the array is deprecated.
106
+ */
107
+ deprecated: boolean | undefined;
186
108
  constructor(fields: ArrayFields<Nullable>);
187
109
  /**
188
110
  * Determines if this array is a reference object.
@@ -1 +1 @@
1
- {"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/oas/array/Array.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C;;;;GAIG;AACH,MAAM,MAAM,WAAW,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC9D,wCAAwC;IACxC,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IACnC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,0BAA0B;IAC1B,OAAO,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACtF,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wDAAwD;I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