schema

package
v0.0.0-...-0ba7dcb Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 7 Imported by: 0

README

Schema Packages

internal/schema contains AuthProxy's serialized contract types and their JSON Schema definitions.

  • common: shared primitive value types.
  • config: application configuration file syntax.
  • auth: authentication and authorization contract types.
  • resources: REST-managed resource models.
  • api: API request/response DTOs.

Resource packages are intentionally separate from API DTOs. API models can compose resources, but resources must not depend on API-specific request or response wrappers.

./scripts/check-schema-layout.sh enforces the highest-risk boundaries in preflight: resource packages cannot import internal/schema/api, route-local public API request/response DTOs are rejected, and Swagger-only route models must stay in internal/schema/api/openapi.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileSchema

func CompileSchema(schemaId string) (*jsonschemav5.Schema, error)

CompileSchema compiles schema bytes with jsonschema/v5. It loads all the referenced schema files that are referenced from the primary file.

Types

This section is empty.

Directories

Path Synopsis
api
resources
key
rate_limit
Package rate_limit defines the schema and validation rules for the RateLimit resource.
Package rate_limit defines the schema and validation rules for the RateLimit resource.

Jump to

Keyboard shortcuts

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