Commit dd0089f
authored
Guard against null parameter fields in OpenAPI operation parsing (#1453)
* Guard against null parameter fields in OpenAPI operation parsing
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
* Guard operation.parameters from NPE
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
* Apply pull request suggestions
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
* Compare enum with == operator
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
* Apply @fjtirado suggestions
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
* Use hasParameters instead != null check
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
---------
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>1 parent 5fc29d6 commit dd0089f
2 files changed
Lines changed: 6 additions & 5 deletions
File tree
- impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
0 commit comments