I have this schema that gets correctly parsed on Swagger Editor:
openapi: 3.0.0
info:
title: My API
description: This API allows users to search for car parts and report missing parts.
version: 1.0.0
servers:
- url: https://app.myserver.com
description: Mechanic Invoice Check REST API
paths:
/report_missing_car_parts:
post:
operationId: reportMissingCarParts
summary: Report a list of missing car parts in the database.
description: Report missing car parts of the database, including the model and the make of the car.
requestBody:
required: true
content:
'application/json':
schema:
type: array
items:
type: object
required:
- Make
- Model
- Car_Part
- Query
properties:
Make:
type: string
description: Make of the car.
Model:
type: string
description: Model of the car.
Car_Part:
type: string
description: Specific car part that is missing.
Query:
type: string
description: Additional query or information related to the missing car part.
responses:
"201":
description: The missing car part report was successfully submitted.
But when pasting it as action I get this error:
In path /report_missing_car_parts, method post, operationId reportMissingCarParts, request body schema is not an object schema; skipping
In path /report_missing_car_parts, method post, operationId reportMissingCarParts, skipping function due to errors
Can somebody help?