Versions in this module Expand all Collapse all v0 v0.3.1 Sep 12, 2026 v0.3.0 Sep 10, 2026 Changes in this version + const ProfileApifoxHzThrift + func BuildRouteKey(method, path string) string + func DispatchJSON(body []byte) []byte + func ExtractRouteMethodNames(files []ThriftSourceFile) map[string]string + func FormatValidationIssues(issues []ValidationIssue) string + func NormalizeRoutePath(path string) string + func RenderThrift(document ThriftDocument) string + type BridgeError struct + Issues []ValidationIssue + Message string + Name string + Pointer string + type BridgeRequest struct + Action string + Files []ThriftSourceFile + Input json.RawMessage + Issues []ValidationIssue + Method string + Options json.RawMessage + Path string + type BridgeResponse struct + Error *BridgeError + Result json.RawMessage + type Kind uint8 + const Array + const Boolean + const Null + const Number + const Object + const String + type ProjectionError struct + Message string + Pointer string + func (e *ProjectionError) Error() string + type ProjectionOptions struct + Namespace string + RouteMethodNames map[string]string + ServiceName string + type ProjectionResult struct + Document ThriftDocument + Thrift string + func Convert(input []byte, options ProjectionOptions) (ProjectionResult, error) + func ConvertDocument(document *Value, options ProjectionOptions) (ProjectionResult, error) + type Property struct + Name string + Value *Value + type ThriftDocument struct + Definitions []ThriftStruct + Methods []ThriftMethod + Namespace string + ServiceName string + func Project(document *Value, options ProjectionOptions) (ThriftDocument, error) + type ThriftField struct + Annotations []string + Comment []string + ID int + Name string + Requiredness string + Type string + type ThriftMethod struct + Comment []string + HTTPMethod string + Name string + Path string + RequestType string + ResponseType string + type ThriftSourceFile struct + Content string + Path string + type ThriftStruct struct + Comment []string + Fields []ThriftField + Name string + type ValidationError struct + Issues []ValidationIssue + func (e *ValidationError) Error() string + type ValidationIssue struct + Code string + Message string + Pointer string + Severity string + type ValidationOptions struct + Profile string + ValidateProjection *bool + type ValidationResult struct + ErrorCount int + Issues []ValidationIssue + OperationCount int + PathCount int + Profile string + SchemaCount int + WarningCount int + func AssertValid(document *Value, options ValidationOptions) (ValidationResult, error) + func Validate(input []byte, options ValidationOptions) (ValidationResult, error) + func ValidateDocument(document *Value, options ValidationOptions) (ValidationResult, error) + type Value struct + Bool bool + Fields []Property + Items []*Value + Kind Kind + Number float64 + Text string + func Parse(input []byte) (*Value, error) + func ParseOpenAPIDocument(input []byte) (*Value, error) + func (v *Value) Clone() *Value + func (v *Value) Entries() []Property + func (v *Value) Get(key string) *Value + func (v *Value) Has(key string) bool + func (v *Value) Is(kind Kind) bool + func (v *Value) List() []*Value + func (v *Value) MarshalJSON() ([]byte, error) + func (v *Value) Set(name string, value *Value) + func (v *Value) Str() string + func (v *Value) Truth() bool v0.3.0-rc.1 Sep 10, 2026