ActionsGPT gave me a bad Schema and does not know how to fix it, it just keep telling me I need to 'fix' something then give me the exact same code.
Error: In path /end_point/{id}, method post, operationId call_and_point, parameter {'$ref': '#/components/parameters/MyUUID'} is has missing or non-string name; skipping
Code:
openapi: 3.0.0
info:
title: Test
description: Just testing error massages.
version: 1.0.0
servers:
- url: <some url>
description: Main API server
paths:
"/end_point/{id}":
post:
operationId: call_and_point
summary: call this endpoint.
security:
- ApiKeyAuth: []
parameters:
- $ref: "#/components/parameters/MyUUID"
responses:
"200":
description: Success!
content:
application/json:
schema:
$ref: "#/components/schemas/SuccessResponse"
components:
parameters:
MyUUID:
in: path
name: id
required: true
schema:
type: string
format: uuid
schemas:
SuccessResponse:
type: object
properties:
success:
type: string
required:
- success