Skip to content

Commit f5c0970

Browse files
Mathspyfrezbo
authored andcommitted
feat: add description to schema object defs
docs: run doc codegen Signed-off-by: Mathspy <[email protected]> Signed-off-by: Noel Georgi <[email protected]>
1 parent 79ee304 commit f5c0970

File tree

3 files changed

+403
-200
lines changed

3 files changed

+403
-200
lines changed

hack/docgen/schema.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ func structToSchema(pkg string, st *Struct) *jsonschema.Schema {
261261

262262
schema.Properties = properties
263263
schema.Required = requiredFields
264+
if st.Text.Description != "" {
265+
schema.Description = st.Text.Description
266+
}
264267

265268
return &schema
266269
}

0 commit comments

Comments
 (0)