-
Notifications
You must be signed in to change notification settings - Fork 23
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
thread 'main' panicked at 'called Option::unwrap()
on a None
value'
#13
Comments
Hi, thanks for the report. Could you please send the specification? I'll not be able to debug it without it. |
I see the same crash with a simple login endpoint description ---
openapi: 3.0.3
info:
title: OpenAPI Fuzzer reproducer
version: 1.0.0
paths:
/api/authentication/login:
post:
summary: Login to app
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginRequest'
responses:
"200":
description: Login successful
headers:
Authorization:
description: The bearer token to be used for all requests where authentication
is necessary
required: true
style: simple
schema:
type: string
content:
application/json: {}
"400":
description: Authentication failed
content:
application/json: {}
/api/authentication/logout:
post:
responses:
"201":
description: logged out
/api/authentication/register:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RegistrationRequest'
responses:
"200":
description: OK
components:
schemas:
LoginRequest:
description: POJO that represents the contents of a login request.
required:
- email
- password
type: object
properties:
email:
minLength: 1
type: string
nullable: false
password:
minLength: 1
type: string
nullable: false
RegistrationRequest:
description: POJO that represents the contents of a registration request.
required:
- email
- firstName
- lastName
- password
type: object
properties:
email:
minLength: 1
type: string
nullable: false
firstName:
minLength: 1
type: string
nullable: false
lastName:
minLength: 1
type: string
nullable: false
password:
minLength: 1
type: string
nullable: false |
I had the same error and I've solved the problem by excluding response body content type from swagger, leaving status_code and description only.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I tried to use this project to fuzz my API and it crashed. Here is the backtrace:
The text was updated successfully, but these errors were encountered: