-
Notifications
You must be signed in to change notification settings - Fork 272
Description
The OpenAPI specification at https://open-vsx.org/v3/api-docs/registry contains an invalid schema reference.
I believe this bug is fixed in this repo rather than https://github.com/EclipseFdn/open-vsx.org as this contains the code that generates the schema file, but I can re-report it over there if you'd prefer?
Details
Location: /api/user/namespace/create POST endpoint requestBody
Issue: References #/components/schemas/NamespaceJson which does not exist in the components/schemas section.
Available schemas: Namespace and NamespaceDetails
Steps to reproduce:
- Download the spec:
curl -o openvsx.json https://open-vsx.org/v3/api-docs/registry- Validate with swagger-cli:
npx @apidevtools/swagger-cli validate openvsx.json- Result: Token "NamespaceJson" does not exist.
- Validate with Redocly CLI:
npx @redocly/cli lint openvsx.json- Result:
Can't resolve $ref at #/paths/~1api~1user~1namespace~1create/post/requestBody/content/application~1json/schema
Expected: The reference should likely point to #/components/schemas/Namespace instead.