metadatadef

package
v0.0.0-...-7768eb9 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Type string
}

type Fields

type Fields = datautils.Map[string, Field]

type Schema

type Schema struct {
	ObjectName  string
	DisplayName string
	Fields      Fields
	QueryParams []string
	URLPath     string
	ResponseKey string
	Problem     error
}

Schema is a model that describes a REST API object. This is usually created when metadata is coming not from API but alternative sources, example: OpenAPI. This model holds more information than common.ObjectMetadata.

func (Schema) String

func (s Schema) String() string

type Schemas

type Schemas []Schema

func (Schemas) Combine

func (s Schemas) Combine(others Schemas) Schemas

Jump to

Keyboard shortcuts

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