This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from contiamo/use-mutate-open-api-generation
Generate `useMutate` components
- Loading branch information
Showing
11 changed files
with
517 additions
and
268 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
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,21 @@ | ||
declare module "ibm-openapi-validator" { | ||
interface OpenAPIError { | ||
path: string; | ||
message: string; | ||
} | ||
|
||
interface ValidatorResults { | ||
errors: OpenAPIError[]; | ||
warnings: OpenAPIError[]; | ||
} | ||
|
||
/** | ||
* Returns a Promise with the validation results. | ||
* | ||
* @param openApiDoc An object that represents an OpenAPI document. | ||
* @param defaultMode If set to true, the validator will ignore the .validaterc file and will use the configuration defaults. | ||
*/ | ||
function validator(openApiDoc: any, defaultMode = false): Promise<ValidatorResults>; | ||
|
||
export default validator; | ||
} |
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
Oops, something went wrong.