Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCombinedSpec ¶
func GenerateCombinedSpec(services []ServiceSpec, baseURL string) *openapi3.T
GenerateCombinedSpec combines OpenAPI specs from multiple services into a single spec.
Types ¶
type ServiceSpec ¶
ServiceSpec holds the inputs needed to generate an OpenAPI spec for one database service.
type TypeMapping ¶
type TypeMapping struct {
Type string // OpenAPI type: string, integer, number, boolean, object, array
Format string // OpenAPI format: int32, int64, float, double, date, date-time, uuid, byte, etc.
}
TypeMapping maps database column types to OpenAPI type/format pairs.
func MapDBType ¶
func MapDBType(dbType string) TypeMapping
MapDBType converts a database column type to an OpenAPI type mapping. Falls back to {"string", ""} for unknown types.
Click to show internal directories.
Click to hide internal directories.