Generate OpenAPI schema with Go from Go struct tags #3120
Unanswered
milosgajdos
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you figured it out? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to generate OpenAPI schema from Go structs that have
cue
tags but I'm somehow miserably failing. I have the following code:This produces the following output
It ignores the
components
and theirschemas
. I'm sure I'm missing something simple, but I can't figure out what.It seems the schema produced by
ExtractType
returnsnull
which seems to suggest to me that thecue
struct tags are somehow being ignored but not quite. I'd appreciate if anyone can point me in the right direction.Beta Was this translation helpful? Give feedback.
All reactions