core

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 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.

func WithFixedSeedForRegex

func WithFixedSeedForRegex() Option

WithFixedSeedForRegex use fixed seed for generating regex examples.

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
}

Jump to

Keyboard shortcuts

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