Skip to content

Commit

Permalink
feat: add description to schema object defs
Browse files Browse the repository at this point in the history
docs: run doc codegen

Signed-off-by: Mathspy <[email protected]>
Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
Mathspy authored and frezbo committed Feb 20, 2025
1 parent 79ee304 commit f5c0970
Show file tree
Hide file tree
Showing 3 changed files with 403 additions and 200 deletions.
3 changes: 3 additions & 0 deletions hack/docgen/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ func structToSchema(pkg string, st *Struct) *jsonschema.Schema {

schema.Properties = properties
schema.Required = requiredFields
if st.Text.Description != "" {
schema.Description = st.Text.Description
}

return &schema
}
Expand Down
Loading

0 comments on commit f5c0970

Please sign in to comment.