modelid

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package modelid owns the admission rules shared by every modality's model identifier: an empty value is allowed, and a non-empty value must be valid UTF-8 without surrounding whitespace. Defaults may leave the model to the request, but resolved options must name one. Each modality wraps the returned error with its own sentinel so a request model and a response model keep distinct identities while sharing these rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireResolved added in v0.63.0

func RequireResolved(id string) error

RequireResolved admits the model of resolved options, which every request is sent with, so it must be present.

func Validate

func Validate(id string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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