Documentation
¶
Overview ¶
Package reportconformance validates downstream consumer behavior for reporting projections.
Index ¶
Constants ¶
View Source
const ( BundleSchemaVersion = reportschema.ReportingConsumerConformanceSchemaV1 ResultSchemaVersion = reportschema.ReportingConsumerConformanceResultV1 FixtureSetVersion = "reporting-projection-golden-v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
SchemaVersion string `json:"schema_version"`
FixtureSet string `json:"fixture_set"`
Consumer ConsumerIdentity `json:"consumer"`
PassedAt string `json:"passed_at,omitempty"`
Cases []CaseResult `json:"cases"`
}
type CaseResult ¶
type CaseResult struct {
Name string `json:"name"`
ProjectionID string `json:"projection_id"`
Parsed bool `json:"parsed"`
SemanticChecks SemanticChecks `json:"semantic_checks"`
}
type ConsumerIdentity ¶
type LastPassed ¶
type RequiredCase ¶
type RequiredCase struct {
Name string `json:"name"`
Description string `json:"description"`
ProjectionID string `json:"projection_id"`
View string `json:"view"`
MaxSensitivity string `json:"max_sensitivity"`
RequiredSemanticChecks []string `json:"required_semantic_checks"`
}
func RequiredCases ¶
func RequiredCases() []RequiredCase
type Result ¶
type Result struct {
Kind string `json:"kind"`
SchemaVersion string `json:"schema_version"`
FixtureSet string `json:"fixture_set"`
Consumer ConsumerIdentity `json:"consumer"`
Valid bool `json:"valid"`
ParsePassed bool `json:"parse_passed"`
SemanticPassed bool `json:"semantic_passed"`
RequiredCaseCount int `json:"required_case_count"`
PassedCaseCount int `json:"passed_case_count"`
ErrorCount int `json:"error_count"`
Errors []Error `json:"errors,omitempty"`
LastPassed *LastPassed `json:"last_passed,omitempty"`
RequiredCases []RequiredCase `json:"required_cases,omitempty"`
}
func ValidateJSON ¶
type SemanticChecks ¶
type SemanticChecks struct {
RedactedFieldsHandled bool `json:"redacted_fields_handled,omitempty"`
MissingFieldsDistinguished bool `json:"missing_fields_distinguished,omitempty"`
DowngradeHandled bool `json:"downgrade_handled,omitempty"`
NoChangeHandled bool `json:"no_change_handled,omitempty"`
FreshnessHandled bool `json:"freshness_handled,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.