(methodType: HttpMethods)
| 352 | } |
| 353 | |
| 354 | getFillableFields(methodType: HttpMethods): string[] { |
| 355 | if (this.fillable === null) { |
| 356 | return []; |
| 357 | } |
| 358 | |
| 359 | if (Array.isArray(this.fillable)) { |
| 360 | return this.fillable; |
| 361 | } |
| 362 | |
| 363 | const values: IMethodBaseConfig<string[]> = this.fillable; |
| 364 | switch (methodType) { |
| 365 | case HttpMethods.PATCH: |
| 366 | return values.PATCH ?? []; |
| 367 | case HttpMethods.POST: |
| 368 | return values.POST ?? []; |
| 369 | case HttpMethods.PUT: |
| 370 | return values.PUT ?? []; |
| 371 | default: |
| 372 | return []; |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | getValidationRules(methodType: HttpMethods): ModelValidation | null { |
| 377 | if (this.hasStringValue()) { |
no outgoing calls
no test coverage detected