Skip to content

Commit

Permalink
fix(orchestrator): remove date-time format from spec (#1282)
Browse files Browse the repository at this point in the history
The values of date-time fields don't refect the RFC format.
Use only string.

Fix https://issues.redhat.com/browse/FLPATH-1051

Signed-off-by: Gloria Ciavarrini <[email protected]>
  • Loading branch information
gciavarrini authored Feb 27, 2024
1 parent c81049a commit 2b59dcf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,7 @@ const OPENAPI = `
"$ref": "#/components/schemas/ProcessInstanceStatusDTO"
},
"started": {
"type": "string",
"format": "date-time"
"type": "string"
},
"duration": {
"type": "string"
Expand Down Expand Up @@ -786,12 +785,10 @@ const OPENAPI = `
},
"enter": {
"type": "string",
"format": "date-time",
"description": "Date when the node was entered"
},
"exit": {
"type": "string",
"format": "date-time",
"description": "Date when the node was exited (optional)"
},
"definitionId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export interface components {
name?: string;
workflow?: string;
status?: components['schemas']['ProcessInstanceStatusDTO'];
/** Format: date-time */
started?: string;
duration?: string;
category?: components['schemas']['WorkflowCategoryDTO'];
Expand Down Expand Up @@ -176,15 +175,9 @@ export interface components {
name?: string;
/** @description Node type */
type?: string;
/**
* Format: date-time
* @description Date when the node was entered
*/
/** @description Date when the node was entered */
enter?: string;
/**
* Format: date-time
* @description Date when the node was exited (optional)
*/
/** @description Date when the node was exited (optional) */
exit?: string;
/** @description Definition ID */
definitionId?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1192,15 +1192,15 @@ endif::internal-generation[]

| enter
|
| Date
| String
| Date when the node was entered
| date-time
|

| exit
|
| Date
| String
| Date when the node was exited (optional)
| date-time
|

| definitionId
|
Expand Down Expand Up @@ -1284,9 +1284,9 @@ endif::internal-generation[]

| started
|
| Date
| String
|
| date-time
|

| duration
|
Expand Down Expand Up @@ -1589,13 +1589,13 @@ Category of the workflow
|
| oas_any_type_not_mapped
| Date when the node was entered
| date-time
|

| exit
|
| oas_any_type_not_mapped
| Date when the node was exited (optional)
| date-time
|

| definitionId
|
Expand Down
3 changes: 0 additions & 3 deletions plugins/orchestrator-common/src/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ components:
$ref: '#/components/schemas/ProcessInstanceStatusDTO'
started:
type: string
format: date-time
duration:
type: string
category:
Expand Down Expand Up @@ -504,11 +503,9 @@ components:
description: Node type
enter:
type: string
format: date-time
description: Date when the node was entered
exit:
type: string
format: date-time
description: Date when the node was exited (optional)
definitionId:
type: string
Expand Down

0 comments on commit 2b59dcf

Please sign in to comment.