feat: complete contract-driven business development and MySQL integration
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user