cloudflare / cloudflare/chanfana

Invalid schema generation

Open
#223 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
766
Forks
70
Avg merge
25m
Merged PRs (30d)
4

Description

Hello @G4brym,

I assume that this code is used to generate these schemas for Cloudflare? (https://github.com/cloudflare/api-schemas) ?

The linters/tools I've used (spectral, openapi-generator, etc) say there are about a half dozen errors, and they are preventing me from using it.

![image](https://github.com/user-attachments/assets/2426d0c5-08c2-42b7-baf8-413928216d8d)

as one example.

redocly:

![image](https://github.com/user-attachments/assets/aaa7dfeb-4ced-4fb3-8d1d-92c0f653ffde)

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the schema generation path in this repository and compare its output with the Cloudflare api-schemas repository. Run Spectral, openapi-generator, or Redocly against the generated schemas and identify the reported errors. Done means the generated schemas pass the relevant validators and remain usable by OpenAPI tooling.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, typescript
Domain
api, backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.