Versions in this module Expand all Collapse all v0 v0.1.0 Oct 5, 2020 Changes in this version + func MakeSchema(t reflect.Type, schema Schema) error + type Components struct + ContentDescriptors *SchemaRegistry + Errors *SchemaRegistry + ExamplePairingObjects *SchemaRegistry + Examples *SchemaRegistry + Links *SchemaRegistry + Schemas *SchemaRegistry + Tags *SchemaRegistry + type Contact struct + Email string + Name string + URL string + type ContentDescriptor struct + Deprecated bool + Description string + Name string + Required bool + Schema Pointer + Summary string + type DocumentSpec1 struct + Components *Components + ExternalDocs *ExternalDocs + Info *Info + Methods []*Method + OpenRPC string + Servers []*Server + func NewDocument(methods []*Method, info *Info) *DocumentSpec1 + type Error struct + Code int + Data interface{} + Message string + type Example struct + Description string + ExternalValue string + Name string + Summary string + Value interface{} + type ExamplePairing struct + Description string + Name string + Params []*Example + Result *Example + Summary string + type ExternalDocs struct + Description string + URL string + type Info struct + Contact Contact + Description string + License *License + TermsOfService string + Title string + Version string + type License struct + Name string + URL string + type Link struct + Description string + Method string + Name string + Params map[string]interface{} + Server *Server + Summary string + type Method struct + Deprecated bool + Description string + Errors []Error + Examples []*ExamplePairing + ExternalDocs *ExternalDocs + Links []Link + Name string + ParamStructure string + Params []*ContentDescriptor + Result *ContentDescriptor + Servers []Server + Summary string + Tags []Tag + type Pointer interface + Refs func() []string + String func() string + func NewPointer(path string) (Pointer, error) + type PointerStore struct + func NewPointerRegistry() *PointerStore + func (r *PointerStore) Get(p Pointer) (s Schema, ok bool) + func (r *PointerStore) Set(pointer Pointer, item Schema) + type PointerTree struct + func NewPointerTree(ptr Pointer) *PointerTree + func (pt *PointerTree) Find(match Pointer) *PointerTree + func (pt *PointerTree) Insert(p Pointer) *PointerTree + func (pt *PointerTree) MarshalJSON() ([]byte, error) + func (pt *PointerTree) ResolvePointers(reg *PointerStore) (json.RawMessage, error) + type Schema interface + func NewSchema() Schema + type SchemaRegistry struct + func NewRegistry(unmarshalFrom Pointer) (*SchemaRegistry, error) + func NewSchemaRegistry(unmarshalFrom Pointer) (*SchemaRegistry, error) + func (s *SchemaRegistry) AddTypeException(typ reflect.Type) + func (s *SchemaRegistry) MarshalJSON() ([]byte, error) + func (s *SchemaRegistry) RegisterType(t reflect.Type, registerAsString bool) (Pointer, string, error) + func (s *SchemaRegistry) String() string + type Server struct + Description string + Name string + Summary string + URL string + Variables map[string]*ServerVariable + type ServerVariable struct + Default string + Description string + Enum []string + type Tag struct + Description string + ExternalDocs *ExternalDocs + Name string + Summary string