gojsonreference

package module
Version: v0.0.0-...-bd5ef7b Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 49

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonReference

type JsonReference struct {
	HasFullUrl      bool
	HasUrlPathOnly  bool
	HasFragmentOnly bool
	HasFileScheme   bool
	HasFullFilePath bool
	// contains filtered or unexported fields
}

func NewJsonReference

func NewJsonReference(jsonReferenceString string) (JsonReference, error)

func (*JsonReference) GetPointer

func (r *JsonReference) GetPointer() *gojsonpointer.JsonPointer

func (*JsonReference) GetUrl

func (r *JsonReference) GetUrl() *url.URL

func (*JsonReference) Inherits

func (r *JsonReference) Inherits(child JsonReference) (*JsonReference, error)

Creates a new reference from a parent and a child If the child cannot inherit from the parent, an error is returned

func (*JsonReference) IsCanonical

func (r *JsonReference) IsCanonical() bool

func (*JsonReference) String

func (r *JsonReference) String() string

Source Files

Jump to

Keyboard shortcuts

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