gojsonreference – github.com/xeipuuv/gojsonreference Index | Files

package gojsonreference

import "github.com/xeipuuv/gojsonreference"

Index

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

reference.go

Version
v0.0.0-20180127040603-bd5ef7bd5415 (latest)
Published
Jan 27, 2018
Platform
js/wasm
Imports
6 packages
Last checked
4 weeks ago

Tools for package owners.