gen

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package gen provides code generation from OpenAPI specs.

Index

Constants

View Source
const (
	// Unified spec paths (v1+v2 combined in single files)
	PathUnifiedSpec        = "../../api/openapi-spec/spec3.cli.json"
	PathUnifiedPreviewSpec = "../../api/openapi-spec/spec3.cli.preview.json"
)

OpenAPI spec file paths shared across code generation tools

Variables

This section is empty.

Functions

func GetType

func GetType(schema *spec.Schema) *string

GetType accepts a schema and returns its scalar type, if it has one.

If the schema is monomorphic, it returns its type if it's scalar.

If the schema is polymorphic, it returns the first scalar type for the schema, if there is any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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