Versions in this module Expand all Collapse all v0 v0.1.0 Sep 19, 2026 Changes in this version + const OpenAPIPropertyElementPathSegment + func JSONNativeValidatorName(program *language.Program, contractName, moduleName string) (string, error) + func OpenAPIContextOccurrenceReplayTarget(operationID, status string, paths []string, offset int) string + func OpenAPIContextReplayTarget(operationID, status string) string + func OpenAPIRequestOccurrenceReplayTarget(operationID string, paths []string, offset int) string + func OpenAPIRequestReplayTarget(operationID string) string + func OpenAPIResponseOccurrenceReplayTarget(operationID, status string, paths []string, offset int) string + func OpenAPIResponseReplayTarget(operationID, status string) string + type File struct + Path string + Source string + func GenerateJSONSerde(program *language.Program, namespace, contractName, moduleName string, ...) (files []File, failure error) + func GenerateModels(program *language.Program, namespace, contractName string) (files []File, failure error) + func GenerateOpenAPIContext(program *language.Program, namespace, contractName, className string, ...) (files []File, failure error) + func GenerateProjectAvroSerde(project *native.Project, contractName, serdeName string) (files []File, failure error) + func GenerateProjectJSONSerde(project *native.Project, contractName, moduleName string) ([]File, error) + func GenerateProjectNativeJSONValidator(project *native.Project, className string) (files []File, failure error) + func GenerateProjectOpenAPIContext(project *native.Project, contractName, className string) (files []File, failure error) + func GenerateProjectOpenAPIPropertyTests(project *native.Project, namespace, contractName, facadeName string, ...) ([]File, error) + func GenerateProjectPropertyTests(project *native.Project, namespace, contractName string, ...) ([]File, error) + func GeneratePropertyTests(program *language.Program, namespace, contractName string, ...) ([]File, error) + func GenerateRuntime(namespace string) ([]File, error) + func GenerateValidator(program *language.Program, namespace, className string) (files []File, failure error) + func GenerateValidatorWithTypes(program *language.Program, namespace, className string, ...) (files []File, failure error) + type GenerationError struct + At language.Span + Message string + func (e *GenerationError) Error() string + type JSONCodecLimits struct + Bytes int + Depth int + NameLength int + Nodes int + NumberLength int + StringLength int + type JSONDiscriminator struct + Arguments map[string][]string + Field string + Values map[string]string + type JSONIntegerEncoding uint8 + const JSONIntegerNumber + const JSONIntegerString + type JSONRealEncoding uint8 + const JSONRealExactDecimal + const JSONRealRationalString + const JSONRealUnspecified + type JSONSerdeOptions struct + CodecLimits JSONCodecLimits + Discriminators map[string]JSONDiscriminator + Integers JSONIntegerEncoding + NumericExpansion int + PreserveExtraFields bool + PreserveExtraFieldsFor map[string]bool + Reals JSONRealEncoding + RejectExtraFields bool + RejectExtraFieldsFor map[string]bool + Root string + Scalars map[string]native.ScalarEncoding + Timestamps JSONTimestampEncoding + func JSONSerdeOptionsFromMetadata(root string, metadata native.WireMetadata) (JSONSerdeOptions, error) + type JSONTimestampEncoding uint8 + const JSONTimestampRFC3339String + const JSONTimestampUnspecified + type PropertyExample struct + DiagnosticCodes []string + Expected PropertyOutcome + NativeExpected PropertyNativeOutcome + Target string + Value value.Data + type PropertyNativeOutcome uint8 + const ExampleNativeInvalid + const ExampleNativeValid + type PropertyOutcome uint8 + const ExampleIndeterminate + const ExampleInvalid + const ExampleValid + type PropertyReplay struct + DiagnosticCode string + Kind ReplayKind + SerializedData string + Target string + type PropertyTarget struct + Name string + type PropertyTestOptions struct + AttemptBudget int + AvroSerde string + CaseCount int + Examples []PropertyExample + JSONModule string + NativeJSONValidator string + Replays []PropertyReplay + Seed int64 + Targets []PropertyTarget + type ReplayKind uint8 + const ReplayInvalid + const ReplayValid + type Resource struct + Content []byte + Path string + func GenerateProjectNativeJSONResources(project *native.Project) ([]Resource, error)