Skip to content

Commit

Permalink
Fix: typo and process version type (#121)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas <[email protected]>
  • Loading branch information
FelipeTrost and LucasMGo authored Oct 16, 2023
1 parent 660d9f4 commit 4bd4132
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 36 deletions.
119 changes: 88 additions & 31 deletions src/management-system-v2/lib/openapiSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ export interface components {
};
/** processData */
processData: {
description?: string;
departments?: string[];
/** @description The variables supposed to be used in the process */
variables?: {
Expand Down Expand Up @@ -550,6 +549,8 @@ export interface components {
pathItems: never;
}

export type $defs = Record<string, never>;

export type external = Record<string, never>;

export interface operations {
Expand All @@ -571,7 +572,9 @@ export interface operations {
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
/** @description Failed to get processes */
500: never;
500: {
content: never;
};
};
};
/** @description Post a process. */
Expand Down Expand Up @@ -600,11 +603,15 @@ export interface operations {
};
};
/** @description The body of the request does not conform to the schma of a process */
400: never;
400: {
content: never;
};
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
/** @description Failed to create the process due an internal error */
500: never;
500: {
content: never;
};
};
};
/** @description Get a porcess by it's id. */
Expand All @@ -621,11 +628,15 @@ export interface operations {
};
};
/** @description Error getting the bpmn of the process */
400: never;
400: {
content: never;
};
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
/** @description No Process with the given definitionId was found */
404: never;
404: {
content: never;
};
};
};
/** @description Updates a **partial** set of properties (this means, that arbitrarily many properties can be left out). */
Expand Down Expand Up @@ -655,10 +666,14 @@ export interface operations {
};
};
/** @description Request body doesn't contain a partial set of key:value properties of the Process scheme */
400: never;
400: {
content: never;
};
403: components['responses']['403_validationFailed'];
/** @description No Process with the given definitionId was found */
404: never;
404: {
content: never;
};
};
};
/** @description Delete a process. */
Expand All @@ -670,10 +685,14 @@ export interface operations {
};
responses: {
/** @description Process deleted succesfuly */
200: never;
200: {
content: never;
};
403: components['responses']['403_validationFailed'];
/** @description No Process with the given definitionId was found */
404: never;
404: {
content: never;
};
};
};
/** @description Get all the versions of a process. */
Expand All @@ -693,7 +712,9 @@ export interface operations {
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
/** @description No Process with the given definitionId was found */
404: never;
404: {
content: never;
};
};
};
/** @description Post a new version of a process. */
Expand All @@ -713,9 +734,13 @@ export interface operations {
};
responses: {
/** @description OK */
200: never;
200: {
content: never;
};
/** @description Bad Request */
400: never;
400: {
content: never;
};
403: components['responses']['403_validationFailed'];
};
};
Expand All @@ -736,7 +761,9 @@ export interface operations {
};
};
/** @description {definitionId} or {version} are wrong */
400: never;
400: {
content: never;
};
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
};
Expand Down Expand Up @@ -771,7 +798,7 @@ export interface operations {
requestBody?: {
content: {
'application/json': {
[key: string]: components['schemas']['image'] | undefined;
[key: string]: components['schemas']['image'];
};
};
};
Expand All @@ -787,7 +814,9 @@ export interface operations {
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
/** @description Not Found */
404: never;
404: {
content: never;
};
};
};
/** @description Get all user tasks used in a process. */
Expand Down Expand Up @@ -849,9 +878,13 @@ export interface operations {
};
responses: {
/** @description User task HTML updated */
200: never;
200: {
content: never;
};
/** @description User task HTML created in the server */
201: never;
201: {
content: never;
};
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
};
Expand All @@ -867,7 +900,9 @@ export interface operations {
};
responses: {
/** @description The request returns 200 wether the userTaskFile exists or not */
200: never;
200: {
content: never;
};
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
};
Expand Down Expand Up @@ -906,7 +941,9 @@ export interface operations {
};
responses: {
/** @description Created */
201: never;
201: {
content: never;
};
/** @description Bad Request */
400: {
content: {
Expand Down Expand Up @@ -956,7 +993,9 @@ export interface operations {
};
responses: {
/** @description OK */
200: never;
200: {
content: never;
};
/** @description Possible causes: The body of the request is not a JSON object or the machine is not stored and thus can't be changed. */
400: {
content: {
Expand All @@ -983,7 +1022,9 @@ export interface operations {
};
responses: {
/** @description OK (This is the response, even if the machine is not known) */
200: never;
200: {
content: never;
};
401: components['responses']['401_unauthenticated'];
/** @description The machine is known through the discovery and not stored. It can't be removed! */
403: {
Expand All @@ -1003,7 +1044,9 @@ export interface operations {
};
};
/** @description Bad Request */
400: never;
400: {
content: never;
};
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
};
Expand All @@ -1016,15 +1059,17 @@ export interface operations {
/** Format: email */
email: string;
username: string;
lastName?: string;
lastName: string;
firstName: string;
password: string;
};
};
};
responses: {
/** @description OK */
200: never;
200: {
content: never;
};
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
};
Expand Down Expand Up @@ -1069,7 +1114,9 @@ export interface operations {
};
responses: {
/** @description No Content */
204: never;
204: {
content: never;
};
/** @description Bad Request */
400: {
content: {
Expand All @@ -1090,7 +1137,9 @@ export interface operations {
};
responses: {
/** @description No Content */
204: never;
204: {
content: never;
};
/** @description Bad Request */
400: {
content: {
Expand Down Expand Up @@ -1239,7 +1288,9 @@ export interface operations {
};
responses: {
/** @description No Content */
204: never;
204: {
content: never;
};
400: components['responses']['400_Error_Json'];
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
Expand Down Expand Up @@ -1280,7 +1331,9 @@ export interface operations {
};
responses: {
/** @description Created */
201: never;
201: {
content: never;
};
400: components['responses']['400_error_message'];
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
Expand Down Expand Up @@ -1317,7 +1370,9 @@ export interface operations {
};
responses: {
/** @description Role deleted */
204: never;
204: {
content: never;
};
/** @description Bad Request */
400: {
content: {
Expand Down Expand Up @@ -1362,7 +1417,9 @@ export interface operations {
401: components['responses']['401_unauthenticated'];
403: components['responses']['403_validationFailed'];
/** @description Not Found */
404: never;
404: {
content: never;
};
};
};
}
10 changes: 5 additions & 5 deletions src/management-system/src/backend/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@
"username": {
"type": "string"
},
"lastName ": {
"lastName": {
"type": "string"
},
"firstName": {
Expand Down Expand Up @@ -1759,7 +1759,7 @@
"type": "object",
"properties": {
"version": {
"type": "string"
"type": "number"
},
"name": {
"type": "string"
Expand Down Expand Up @@ -2061,14 +2061,14 @@
"username": {
"type": "string"
},
"firstName ": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
}
},
"required": ["email", "username", "firstName ", "lastName"]
"required": ["email", "username", "firstName", "lastName"]
},
"userData": {
"title": "user",
Expand All @@ -2088,7 +2088,7 @@
"username": {
"type": "string"
},
"lastName ": {
"lastName": {
"type": "string"
},
"firstName": {
Expand Down

0 comments on commit 4bd4132

Please sign in to comment.