Documentation
¶
Index ¶
- type Info
- func (i Info) ClientType(schemaName string) string
- func (i Info) ErrorType(opID string, status int, fallbackSchemaName string) string
- func (i Info) Operation(method, path, fallbackName string) OperationMeta
- func (i Info) OptValueType(optType string) (string, bool)
- func (i Info) ParamFieldType(opID, fieldName, fallback string) string
- func (i Info) SchemaFieldType(schemaName, fieldName, fallback string) string
- type OperationMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
SchemaTypes map[string]string
SchemaFieldTypes map[string]map[string]string
ParamFieldTypes map[string]map[string]string
OptValueTypes map[string]string
ErrorResponseTypes map[string]map[int]string
Operations map[string]OperationMeta
}
Info contains normalized metadata extracted from ogen-generated client files.
func (Info) ClientType ¶
ClientType resolves schema name used by depsmith codegen to ogen client type name.
func (Info) Operation ¶
func (i Info) Operation(method, path, fallbackName string) OperationMeta
Operation resolves ogen method name/return type by route.
func (Info) OptValueType ¶
OptValueType resolves value type carried by ogen Opt* wrapper.
func (Info) ParamFieldType ¶
ParamFieldType resolves concrete ogen field type for operation params struct field.
func (Info) SchemaFieldType ¶
SchemaFieldType resolves concrete ogen field type for schema field.
type OperationMeta ¶
OperationMeta describes resolved ogen client operation metadata.
Click to show internal directories.
Click to hide internal directories.