8000 apitypes: openapi spec by hdonnay · Pull Request #2308 · quay/clair · GitHub
[go: up one dir, main page]

Skip to content

Conversation

hdonnay
Copy link
Member
@hdonnay hdonnay commented Sep 26, 2025

This series (split from #2266) adds JSON Schema documents for all the types exposed in the HTTP API and adds a way to generate the OpenAPI specification from those, a jq script, and some other loose files.

TODO

  • Write+check all the "description" members for the JSON Schema documents.
  • Write+check all the "description" members for the OpenAPI document.
  • Check the generated API reference (./Documentation/reference/api.md) is at least as-useful as it was.

Coming later in series:

  • Cross-check and adjust the API implementation.
  • Implement the JSON marshaling and unmarshaling and check against the relevant JSON Schema.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
@hdonnay hdonnay requested review from crozzy and BradLugo September 26, 2025 19:10
@hdonnay
Copy link
Member Author
hdonnay commented Sep 26, 2025

@crozzy @BradLugo RFC: I currently have the go generate work driven by a shell script written in zsh. Is that super annoying? I suppose I could port it to a go script.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Creating this file is now handled by the same script that generates the
OpenAPI doc, so being able to build it independently and needing to
check it for drift don't make a ton of sense.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
@hdonnay hdonnay force-pushed the hack/apitypes/openapi branch from e22f298 to 38723ef Compare September 26, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0