Closed tschaffter closed 5 months ago
To solve the server error, set it to https://openchallenges.io/api/v1
This error happens for EmptyObject
because it indeed doesn't have properties.
This error also show for ChallengePlatformsPage
:
ChallengePlatformsPage:
type: object
description: A page of challenge platforms.
allOf:
- $ref: "#/components/schemas/PageMetadata"
- type: object
properties:
challengePlatforms:
description: A list of challenge platforms.
type: array
items:
$ref: "#/components/schemas/ChallengePlatform"
required:
- challengePlatforms
x-java-class-annotations:
- "@lombok.Builder"
According to this thread, GPT does not support reference to parameters.
I’m also running into this issue, references to parameters don’t work. References to schemas and also responses work fine.
In path /challenges, method get, operationId listChallenges, parameter {'$ref': '#/components/parameters/challengeSearchQuery'} is has missing or non-string name; skipping
paths:
/challenges:
get:
tags:
- Challenge
summary: List challenges
description: List challenges
operationId: listChallenges
parameters:
- $ref: "#/components/parameters/challengeSearchQuery"
parameters:
challengeSearchQuery:
name: challengeSearchQuery
description: The search query used to find challenges.
in: query
schema:
$ref: "#/components/schemas/ChallengeSearchQuery"
The component ChallengesPage
does not include properties but an allOf
(see above).
In context=('paths', '/challenges', '200', 'response', 'content', 'application/json', 'schema'), reference to unknown component ChallengesPage; using empty schema
Same reason as an issue above: GPT does not support references for parameters.
/challenges/{challengeId}:
parameters:
- $ref: "#/components/parameters/challengeId"
The default value of 100 led to an error about the response being to large.
GPT takes some times to fetch multiple pages. For each page, GPT will display a message "Talk to ...".
Pages returned by OC include the property totalElements
. GPT can retrieve this information by fetching only a one page.
User How many challenges are on OpenChallenges?
GPT There are currently 491 challenges listed in the OpenChallenges database.
User Can you show me the raw response for the preview request you made?
GPT I'm sorry, but I cannot display the raw response of the previous request due to a system limitation. The data retrieval process is designed to provide summarized information rather than raw data outputs. If you have specific queries about challenges on Synapse or any other platform, feel free to ask, and I'll do my best to provide the information within these constraints.
What product(s) is this story for?
OpenChallenges
As a user, I want
No response
Description
Actions: OpenChallenges REST API
Errors:
Acceptance criteria
No response
Tasks
No response
Anything else?
No response
Have you linked this story to a GitHub Project?