Skip to main content

Module validation

Module validation 

Source

Structs§

ValidationError
Represents a validation error
ValidationResult
Represents the result of a validation operation

Enums§

ValidationRule
Enumerates the types of validation rules

Functions§

is_json_pointer_or_runtime_expr
Checks if a string value is a valid JSON Pointer or a valid runtime expression Matches Go SDK’s json_pointer_or_runtime_expr validator RFC 6901: “” references the whole document, “/foo/bar” references a path Escape sequences: ~0 = ~, ~1 = /
is_non_empty_string
Checks if a value is a non-empty string. Per the Go SDK’s string_or_runtime_expr validator, any non-empty string is valid (either a plain string or a runtime expression).
is_uri_or_runtime_expr
Checks if a string value is a valid URI or a valid runtime expression Matches Go SDK’s uri_template_or_runtime_expr validator Uses Go SDK’s LiteralUriPattern and LiteralUriTemplatePattern for validation
is_valid_hostname
Validates an RFC 1123 hostname
is_valid_json_pointer
Checks if a string value is a valid JSON Pointer (RFC 6901) Matches Go SDK’s JSONPointerPattern: ^(/([^/~]|~[01])*)*$
is_valid_semver
Validates a semantic version string
is_valid_uri
Checks if a string value is a valid literal URI (no placeholders) Matches Go SDK’s LiteralUriPattern: ^[A-Za-z][A-Za-z0-9+\-.]*://[^{}\s]+$
is_valid_uri_template
Checks if a string value is a valid URI template (with placeholders) Matches Go SDK’s LiteralUriTemplatePattern: ^[A-Za-z][A-Za-z0-9+\-.]*://.*\{.*}.*$
validate_asyncapi_protocol
Validates an AsyncAPI protocol value
validate_auth_policy
Validates an authentication policy definition
validate_auth_policy_one_of
Validates an authentication policy for oneOf constraint
validate_backoff_one_of
Validates a backoff strategy definition for oneOf constraint
validate_basic_auth
Validates a Basic authentication scheme for mutual exclusivity
validate_bearer_auth
Validates a Bearer authentication scheme for mutual exclusivity Bearer auth must have either use (secret reference) OR token, not both
validate_container_cleanup
Validates a container’s cleanup policy value
validate_container_lifetime
Validates container lifetime: when cleanup is “eventually”, the ‘after’ field is required
validate_digest_auth
Validates a Digest authentication scheme for mutual exclusivity
validate_extension_task_type
Validates an extension’s task type value
validate_http_method
Validates an HTTP method value (case-insensitive)
validate_http_output
Validates an HTTP call output format value
validate_oauth2_auth
Validates an OAuth2 authentication scheme for mutual exclusivity
validate_oauth2_client_auth_method
Validates an OAuth2 client authentication method value
validate_oauth2_grant_type
Validates an OAuth2 grant type value
validate_oauth2_request_encoding
Validates an OAuth2 token request encoding value
validate_oidc_auth
Validates an OIDC authentication scheme for mutual exclusivity
validate_process_type_one_of
Validates a process type definition for oneOf constraint
validate_pull_policy
Validates a container’s pull policy value
validate_required_hostname
Validates a required string field as an RFC 1123 hostname. Adds a Required error if empty, or a Hostname error if invalid format.
validate_required_semver
Validates a required string field as a semantic version. Adds a Required error if empty, or a Semver error if invalid format.
validate_schedule_one_of
Validates a workflow schedule definition for oneOf constraint
validate_schema_one_of
Validates a schema definition for oneOf constraint
validate_script_language
Validates a script’s language value
validate_set_task
Validates a set task’s value Matches Go SDK’s validate:“required,min=1,dive” Set must have at least 1 key-value pair
validate_switch_task
Validates a switch task definition Matches Go SDK’s SwitchTask validation:
validate_task_map
Validates a map of task definitions
validate_workflow
Validates a complete workflow definition
validate_workflow_process
Validates a WorkflowProcessDefinition (sub-workflow reference) Matches Go SDK’s validation tags: