Skip to content

Schemathesis returns error Missing path parameter for parameter that is both defined and required. #1005

Answered by Stranger6667
john-odonnell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @john-odonnell !

What version of schemathesis do you use?

As your example schema is not complete (e.g. LoginName is missing) I replaced all missing schemas with type: string and got the following two files:

schema.yaml:

openapi: "3.0.2"
info: { "title": "Test", "description": "Test", "version": "0.1.0" }
paths:
  '/authn-{authenticator}/{account}/login':
    $ref: 'authentication.yml#/components/paths/AuthenticatorLogin'

  '/authn-{authenticator}/{account}/api_key':
    $ref: 'authentication.yml#/components/paths/RotateAuthenticatorApiKey'

  '/authn-{authenticator}/{account}/{login}/authenticate':
    $ref: 'authentication.yml#/components/paths/ExternalAuthenticate'

authentication.yml:

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@Stranger6667
Comment options

@iammaguire
Comment options

@Stranger6667
Comment options

@iammaguire
Comment options

@Stranger6667
Comment options

Answer selected by Stranger6667
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants