Skip to content

Required parameter in: header failure #4

@tendallas

Description

@tendallas

When I'm trying to specify parameter in header as required, like this:

parameters:
  - name: signature
    in: header
    required: true
    type: string

And generate sources. I'm getting next error

Transpiling & type-checking TypeScript project @//**/**/src/main/resources/rest-api:_ts [tsc -p /some/path/src/main/resources/rest-api/tsconfig__ts.json] failed: (Exit 2): tsc.sh failed: error executing command (from target //**/**/src/main/resources/rest-api:_ts) 
  (cd /private/var/tmp/_bazel_**/c981d7e131de815f475025bd8a9d18a4/sandbox/darwin-sandbox/4/execroot/project && \
  exec env - \
    BAZEL_BINDIR=bazel-out/darwin_arm64-fastbuild/bin \
  bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/npm_typescript/tsc.sh --skipLibCheck --project **/**/src/main/resources/rest-api/tsconfig__ts.json --outDir **/**/src/main/resources/rest-api --rootDir **/**/src/main/resources/rest-api --declarationDir **/**/src/main/resources/rest-api)
# Configuration: fba54bc95925d70c47f41ea129b080d08fdc90f27cb37f94fa0bf461a2438995
# Execution platform: @local_config_platform//:host
error TS2339: Property 'signature' does not exist on type

Looks like typescript generation doesn't know how to deal with it. Currently need to use required: false with strict checking on business logic side

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions