core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JApiCore

type JApiCore struct {
	// contains filtered or unexported fields
}

JApiCore the Brain and heart of jApi. Collects lexemes from scanner, validates document logic and structure, builds catalog, renders documentation

func NewJApiCore

func NewJApiCore(file *fs.File, oo ...Option) *JApiCore

func (*JApiCore) AddRawUserType

func (core *JApiCore) AddRawUserType(d *directive.Directive)

func (*JApiCore) BuildCatalog

func (core *JApiCore) BuildCatalog() *jerr.JApiError

func (*JApiCore) Catalog

func (core *JApiCore) Catalog() *catalog.Catalog

func (*JApiCore) HasUnclosedExplicitContext

func (core *JApiCore) HasUnclosedExplicitContext() bool

func (*JApiCore) UserTypesData

func (core *JApiCore) UserTypesData() map[string]*jschema.JSchema

type Option

type Option func(*JApiCore)

func WithBannedDirectives

func WithBannedDirectives(dd ...directive.Enumeration) Option

WithBannedDirectives ban specified directives. Core will emit an error if found one of them.

type PathParameter

type PathParameter struct {
	// contains filtered or unexported fields
}

func PathParameters

func PathParameters(path string) ([]PathParameter, error)

type PieceOfPathVariable

type PieceOfPathVariable struct {
	// contains filtered or unexported fields
}

func PieceOfPathVariableImitation added in v0.2.0

func PieceOfPathVariableImitation() PieceOfPathVariable

imitates piece for param, gatherd from URL or Method-directive, not from Path schema.

Jump to

Keyboard shortcuts

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