Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required parameter in: header failure #4

Open
tendallas opened this issue Sep 14, 2023 · 0 comments
Open

Required parameter in: header failure #4

tendallas opened this issue Sep 14, 2023 · 0 comments

Comments

@tendallas
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant