feat: complete contract-driven business development and MySQL integration

This commit is contained in:
2026-09-24 21:56:04 +08:00
parent f9afb8f8dd
commit f5478cdc76
108 changed files with 6557 additions and 550 deletions

View File

@@ -147,6 +147,10 @@ func responseSchema(n *node) *openapi.Schema {
b := base(n)
if b.scalar != nil {
s := wireSchema(b.scalar.JSONOutput)
s.Description = n.schema.Description
if b.scalar.JSONInput == b.scalar.JSONOutput {
s.Example = n.schema.Example
}
if n.typ.Kind() == reflect.Pointer {
s = nullableSchema(s)
}