@kubb/adapter-oas 5.0.0-alpha.33 → 5.0.0-alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  // external packages
2
2
 
3
- import { httpMethods } from '@kubb/ast'
4
- import type { HttpMethod as AstHttpMethod, ParserOptions } from '@kubb/ast/types'
5
3
  import type { AdapterFactoryOptions } from '@kubb/core'
4
+ import { ast } from '@kubb/core'
6
5
  import type { Operation as OASOperation } from 'oas/operation'
7
6
  import type {
8
7
  DiscriminatorObject as OASDiscriminatorObject,
@@ -83,15 +82,15 @@ export type SchemaObject = OASSchemaObject & {
83
82
  * HttpMethods['POST'] // 'post'
84
83
  * ```
85
84
  */
86
- export const HttpMethods = Object.fromEntries(Object.entries(httpMethods).map(([lower, upper]) => [upper, lower])) as Record<
87
- Uppercase<AstHttpMethod>,
88
- Lowercase<AstHttpMethod>
85
+ export const HttpMethods = Object.fromEntries(Object.entries(ast.httpMethods).map(([lower, upper]) => [upper, lower])) as Record<
86
+ Uppercase<ast.HttpMethod>,
87
+ Lowercase<ast.HttpMethod>
89
88
  >
90
89
 
91
90
  /**
92
91
  * Lowercase HTTP method string as used by the `oas` package (`'get' | 'post' | ...`).
93
92
  */
94
- export type HttpMethod = Lowercase<AstHttpMethod>
93
+ export type HttpMethod = Lowercase<ast.HttpMethod>
95
94
 
96
95
  /**
97
96
  * Normalized OpenAPI document type used throughout the adapter.
@@ -174,7 +173,7 @@ export type AdapterOasOptions = {
174
173
  * @default 'strict'
175
174
  */
176
175
  discriminator?: 'strict' | 'inherit'
177
- } & Partial<ParserOptions>
176
+ } & Partial<ast.ParserOptions>
178
177
 
179
178
  /**
180
179
  * Resolved adapter options available at runtime after defaults have been applied.