schemas

package
v0.0.0-...-895aa45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package schemas locates and validates the versioned schema documents kept in the repository's document-only versions directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrowserAuthenticationCallSupplementSchema

func BrowserAuthenticationCallSupplementSchema(profile string) ([]byte, error)

BrowserAuthenticationCallSupplementSchema returns an independent copy of the embedded browser-authentication-call JSON Schema selected by profile. An empty profile selects uws.browser-authentication-call.1.1.

func BrowserAuthenticationProfileSchema

func BrowserAuthenticationProfileSchema(profile string) ([]byte, error)

BrowserAuthenticationProfileSchema returns an independent copy of the embedded browser-authentication JSON Schema selected by profile. An empty profile selects uws.browser-authentication.1.1.

func BrowserRegistrationCallSupplementSchema

func BrowserRegistrationCallSupplementSchema(profile string) ([]byte, error)

BrowserRegistrationCallSupplementSchema returns an independent copy of the embedded browser-registration-call JSON Schema. An empty profile selects uws.browser-registration-call.1.0.

func BrowserRegistrationProfileSchema

func BrowserRegistrationProfileSchema(profile string) ([]byte, error)

BrowserRegistrationProfileSchema returns an independent copy of the embedded browser-registration JSON Schema. An empty profile selects uws.browser-registration.1.0.

func BrowserSourceProfileSchema

func BrowserSourceProfileSchema(profile string) ([]byte, error)

BrowserSourceProfileSchema returns an independent copy of the embedded browser-profile JSON Schema selected by profile. An empty profile selects the current uws.browser.1.7 contract.

func PathForBrowserAuthenticationCallSupplement

func PathForBrowserAuthenticationCallSupplement(anchorDir, profile string) string

PathForBrowserAuthenticationCallSupplement returns the best local schema path for the browser-authentication-call operation supplement.

func PathForBrowserAuthenticationProfile

func PathForBrowserAuthenticationProfile(anchorDir, profile string) string

PathForBrowserAuthenticationProfile returns the best local schema path for a portable browser-authentication recipe.

func PathForBrowserRegistrationCallSupplement

func PathForBrowserRegistrationCallSupplement(anchorDir, profile string) string

PathForBrowserRegistrationCallSupplement returns the best local schema path for the browser-registration-call operation supplement.

func PathForBrowserRegistrationProfile

func PathForBrowserRegistrationProfile(anchorDir, profile string) string

PathForBrowserRegistrationProfile returns the best local schema path for a portable browser account-registration recipe.

func PathForBrowserSourceProfile

func PathForBrowserSourceProfile(anchorDir, profile string) string

PathForBrowserSourceProfile returns the best local schema path for a browser source profile.

func PathForRuntimeSupplement

func PathForRuntimeSupplement(anchorDir, profile string) string

PathForRuntimeSupplement returns the best local schema path for a runtime supplement profile.

func PathForVersion

func PathForVersion(anchorDir, version string) string

PathForVersion returns the best local schema path for a UWS document version.

func ValidateBrowserAuthenticationCallSupplement

func ValidateBrowserAuthenticationCallSupplement(data []byte) error

ValidateBrowserAuthenticationCallSupplement validates the extension payload envelope used by an explicit authentication operation.

func ValidateBrowserAuthenticationCallSupplementForProfile

func ValidateBrowserAuthenticationCallSupplementForProfile(data []byte, profile string) error

ValidateBrowserAuthenticationCallSupplementForProfile validates the call envelope against the explicitly selected supplement version. Call envelopes have no document discriminator, so version selection cannot be inferred.

func ValidateBrowserAuthenticationProfile

func ValidateBrowserAuthenticationProfile(data []byte) error

ValidateBrowserAuthenticationProfile validates one portable, secret-free browser authentication recipe. In addition to JSON Schema validation it enforces exact safe origins and the 1 MiB document bound.

func ValidateBrowserRegistrationCallSupplement

func ValidateBrowserRegistrationCallSupplement(data []byte) error

ValidateBrowserRegistrationCallSupplement validates the extension envelope used by one explicitly approved registration mutation.

func ValidateBrowserRegistrationProfile

func ValidateBrowserRegistrationProfile(data []byte) error

ValidateBrowserRegistrationProfile validates one portable, secret-free account-registration recipe. It enforces exact safe origins, symbolic slot references, exactly one account-creation submit, explicit confirmation, and consistency between human checkpoints and declared effects.

func ValidateBrowserSourceProfile

func ValidateBrowserSourceProfile(data []byte) error

ValidateBrowserSourceProfile validates one JSON or YAML browser-profile document against the embedded schema selected by its profile discriminator. Freshness, review evidence, registry lifecycle, sessions, and execution policy remain downstream responsibilities.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL