This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
183 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { OpenAPI } from 'openapi-types' | ||
|
||
import { ResolvedOpenAPI } from './openapi' | ||
|
||
export { | ||
ResolvedOpenAPI, | ||
ResolvedOpenAPIV2, | ||
ResolvedOpenAPIV3, | ||
ResolvedOpenAPIV3_1, | ||
} from './openapi' | ||
|
||
export { OpenAPI, OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from 'openapi-types' | ||
|
||
export type AnyObject = Record<string, any> | ||
|
||
export type ValidateResult = { | ||
valid: boolean | ||
specification?: OpenAPI.Document | ||
version?: string | ||
errors?: ErrorObject[] | ||
} | ||
|
||
export type ErrorObject = { | ||
start: { | ||
line: number | ||
column: number | ||
offset: number | ||
} | ||
error: string | ||
path: string | ||
} | ||
|
||
export type ResolveResult = { | ||
valid: boolean | ||
version: string | undefined | ||
specification?: OpenAPI.Document | ||
schema?: ResolvedOpenAPI.Document | ||
errors?: ErrorObject[] | ||
} | ||
|
||
export type AjvOptions = { | ||
strict?: boolean | 'log' | ||
} | ||
|
||
/** | ||
* Not literally a filesystem, but a list of files with their content. | ||
* This is an abstraction layer to handle multiple files in the browser (without access to the hard disk). | ||
*/ | ||
export type Filesystem = FilesystemEntry[] | ||
|
||
/** | ||
* Holds all information about a single file (doesn’t have to be a literal file, see Filesystem). | ||
*/ | ||
export type FilesystemEntry = { | ||
dir: string | ||
entrypoint: boolean | ||
references: string[] | ||
filename: string | ||
specification: AnyObject | ||
} |
Oops, something went wrong.