-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation of migration structures
- Loading branch information
Showing
6 changed files
with
216 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,57 @@ | ||
import { IMigrateRoute } from "./IMigrateRoute"; | ||
import { OpenApi } from "./OpenApi"; | ||
|
||
/** | ||
* Document of migration. | ||
* | ||
* The `IMigrateDocument` interface is a document of migration from | ||
* {@link OpenAPI.IDocument OpenAPI document} to RPC (Remote Procedure Call) | ||
* functions; {@link IMigrateRoute}. | ||
* | ||
* As the `IMigrateDocument` and {@link IMigrateRoute} have a lot of special | ||
* stories, when you're developing OpenAPI generator library, please read | ||
* their descriptions carefully including the description of properties. | ||
* | ||
* @author Jeongho Nam - https://github.com/samchon | ||
*/ | ||
export interface IMigrateDocument { | ||
/** | ||
* List of routes for migration. | ||
*/ | ||
routes: IMigrateRoute[]; | ||
|
||
/** | ||
* List of errors occurred during the migration. | ||
*/ | ||
errors: IMigrateDocument.IError[]; | ||
} | ||
export namespace IMigrateDocument { | ||
/** | ||
* Error of migration in the operation level. | ||
*/ | ||
export interface IError { | ||
/** | ||
* Target operation causing the error. | ||
*/ | ||
operation: () => OpenApi.IOperation; | ||
|
||
/** | ||
* Method of the operation. | ||
* | ||
* If the {@link OpenApi.IOperation.method} is not one of below type | ||
* values, the operation would be ignored in the migration process for | ||
* the RPC (Remote Procedure Call) function. | ||
*/ | ||
method: "head" | "get" | "post" | "put" | "patch" | "delete"; | ||
|
||
/** | ||
* Original path from the OpenAPI document. | ||
*/ | ||
path: string; | ||
|
||
/** | ||
* List of error messages (reasons). | ||
*/ | ||
messages: string[]; | ||
} | ||
} |
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