rsoac

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pattern

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

func (Pattern) MarshalJSON

func (ex Pattern) MarshalJSON() (b []byte, err error)

type RSOAC

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

RSOAC Regex schema to OpenAPi converter

func New

func New(rs *regex.RSchema) *RSOAC

func NewFromASTNode

func NewFromASTNode(astNode schema.ASTNode) *RSOAC

func (RSOAC) MarshalJSON

func (o RSOAC) MarshalJSON() (b []byte, err error)

func (*RSOAC) SetDescription

func (o *RSOAC) SetDescription(s string)

SetDescription has no effect on the resulting OpenAPI

type RegexString

type RegexString struct {
	Pattern *Pattern `json:"pattern"`
	Type    string   `json:"type"`
}

Jump to

Keyboard shortcuts

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