Add logic to generate openapi response structures (#18192)

This commit is contained in:
Anton Averchenkov
2022-12-05 11:11:06 -05:00
committed by GitHub
parent 672cdc0fdb
commit 5b04a05511
6 changed files with 80 additions and 17 deletions

View File

@@ -477,6 +477,16 @@ func TestOpenAPI_Paths(t *testing.T) {
"amount": 42,
},
},
Fields: map[string]*FieldSchema{
"field_a": {
Type: TypeString,
Description: "field_a description",
},
"field_b": {
Type: TypeBool,
Description: "field_b description",
},
},
}},
},
},