id int32 0 167k | repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens listlengths 21 1.41k | docstring stringlengths 6 2.61k | docstring_tokens listlengths 3 215 | sha stringlengths 40 40 | url stringlengths 85 252 |
|---|---|---|---|---|---|---|---|---|---|---|---|
18,600 | googleapis/gnostic | discovery/discovery.go | ResolveReferences | func (m *Request) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.XRef != "" {
info, err := compiler.ReadInfoForRef(root, m.XRef)
if err != nil {
return nil, err
}
if info != nil {
replacement, err := NewRequest(info, nil)
if err == nil {
*m = *replacement
... | go | func (m *Request) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.XRef != "" {
info, err := compiler.ReadInfoForRef(root, m.XRef)
if err != nil {
return nil, err
}
if info != nil {
replacement, err := NewRequest(info, nil)
if err == nil {
*m = *replacement
... | [
"func",
"(",
"m",
"*",
"Request",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"XRef",
"!=",
"\"",
... | // ResolveReferences resolves references found inside Request objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Request",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L1963-L1980 |
18,601 | googleapis/gnostic | discovery/discovery.go | ResolveReferences | func (m *Resource) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Methods != nil {
_, err := m.Methods.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.Resources != nil {
_, err := m.Resources.ResolveReferences(root)
if err != nil {
... | go | func (m *Resource) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Methods != nil {
_, err := m.Methods.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.Resources != nil {
_, err := m.Resources.ResolveReferences(root)
if err != nil {
... | [
"func",
"(",
"m",
"*",
"Resource",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Methods",
"!=",
"ni... | // ResolveReferences resolves references found inside Resource objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Resource",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L1983-L1998 |
18,602 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Annotations) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if len(m.Required) != 0 {
info = append(info, yaml.MapItem{Key: "required", Value: m.Required})
}
return info
} | go | func (m *Annotations) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if len(m.Required) != 0 {
info = append(info, yaml.MapItem{Key: "required", Value: m.Required})
}
return info
} | [
"func",
"(",
"m",
"*",
"Annotations",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"len",
"(",
"m",
".",
"Required",
")",
"!=",
"0",
"{",
"info",
"=",
"append",
"(",
"info",
... | // ToRawInfo returns a description of Annotations suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Annotations",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2124-L2130 |
18,603 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Any) ToRawInfo() interface{} {
var err error
var info1 []yaml.MapSlice
err = yaml.Unmarshal([]byte(m.Yaml), &info1)
if err == nil {
return info1
}
var info2 yaml.MapSlice
err = yaml.Unmarshal([]byte(m.Yaml), &info2)
if err == nil {
return info2
}
var info3 interface{}
err = yaml.Unmarshal([]byte... | go | func (m *Any) ToRawInfo() interface{} {
var err error
var info1 []yaml.MapSlice
err = yaml.Unmarshal([]byte(m.Yaml), &info1)
if err == nil {
return info1
}
var info2 yaml.MapSlice
err = yaml.Unmarshal([]byte(m.Yaml), &info2)
if err == nil {
return info2
}
var info3 interface{}
err = yaml.Unmarshal([]byte... | [
"func",
"(",
"m",
"*",
"Any",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"var",
"err",
"error",
"\n",
"var",
"info1",
"[",
"]",
"yaml",
".",
"MapSlice",
"\n",
"err",
"=",
"yaml",
".",
"Unmarshal",
"(",
"[",
"]",
"byte",
"(",
"m",
"... | // ToRawInfo returns a description of Any suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Any",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2133-L2151 |
18,604 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Auth) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Oauth2 != nil {
info = append(info, yaml.MapItem{Key: "oauth2", Value: m.Oauth2.ToRawInfo()})
}
// &{Name:oauth2 Type:Oauth2 StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
return info
} | go | func (m *Auth) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Oauth2 != nil {
info = append(info, yaml.MapItem{Key: "oauth2", Value: m.Oauth2.ToRawInfo()})
}
// &{Name:oauth2 Type:Oauth2 StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
return info
} | [
"func",
"(",
"m",
"*",
"Auth",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"Oauth2",
"!=",
"nil",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
".",
"Map... | // ToRawInfo returns a description of Auth suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Auth",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2154-L2161 |
18,605 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Icons) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.X16 != "" {
info = append(info, yaml.MapItem{Key: "x16", Value: m.X16})
}
if m.X32 != "" {
info = append(info, yaml.MapItem{Key: "x32", Value: m.X32})
}
return info
} | go | func (m *Icons) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.X16 != "" {
info = append(info, yaml.MapItem{Key: "x16", Value: m.X16})
}
if m.X32 != "" {
info = append(info, yaml.MapItem{Key: "x32", Value: m.X32})
}
return info
} | [
"func",
"(",
"m",
"*",
"Icons",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"X16",
"!=",
"\"",
"\"",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
".",
... | // ToRawInfo returns a description of Icons suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Icons",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2266-L2275 |
18,606 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *MediaUpload) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if len(m.Accept) != 0 {
info = append(info, yaml.MapItem{Key: "accept", Value: m.Accept})
}
if m.MaxSize != "" {
info = append(info, yaml.MapItem{Key: "maxSize", Value: m.MaxSize})
}
if m.Protocols != nil {
info = append(info, yaml.MapI... | go | func (m *MediaUpload) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if len(m.Accept) != 0 {
info = append(info, yaml.MapItem{Key: "accept", Value: m.Accept})
}
if m.MaxSize != "" {
info = append(info, yaml.MapItem{Key: "maxSize", Value: m.MaxSize})
}
if m.Protocols != nil {
info = append(info, yaml.MapI... | [
"func",
"(",
"m",
"*",
"MediaUpload",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"len",
"(",
"m",
".",
"Accept",
")",
"!=",
"0",
"{",
"info",
"=",
"append",
"(",
"info",
... | // ToRawInfo returns a description of MediaUpload suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"MediaUpload",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2278-L2294 |
18,607 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *NamedMethod) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Name != "" {
info = append(info, yaml.MapItem{Key: "name", Value: m.Name})
}
// &{Name:value Type:Method StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:Mapped value}
return info
} | go | func (m *NamedMethod) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Name != "" {
info = append(info, yaml.MapItem{Key: "name", Value: m.Name})
}
// &{Name:value Type:Method StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:Mapped value}
return info
} | [
"func",
"(",
"m",
"*",
"NamedMethod",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"Name",
"!=",
"\"",
"\"",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
... | // ToRawInfo returns a description of NamedMethod suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"NamedMethod",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2367-L2374 |
18,608 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Protocols) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Simple != nil {
info = append(info, yaml.MapItem{Key: "simple", Value: m.Simple.ToRawInfo()})
}
// &{Name:simple Type:Simple StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if m.Resumable != nil {
info ... | go | func (m *Protocols) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Simple != nil {
info = append(info, yaml.MapItem{Key: "simple", Value: m.Simple.ToRawInfo()})
}
// &{Name:simple Type:Simple StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if m.Resumable != nil {
info ... | [
"func",
"(",
"m",
"*",
"Protocols",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"Simple",
"!=",
"nil",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
".",
... | // ToRawInfo returns a description of Protocols suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Protocols",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2503-L2514 |
18,609 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Request) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.XRef != "" {
info = append(info, yaml.MapItem{Key: "$ref", Value: m.XRef})
}
if m.ParameterName != "" {
info = append(info, yaml.MapItem{Key: "parameterName", Value: m.ParameterName})
}
return info
} | go | func (m *Request) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.XRef != "" {
info = append(info, yaml.MapItem{Key: "$ref", Value: m.XRef})
}
if m.ParameterName != "" {
info = append(info, yaml.MapItem{Key: "parameterName", Value: m.ParameterName})
}
return info
} | [
"func",
"(",
"m",
"*",
"Request",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"XRef",
"!=",
"\"",
"\"",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
"."... | // ToRawInfo returns a description of Request suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Request",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2517-L2526 |
18,610 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Resource) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Methods != nil {
info = append(info, yaml.MapItem{Key: "methods", Value: m.Methods.ToRawInfo()})
}
// &{Name:methods Type:Methods StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if m.Resources != nil {
i... | go | func (m *Resource) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Methods != nil {
info = append(info, yaml.MapItem{Key: "methods", Value: m.Methods.ToRawInfo()})
}
// &{Name:methods Type:Methods StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if m.Resources != nil {
i... | [
"func",
"(",
"m",
"*",
"Resource",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"Methods",
"!=",
"nil",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
".",
... | // ToRawInfo returns a description of Resource suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Resource",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2529-L2540 |
18,611 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Scope) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
return info
} | go | func (m *Scope) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
return info
} | [
"func",
"(",
"m",
"*",
"Scope",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"Description",
"!=",
"\"",
"\"",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
... | // ToRawInfo returns a description of Scope suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Scope",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2655-L2661 |
18,612 | googleapis/gnostic | discovery/discovery.go | ToRawInfo | func (m *Simple) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Multipart != false {
info = append(info, yaml.MapItem{Key: "multipart", Value: m.Multipart})
}
if m.Path != "" {
info = append(info, yaml.MapItem{Key: "path", Value: m.Path})
}
return info
} | go | func (m *Simple) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m.Multipart != false {
info = append(info, yaml.MapItem{Key: "multipart", Value: m.Multipart})
}
if m.Path != "" {
info = append(info, yaml.MapItem{Key: "path", Value: m.Path})
}
return info
} | [
"func",
"(",
"m",
"*",
"Simple",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
".",
"Multipart",
"!=",
"false",
"{",
"info",
"=",
"append",
"(",
"info",
",",
"yaml",
".",... | // ToRawInfo returns a description of Simple suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Simple",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/discovery/discovery.go#L2676-L2685 |
18,613 | googleapis/gnostic | surface/field.go | ServiceType | func (f *Field) ServiceType(m *Model) *Type {
return m.TypeWithTypeName(f.NativeType)
} | go | func (f *Field) ServiceType(m *Model) *Type {
return m.TypeWithTypeName(f.NativeType)
} | [
"func",
"(",
"f",
"*",
"Field",
")",
"ServiceType",
"(",
"m",
"*",
"Model",
")",
"*",
"Type",
"{",
"return",
"m",
".",
"TypeWithTypeName",
"(",
"f",
".",
"NativeType",
")",
"\n",
"}"
] | // ServiceType returns the Type associated with a field. | [
"ServiceType",
"returns",
"the",
"Type",
"associated",
"with",
"a",
"field",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/field.go#L18-L20 |
18,614 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewAnyOrExpression | func NewAnyOrExpression(in interface{}, context *compiler.Context) (*AnyOrExpression, error) {
errors := make([]error, 0)
x := &AnyOrExpression{}
matched := false
// Any any = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
t, matchi... | go | func NewAnyOrExpression(in interface{}, context *compiler.Context) (*AnyOrExpression, error) {
errors := make([]error, 0)
x := &AnyOrExpression{}
matched := false
// Any any = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
t, matchi... | [
"func",
"NewAnyOrExpression",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"AnyOrExpression",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",... | // NewAnyOrExpression creates an object of type AnyOrExpression if possible, returning an error if not. | [
"NewAnyOrExpression",
"creates",
"an",
"object",
"of",
"type",
"AnyOrExpression",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L73-L110 |
18,615 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewAnysOrExpressions | func NewAnysOrExpressions(in interface{}, context *compiler.Context) (*AnysOrExpressions, error) {
errors := make([]error, 0)
x := &AnysOrExpressions{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, mes... | go | func NewAnysOrExpressions(in interface{}, context *compiler.Context) (*AnysOrExpressions, error) {
errors := make([]error, 0)
x := &AnysOrExpressions{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, mes... | [
"func",
"NewAnysOrExpressions",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"AnysOrExpressions",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
"... | // NewAnysOrExpressions creates an object of type AnysOrExpressions if possible, returning an error if not. | [
"NewAnysOrExpressions",
"creates",
"an",
"object",
"of",
"type",
"AnysOrExpressions",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L113-L140 |
18,616 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewCallbackOrReference | func NewCallbackOrReference(in interface{}, context *compiler.Context) (*CallbackOrReference, error) {
errors := make([]error, 0)
x := &CallbackOrReference{}
matched := false
// Callback callback = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the righ... | go | func NewCallbackOrReference(in interface{}, context *compiler.Context) (*CallbackOrReference, error) {
errors := make([]error, 0)
x := &CallbackOrReference{}
matched := false
// Callback callback = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the righ... | [
"func",
"NewCallbackOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"CallbackOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",... | // NewCallbackOrReference creates an object of type CallbackOrReference if possible, returning an error if not. | [
"NewCallbackOrReference",
"creates",
"an",
"object",
"of",
"type",
"CallbackOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L213-L250 |
18,617 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewCallbacksOrReferences | func NewCallbacksOrReferences(in interface{}, context *compiler.Context) (*CallbacksOrReferences, error) {
errors := make([]error, 0)
x := &CallbacksOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(... | go | func NewCallbacksOrReferences(in interface{}, context *compiler.Context) (*CallbacksOrReferences, error) {
errors := make([]error, 0)
x := &CallbacksOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(... | [
"func",
"NewCallbacksOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"CallbacksOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
... | // NewCallbacksOrReferences creates an object of type CallbacksOrReferences if possible, returning an error if not. | [
"NewCallbacksOrReferences",
"creates",
"an",
"object",
"of",
"type",
"CallbacksOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L253-L280 |
18,618 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewDefaultType | func NewDefaultType(in interface{}, context *compiler.Context) (*DefaultType, error) {
errors := make([]error, 0)
x := &DefaultType{}
matched := false
switch in := in.(type) {
case bool:
x.Oneof = &DefaultType_Boolean{Boolean: in}
matched = true
case string:
x.Oneof = &DefaultType_String_{String_: in}
mat... | go | func NewDefaultType(in interface{}, context *compiler.Context) (*DefaultType, error) {
errors := make([]error, 0)
x := &DefaultType{}
matched := false
switch in := in.(type) {
case bool:
x.Oneof = &DefaultType_Boolean{Boolean: in}
matched = true
case string:
x.Oneof = &DefaultType_String_{String_: in}
mat... | [
"func",
"NewDefaultType",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"DefaultType",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",
"&",
... | // NewDefaultType creates an object of type DefaultType if possible, returning an error if not. | [
"NewDefaultType",
"creates",
"an",
"object",
"of",
"type",
"DefaultType",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L493-L525 |
18,619 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewDiscriminator | func NewDiscriminator(in interface{}, context *compiler.Context) (*Discriminator, error) {
errors := make([]error, 0)
x := &Discriminator{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} el... | go | func NewDiscriminator(in interface{}, context *compiler.Context) (*Discriminator, error) {
errors := make([]error, 0)
x := &Discriminator{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} el... | [
"func",
"NewDiscriminator",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"Discriminator",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",
"... | // NewDiscriminator creates an object of type Discriminator if possible, returning an error if not. | [
"NewDiscriminator",
"creates",
"an",
"object",
"of",
"type",
"Discriminator",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L528-L569 |
18,620 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewEncodings | func NewEncodings(in interface{}, context *compiler.Context) (*Encodings, error) {
errors := make([]error, 0)
x := &Encodings{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
// re... | go | func NewEncodings(in interface{}, context *compiler.Context) (*Encodings, error) {
errors := make([]error, 0)
x := &Encodings{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
// re... | [
"func",
"NewEncodings",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"Encodings",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",
"&",
"E... | // NewEncodings creates an object of type Encodings if possible, returning an error if not. | [
"NewEncodings",
"creates",
"an",
"object",
"of",
"type",
"Encodings",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L818-L845 |
18,621 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewExampleOrReference | func NewExampleOrReference(in interface{}, context *compiler.Context) (*ExampleOrReference, error) {
errors := make([]error, 0)
x := &ExampleOrReference{}
matched := false
// Example example = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right sub... | go | func NewExampleOrReference(in interface{}, context *compiler.Context) (*ExampleOrReference, error) {
errors := make([]error, 0)
x := &ExampleOrReference{}
matched := false
// Example example = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right sub... | [
"func",
"NewExampleOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"ExampleOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
... | // NewExampleOrReference creates an object of type ExampleOrReference if possible, returning an error if not. | [
"NewExampleOrReference",
"creates",
"an",
"object",
"of",
"type",
"ExampleOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L935-L972 |
18,622 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewExamplesOrReferences | func NewExamplesOrReferences(in interface{}, context *compiler.Context) (*ExamplesOrReferences, error) {
errors := make([]error, 0)
x := &ExamplesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(con... | go | func NewExamplesOrReferences(in interface{}, context *compiler.Context) (*ExamplesOrReferences, error) {
errors := make([]error, 0)
x := &ExamplesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(con... | [
"func",
"NewExamplesOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"ExamplesOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x... | // NewExamplesOrReferences creates an object of type ExamplesOrReferences if possible, returning an error if not. | [
"NewExamplesOrReferences",
"creates",
"an",
"object",
"of",
"type",
"ExamplesOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L975-L1002 |
18,623 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewHeaderOrReference | func NewHeaderOrReference(in interface{}, context *compiler.Context) (*HeaderOrReference, error) {
errors := make([]error, 0)
x := &HeaderOrReference{}
matched := false
// Header header = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
... | go | func NewHeaderOrReference(in interface{}, context *compiler.Context) (*HeaderOrReference, error) {
errors := make([]error, 0)
x := &HeaderOrReference{}
matched := false
// Header header = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
... | [
"func",
"NewHeaderOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"HeaderOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
"... | // NewHeaderOrReference creates an object of type HeaderOrReference if possible, returning an error if not. | [
"NewHeaderOrReference",
"creates",
"an",
"object",
"of",
"type",
"HeaderOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L1272-L1309 |
18,624 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewHeadersOrReferences | func NewHeadersOrReferences(in interface{}, context *compiler.Context) (*HeadersOrReferences, error) {
errors := make([]error, 0)
x := &HeadersOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(contex... | go | func NewHeadersOrReferences(in interface{}, context *compiler.Context) (*HeadersOrReferences, error) {
errors := make([]error, 0)
x := &HeadersOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(contex... | [
"func",
"NewHeadersOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"HeadersOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",... | // NewHeadersOrReferences creates an object of type HeadersOrReferences if possible, returning an error if not. | [
"NewHeadersOrReferences",
"creates",
"an",
"object",
"of",
"type",
"HeadersOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L1312-L1339 |
18,625 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewLinkOrReference | func NewLinkOrReference(in interface{}, context *compiler.Context) (*LinkOrReference, error) {
errors := make([]error, 0)
x := &LinkOrReference{}
matched := false
// Link link = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
t, matc... | go | func NewLinkOrReference(in interface{}, context *compiler.Context) (*LinkOrReference, error) {
errors := make([]error, 0)
x := &LinkOrReference{}
matched := false
// Link link = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
t, matc... | [
"func",
"NewLinkOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"LinkOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",... | // NewLinkOrReference creates an object of type LinkOrReference if possible, returning an error if not. | [
"NewLinkOrReference",
"creates",
"an",
"object",
"of",
"type",
"LinkOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L1652-L1689 |
18,626 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewLinksOrReferences | func NewLinksOrReferences(in interface{}, context *compiler.Context) (*LinksOrReferences, error) {
errors := make([]error, 0)
x := &LinksOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, mes... | go | func NewLinksOrReferences(in interface{}, context *compiler.Context) (*LinksOrReferences, error) {
errors := make([]error, 0)
x := &LinksOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, mes... | [
"func",
"NewLinksOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"LinksOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
"... | // NewLinksOrReferences creates an object of type LinksOrReferences if possible, returning an error if not. | [
"NewLinksOrReferences",
"creates",
"an",
"object",
"of",
"type",
"LinksOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L1692-L1719 |
18,627 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewMediaTypes | func NewMediaTypes(in interface{}, context *compiler.Context) (*MediaTypes, error) {
errors := make([]error, 0)
x := &MediaTypes{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
//... | go | func NewMediaTypes(in interface{}, context *compiler.Context) (*MediaTypes, error) {
errors := make([]error, 0)
x := &MediaTypes{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
//... | [
"func",
"NewMediaTypes",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"MediaTypes",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",
"&",
... | // NewMediaTypes creates an object of type MediaTypes if possible, returning an error if not. | [
"NewMediaTypes",
"creates",
"an",
"object",
"of",
"type",
"MediaTypes",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L1809-L1836 |
18,628 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewObject | func NewObject(in interface{}, context *compiler.Context) (*Object, error) {
errors := make([]error, 0)
x := &Object{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
// repeated Na... | go | func NewObject(in interface{}, context *compiler.Context) (*Object, error) {
errors := make([]error, 0)
x := &Object{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
// repeated Na... | [
"func",
"NewObject",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"Object",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",
"&",
"Object"... | // NewObject creates an object of type Object if possible, returning an error if not. | [
"NewObject",
"creates",
"an",
"object",
"of",
"type",
"Object",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L2621-L2660 |
18,629 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewParameterOrReference | func NewParameterOrReference(in interface{}, context *compiler.Context) (*ParameterOrReference, error) {
errors := make([]error, 0)
x := &ParameterOrReference{}
matched := false
// Parameter parameter = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the... | go | func NewParameterOrReference(in interface{}, context *compiler.Context) (*ParameterOrReference, error) {
errors := make([]error, 0)
x := &ParameterOrReference{}
matched := false
// Parameter parameter = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the... | [
"func",
"NewParameterOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"ParameterOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x... | // NewParameterOrReference creates an object of type ParameterOrReference if possible, returning an error if not. | [
"NewParameterOrReference",
"creates",
"an",
"object",
"of",
"type",
"ParameterOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L3025-L3062 |
18,630 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewParametersOrReferences | func NewParametersOrReferences(in interface{}, context *compiler.Context) (*ParametersOrReferences, error) {
errors := make([]error, 0)
x := &ParametersOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewErr... | go | func NewParametersOrReferences(in interface{}, context *compiler.Context) (*ParametersOrReferences, error) {
errors := make([]error, 0)
x := &ParametersOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewErr... | [
"func",
"NewParametersOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"ParametersOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
... | // NewParametersOrReferences creates an object of type ParametersOrReferences if possible, returning an error if not. | [
"NewParametersOrReferences",
"creates",
"an",
"object",
"of",
"type",
"ParametersOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L3065-L3092 |
18,631 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewProperties | func NewProperties(in interface{}, context *compiler.Context) (*Properties, error) {
errors := make([]error, 0)
x := &Properties{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
//... | go | func NewProperties(in interface{}, context *compiler.Context) (*Properties, error) {
errors := make([]error, 0)
x := &Properties{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))
} else {
//... | [
"func",
"NewProperties",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"Properties",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",
"&",
... | // NewProperties creates an object of type Properties if possible, returning an error if not. | [
"NewProperties",
"creates",
"an",
"object",
"of",
"type",
"Properties",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L3347-L3374 |
18,632 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewRequestBodiesOrReferences | func NewRequestBodiesOrReferences(in interface{}, context *compiler.Context) (*RequestBodiesOrReferences, error) {
errors := make([]error, 0)
x := &RequestBodiesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compil... | go | func NewRequestBodiesOrReferences(in interface{}, context *compiler.Context) (*RequestBodiesOrReferences, error) {
errors := make([]error, 0)
x := &RequestBodiesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compil... | [
"func",
"NewRequestBodiesOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"RequestBodiesOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
... | // NewRequestBodiesOrReferences creates an object of type RequestBodiesOrReferences if possible, returning an error if not. | [
"NewRequestBodiesOrReferences",
"creates",
"an",
"object",
"of",
"type",
"RequestBodiesOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L3412-L3439 |
18,633 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewRequestBodyOrReference | func NewRequestBodyOrReference(in interface{}, context *compiler.Context) (*RequestBodyOrReference, error) {
errors := make([]error, 0)
x := &RequestBodyOrReference{}
matched := false
// RequestBody request_body = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don... | go | func NewRequestBodyOrReference(in interface{}, context *compiler.Context) (*RequestBodyOrReference, error) {
errors := make([]error, 0)
x := &RequestBodyOrReference{}
matched := false
// RequestBody request_body = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don... | [
"func",
"NewRequestBodyOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"RequestBodyOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
... | // NewRequestBodyOrReference creates an object of type RequestBodyOrReference if possible, returning an error if not. | [
"NewRequestBodyOrReference",
"creates",
"an",
"object",
"of",
"type",
"RequestBodyOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L3526-L3563 |
18,634 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewResponseOrReference | func NewResponseOrReference(in interface{}, context *compiler.Context) (*ResponseOrReference, error) {
errors := make([]error, 0)
x := &ResponseOrReference{}
matched := false
// Response response = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the righ... | go | func NewResponseOrReference(in interface{}, context *compiler.Context) (*ResponseOrReference, error) {
errors := make([]error, 0)
x := &ResponseOrReference{}
matched := false
// Response response = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the righ... | [
"func",
"NewResponseOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"ResponseOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",... | // NewResponseOrReference creates an object of type ResponseOrReference if possible, returning an error if not. | [
"NewResponseOrReference",
"creates",
"an",
"object",
"of",
"type",
"ResponseOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L3659-L3696 |
18,635 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewResponsesOrReferences | func NewResponsesOrReferences(in interface{}, context *compiler.Context) (*ResponsesOrReferences, error) {
errors := make([]error, 0)
x := &ResponsesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(... | go | func NewResponsesOrReferences(in interface{}, context *compiler.Context) (*ResponsesOrReferences, error) {
errors := make([]error, 0)
x := &ResponsesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(... | [
"func",
"NewResponsesOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"ResponsesOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
... | // NewResponsesOrReferences creates an object of type ResponsesOrReferences if possible, returning an error if not. | [
"NewResponsesOrReferences",
"creates",
"an",
"object",
"of",
"type",
"ResponsesOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L3778-L3805 |
18,636 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewSchemaOrReference | func NewSchemaOrReference(in interface{}, context *compiler.Context) (*SchemaOrReference, error) {
errors := make([]error, 0)
x := &SchemaOrReference{}
matched := false
// Schema schema = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
... | go | func NewSchemaOrReference(in interface{}, context *compiler.Context) (*SchemaOrReference, error) {
errors := make([]error, 0)
x := &SchemaOrReference{}
matched := false
// Schema schema = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they mean we just don't have the right subtype
... | [
"func",
"NewSchemaOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"SchemaOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
"... | // NewSchemaOrReference creates an object of type SchemaOrReference if possible, returning an error if not. | [
"NewSchemaOrReference",
"creates",
"an",
"object",
"of",
"type",
"SchemaOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L4258-L4295 |
18,637 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewSecuritySchemeOrReference | func NewSecuritySchemeOrReference(in interface{}, context *compiler.Context) (*SecuritySchemeOrReference, error) {
errors := make([]error, 0)
x := &SecuritySchemeOrReference{}
matched := false
// SecurityScheme security_scheme = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they m... | go | func NewSecuritySchemeOrReference(in interface{}, context *compiler.Context) (*SecuritySchemeOrReference, error) {
errors := make([]error, 0)
x := &SecuritySchemeOrReference{}
matched := false
// SecurityScheme security_scheme = 1;
{
m, ok := compiler.UnpackMap(in)
if ok {
// errors might be ok here, they m... | [
"func",
"NewSecuritySchemeOrReference",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"SecuritySchemeOrReference",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
... | // NewSecuritySchemeOrReference creates an object of type SecuritySchemeOrReference if possible, returning an error if not. | [
"NewSecuritySchemeOrReference",
"creates",
"an",
"object",
"of",
"type",
"SecuritySchemeOrReference",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L4477-L4514 |
18,638 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewSecuritySchemesOrReferences | func NewSecuritySchemesOrReferences(in interface{}, context *compiler.Context) (*SecuritySchemesOrReferences, error) {
errors := make([]error, 0)
x := &SecuritySchemesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, ... | go | func NewSecuritySchemesOrReferences(in interface{}, context *compiler.Context) (*SecuritySchemesOrReferences, error) {
errors := make([]error, 0)
x := &SecuritySchemesOrReferences{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, ... | [
"func",
"NewSecuritySchemesOrReferences",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"SecuritySchemesOrReferences",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")"... | // NewSecuritySchemesOrReferences creates an object of type SecuritySchemesOrReferences if possible, returning an error if not. | [
"NewSecuritySchemesOrReferences",
"creates",
"an",
"object",
"of",
"type",
"SecuritySchemesOrReferences",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L4517-L4544 |
18,639 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewServerVariables | func NewServerVariables(in interface{}, context *compiler.Context) (*ServerVariables, error) {
errors := make([]error, 0)
x := &ServerVariables{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))... | go | func NewServerVariables(in interface{}, context *compiler.Context) (*ServerVariables, error) {
errors := make([]error, 0)
x := &ServerVariables{}
m, ok := compiler.UnpackMap(in)
if !ok {
message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in)
errors = append(errors, compiler.NewError(context, message))... | [
"func",
"NewServerVariables",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"ServerVariables",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"x",
":=",... | // NewServerVariables creates an object of type ServerVariables if possible, returning an error if not. | [
"NewServerVariables",
"creates",
"an",
"object",
"of",
"type",
"ServerVariables",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L4717-L4744 |
18,640 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | NewSpecificationExtension | func NewSpecificationExtension(in interface{}, context *compiler.Context) (*SpecificationExtension, error) {
errors := make([]error, 0)
x := &SpecificationExtension{}
matched := false
switch in := in.(type) {
case bool:
x.Oneof = &SpecificationExtension_Boolean{Boolean: in}
matched = true
case string:
x.One... | go | func NewSpecificationExtension(in interface{}, context *compiler.Context) (*SpecificationExtension, error) {
errors := make([]error, 0)
x := &SpecificationExtension{}
matched := false
switch in := in.(type) {
case bool:
x.Oneof = &SpecificationExtension_Boolean{Boolean: in}
matched = true
case string:
x.One... | [
"func",
"NewSpecificationExtension",
"(",
"in",
"interface",
"{",
"}",
",",
"context",
"*",
"compiler",
".",
"Context",
")",
"(",
"*",
"SpecificationExtension",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
... | // NewSpecificationExtension creates an object of type SpecificationExtension if possible, returning an error if not. | [
"NewSpecificationExtension",
"creates",
"an",
"object",
"of",
"type",
"SpecificationExtension",
"if",
"possible",
"returning",
"an",
"error",
"if",
"not",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L4747-L4779 |
18,641 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *AdditionalPropertiesItem) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*AdditionalPropertiesItem_SchemaOrReference)
if ok {
_, err := p.SchemaOrReference.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
return nil, comp... | go | func (m *AdditionalPropertiesItem) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*AdditionalPropertiesItem_SchemaOrReference)
if ok {
_, err := p.SchemaOrReference.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
return nil, comp... | [
"func",
"(",
"m",
"*",
"AdditionalPropertiesItem",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
"... | // ResolveReferences resolves references found inside AdditionalPropertiesItem objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"AdditionalPropertiesItem",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5005-L5017 |
18,642 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *AnyOrExpression) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*AnyOrExpression_Any)
if ok {
_, err := p.Any.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*AnyOrExpression_Expression)
if ok {
... | go | func (m *AnyOrExpression) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*AnyOrExpression_Any)
if ok {
_, err := p.Any.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*AnyOrExpression_Expression)
if ok {
... | [
"func",
"(",
"m",
"*",
"AnyOrExpression",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",
"m... | // ResolveReferences resolves references found inside AnyOrExpression objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"AnyOrExpression",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5026-L5047 |
18,643 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *CallbackOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*CallbackOrReference_Callback)
if ok {
_, err := p.Callback.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*CallbackOrReference_R... | go | func (m *CallbackOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*CallbackOrReference_Callback)
if ok {
_, err := p.Callback.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*CallbackOrReference_R... | [
"func",
"(",
"m",
"*",
"CallbackOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",
... | // ResolveReferences resolves references found inside CallbackOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"CallbackOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5086-L5107 |
18,644 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Components) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Schemas != nil {
_, err := m.Schemas.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.Responses != nil {
_, err := m.Responses.ResolveReferences(root)
if err != nil {
... | go | func (m *Components) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Schemas != nil {
_, err := m.Schemas.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.Responses != nil {
_, err := m.Responses.ResolveReferences(root)
if err != nil {
... | [
"func",
"(",
"m",
"*",
"Components",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Schemas",
"!=",
"... | // ResolveReferences resolves references found inside Components objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Components",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5124-L5189 |
18,645 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Discriminator) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Mapping != nil {
_, err := m.Mapping.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
return nil, compiler.NewErrorGroupOrNil(errors)
} | go | func (m *Discriminator) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Mapping != nil {
_, err := m.Mapping.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
return nil, compiler.NewErrorGroupOrNil(errors)
} | [
"func",
"(",
"m",
"*",
"Discriminator",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Mapping",
"!=",
... | // ResolveReferences resolves references found inside Discriminator objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Discriminator",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5212-L5221 |
18,646 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Encoding) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Headers != nil {
_, err := m.Headers.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Resolve... | go | func (m *Encoding) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Headers != nil {
_, err := m.Headers.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Resolve... | [
"func",
"(",
"m",
"*",
"Encoding",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Headers",
"!=",
"ni... | // ResolveReferences resolves references found inside Encoding objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Encoding",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5286-L5303 |
18,647 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Example) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Value != nil {
_, err := m.Value.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.ResolveRefer... | go | func (m *Example) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Value != nil {
_, err := m.Value.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.ResolveRefer... | [
"func",
"(",
"m",
"*",
"Example",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Value",
"!=",
"nil",... | // ResolveReferences resolves references found inside Example objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Example",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5320-L5337 |
18,648 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *ExampleOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*ExampleOrReference_Example)
if ok {
_, err := p.Example.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*ExampleOrReference_Refere... | go | func (m *ExampleOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*ExampleOrReference_Example)
if ok {
_, err := p.Example.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*ExampleOrReference_Refere... | [
"func",
"(",
"m",
"*",
"ExampleOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",
... | // ResolveReferences resolves references found inside ExampleOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"ExampleOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5340-L5361 |
18,649 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *HeaderOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*HeaderOrReference_Header)
if ok {
_, err := p.Header.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*HeaderOrReference_Reference)
... | go | func (m *HeaderOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*HeaderOrReference_Header)
if ok {
_, err := p.Header.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*HeaderOrReference_Reference)
... | [
"func",
"(",
"m",
"*",
"HeaderOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",
... | // ResolveReferences resolves references found inside HeaderOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"HeaderOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5444-L5465 |
18,650 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Link) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Parameters != nil {
_, err := m.Parameters.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.RequestBody != nil {
_, err := m.RequestBody.ResolveReferences(root)
if err != ni... | go | func (m *Link) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Parameters != nil {
_, err := m.Parameters.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.RequestBody != nil {
_, err := m.RequestBody.ResolveReferences(root)
if err != ni... | [
"func",
"(",
"m",
"*",
"Link",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Parameters",
"!=",
"nil... | // ResolveReferences resolves references found inside Link objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Link",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5536-L5565 |
18,651 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *LinkOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*LinkOrReference_Link)
if ok {
_, err := p.Link.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*LinkOrReference_Reference)
if ok {
... | go | func (m *LinkOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*LinkOrReference_Link)
if ok {
_, err := p.Link.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*LinkOrReference_Reference)
if ok {
... | [
"func",
"(",
"m",
"*",
"LinkOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",
"m... | // ResolveReferences resolves references found inside LinkOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"LinkOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5568-L5589 |
18,652 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *OauthFlow) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Scopes != nil {
_, err := m.Scopes.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.ResolveR... | go | func (m *OauthFlow) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Scopes != nil {
_, err := m.Scopes.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.ResolveR... | [
"func",
"(",
"m",
"*",
"OauthFlow",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Scopes",
"!=",
"ni... | // ResolveReferences resolves references found inside OauthFlow objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"OauthFlow",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5844-L5861 |
18,653 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *OauthFlows) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Implicit != nil {
_, err := m.Implicit.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.Password != nil {
_, err := m.Password.ResolveReferences(root)
if err != nil {
... | go | func (m *OauthFlows) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Implicit != nil {
_, err := m.Implicit.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
if m.Password != nil {
_, err := m.Password.ResolveReferences(root)
if err != nil {
... | [
"func",
"(",
"m",
"*",
"OauthFlows",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Implicit",
"!=",
... | // ResolveReferences resolves references found inside OauthFlows objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"OauthFlows",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L5864-L5899 |
18,654 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *ParameterOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*ParameterOrReference_Parameter)
if ok {
_, err := p.Parameter.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*ParameterOrRefere... | go | func (m *ParameterOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*ParameterOrReference_Parameter)
if ok {
_, err := p.Parameter.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*ParameterOrRefere... | [
"func",
"(",
"m",
"*",
"ParameterOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",... | // ResolveReferences resolves references found inside ParameterOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"ParameterOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6016-L6037 |
18,655 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Reference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.XRef != "" {
info, err := compiler.ReadInfoForRef(root, m.XRef)
if err != nil {
return nil, err
}
return info, nil
}
return nil, compiler.NewErrorGroupOrNil(errors)
} | go | func (m *Reference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.XRef != "" {
info, err := compiler.ReadInfoForRef(root, m.XRef)
if err != nil {
return nil, err
}
return info, nil
}
return nil, compiler.NewErrorGroupOrNil(errors)
} | [
"func",
"(",
"m",
"*",
"Reference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"XRef",
"!=",
"\"",... | // ResolveReferences resolves references found inside Reference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Reference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6182-L6192 |
18,656 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *RequestBody) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Content != nil {
_, err := m.Content.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Reso... | go | func (m *RequestBody) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Content != nil {
_, err := m.Content.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Reso... | [
"func",
"(",
"m",
"*",
"RequestBody",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Content",
"!=",
... | // ResolveReferences resolves references found inside RequestBody objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"RequestBody",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6209-L6226 |
18,657 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *RequestBodyOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*RequestBodyOrReference_RequestBody)
if ok {
_, err := p.RequestBody.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*RequestBo... | go | func (m *RequestBodyOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*RequestBodyOrReference_RequestBody)
if ok {
_, err := p.RequestBody.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*RequestBo... | [
"func",
"(",
"m",
"*",
"RequestBodyOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=... | // ResolveReferences resolves references found inside RequestBodyOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"RequestBodyOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6229-L6250 |
18,658 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *ResponseOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*ResponseOrReference_Response)
if ok {
_, err := p.Response.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*ResponseOrReference_R... | go | func (m *ResponseOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*ResponseOrReference_Response)
if ok {
_, err := p.Response.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*ResponseOrReference_R... | [
"func",
"(",
"m",
"*",
"ResponseOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",
... | // ResolveReferences resolves references found inside ResponseOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"ResponseOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6285-L6306 |
18,659 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *SchemaOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*SchemaOrReference_Schema)
if ok {
_, err := p.Schema.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*SchemaOrReference_Reference)
... | go | func (m *SchemaOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*SchemaOrReference_Schema)
if ok {
_, err := p.Schema.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof.(*SchemaOrReference_Reference)
... | [
"func",
"(",
"m",
"*",
"SchemaOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
":=",
... | // ResolveReferences resolves references found inside SchemaOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"SchemaOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6451-L6472 |
18,660 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *SecurityRequirement) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
return nil, compiler.NewErrorGroupOrNil(errors)
} | go | func (m *SecurityRequirement) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
return nil, compiler.NewErrorGroupOrNil(errors)
} | [
"func",
"(",
"m",
"*",
"SecurityRequirement",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"return",
"nil",
",",
"compil... | // ResolveReferences resolves references found inside SecurityRequirement objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"SecurityRequirement",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6489-L6492 |
18,661 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *SecurityScheme) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Flows != nil {
_, err := m.Flows.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Resol... | go | func (m *SecurityScheme) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Flows != nil {
_, err := m.Flows.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Resol... | [
"func",
"(",
"m",
"*",
"SecurityScheme",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Flows",
"!=",
... | // ResolveReferences resolves references found inside SecurityScheme objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"SecurityScheme",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6495-L6512 |
18,662 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *SecuritySchemeOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*SecuritySchemeOrReference_SecurityScheme)
if ok {
_, err := p.SecurityScheme.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof... | go | func (m *SecuritySchemeOrReference) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
{
p, ok := m.Oneof.(*SecuritySchemeOrReference_SecurityScheme)
if ok {
_, err := p.SecurityScheme.ResolveReferences(root)
if err != nil {
return nil, err
}
}
}
{
p, ok := m.Oneof... | [
"func",
"(",
"m",
"*",
"SecuritySchemeOrReference",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"{",
"p",
",",
"ok",
... | // ResolveReferences resolves references found inside SecuritySchemeOrReference objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"SecuritySchemeOrReference",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6515-L6536 |
18,663 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Server) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Variables != nil {
_, err := m.Variables.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Resol... | go | func (m *Server) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.Variables != nil {
_, err := m.Variables.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Resol... | [
"func",
"(",
"m",
"*",
"Server",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"Variables",
"!=",
"ni... | // ResolveReferences resolves references found inside Server objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Server",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6553-L6570 |
18,664 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ResolveReferences | func (m *Tag) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.ExternalDocs != nil {
_, err := m.ExternalDocs.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Re... | go | func (m *Tag) ResolveReferences(root string) (interface{}, error) {
errors := make([]error, 0)
if m.ExternalDocs != nil {
_, err := m.ExternalDocs.ResolveReferences(root)
if err != nil {
errors = append(errors, err)
}
}
for _, item := range m.SpecificationExtension {
if item != nil {
_, err := item.Re... | [
"func",
"(",
"m",
"*",
"Tag",
")",
"ResolveReferences",
"(",
"root",
"string",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"errors",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"0",
")",
"\n",
"if",
"m",
".",
"ExternalDocs",
"!=",
"ni... | // ResolveReferences resolves references found inside Tag objects. | [
"ResolveReferences",
"resolves",
"references",
"found",
"inside",
"Tag",
"objects",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6627-L6644 |
18,665 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *AnyOrExpression) ToRawInfo() interface{} {
// ONE OF WRAPPER
// AnyOrExpression
// {Name:any Type:Any StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetAny()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:expression Type:Expression StringEnumValues:[] MapTyp... | go | func (m *AnyOrExpression) ToRawInfo() interface{} {
// ONE OF WRAPPER
// AnyOrExpression
// {Name:any Type:Any StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetAny()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:expression Type:Expression StringEnumValues:[] MapTyp... | [
"func",
"(",
"m",
"*",
"AnyOrExpression",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// AnyOrExpression",
"// {Name:any Type:Any StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
"m",
".",
"GetAn... | // ToRawInfo returns a description of AnyOrExpression suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"AnyOrExpression",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6698-L6712 |
18,666 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Callback) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Path != nil {
for _, item := range m.Path {
info = append(info, yaml.MapItem{Key: item.Name, Value: item.Value.ToRawInfo()})
}
}
// &{Name:Path Type:NamedPathItem StringEnumValues:[] MapType:PathItem Rep... | go | func (m *Callback) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Path != nil {
for _, item := range m.Path {
info = append(info, yaml.MapItem{Key: item.Name, Value: item.Value.ToRawInfo()})
}
}
// &{Name:Path Type:NamedPathItem StringEnumValues:[] MapType:PathItem Rep... | [
"func",
"(",
"m",
"*",
"Callback",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Path",
"!=",
"nil... | // ToRawInfo returns a description of Callback suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Callback",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6730-L6748 |
18,667 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *CallbackOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// CallbackOrReference
// {Name:callback Type:Callback StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetCallback()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference Strin... | go | func (m *CallbackOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// CallbackOrReference
// {Name:callback Type:Callback StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetCallback()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference Strin... | [
"func",
"(",
"m",
"*",
"CallbackOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// CallbackOrReference",
"// {Name:callback Type:Callback StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
"m... | // ToRawInfo returns a description of CallbackOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"CallbackOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6751-L6765 |
18,668 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Components) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Schemas != nil {
info = append(info, yaml.MapItem{Key: "schemas", Value: m.Schemas.ToRawInfo()})
}
// &{Name:schemas Type:SchemasOrReferences StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:fa... | go | func (m *Components) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Schemas != nil {
info = append(info, yaml.MapItem{Key: "schemas", Value: m.Schemas.ToRawInfo()})
}
// &{Name:schemas Type:SchemasOrReferences StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:fa... | [
"func",
"(",
"m",
"*",
"Components",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Schemas",
"!=",
... | // ToRawInfo returns a description of Components suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Components",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6783-L6831 |
18,669 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *DefaultType) ToRawInfo() interface{} {
// ONE OF WRAPPER
// DefaultType
// {Name:number Type:float StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if v0, ok := m.GetOneof().(*DefaultType_Number); ok {
return v0.Number
}
// {Name:boolean Type:bool StringEnumValues:[] Ma... | go | func (m *DefaultType) ToRawInfo() interface{} {
// ONE OF WRAPPER
// DefaultType
// {Name:number Type:float StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if v0, ok := m.GetOneof().(*DefaultType_Number); ok {
return v0.Number
}
// {Name:boolean Type:bool StringEnumValues:[] Ma... | [
"func",
"(",
"m",
"*",
"DefaultType",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// DefaultType",
"// {Name:number Type:float StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"if",
"v0",
",",
"ok",
":=",
... | // ToRawInfo returns a description of DefaultType suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"DefaultType",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6858-L6874 |
18,670 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Discriminator) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "propertyName", Value: m.PropertyName})
if m.Mapping != nil {
info = append(info, yaml.MapItem{Key: "mapping", Value: m.Mapping.ToR... | go | func (m *Discriminator) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "propertyName", Value: m.PropertyName})
if m.Mapping != nil {
info = append(info, yaml.MapItem{Key: "mapping", Value: m.Mapping.ToR... | [
"func",
"(",
"m",
"*",
"Discriminator",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"// always include this required field.... | // ToRawInfo returns a description of Discriminator suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Discriminator",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6877-L6889 |
18,671 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Encoding) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.ContentType != "" {
info = append(info, yaml.MapItem{Key: "contentType", Value: m.ContentType})
}
if m.Headers != nil {
info = append(info, yaml.MapItem{Key: "headers", Value: m.Headers.ToRawInfo()})
}
//... | go | func (m *Encoding) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.ContentType != "" {
info = append(info, yaml.MapItem{Key: "contentType", Value: m.ContentType})
}
if m.Headers != nil {
info = append(info, yaml.MapItem{Key: "headers", Value: m.Headers.ToRawInfo()})
}
//... | [
"func",
"(",
"m",
"*",
"Encoding",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"ContentType",
"!=",... | // ToRawInfo returns a description of Encoding suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Encoding",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6947-L6975 |
18,672 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Example) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Summary != "" {
info = append(info, yaml.MapItem{Key: "summary", Value: m.Summary})
}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
// &{Name:value ... | go | func (m *Example) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Summary != "" {
info = append(info, yaml.MapItem{Key: "summary", Value: m.Summary})
}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
// &{Name:value ... | [
"func",
"(",
"m",
"*",
"Example",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Summary",
"!=",
"\... | // ToRawInfo returns a description of Example suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Example",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L6993-L7015 |
18,673 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *ExampleOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// ExampleOrReference
// {Name:example Type:Example StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetExample()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnum... | go | func (m *ExampleOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// ExampleOrReference
// {Name:example Type:Example StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetExample()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnum... | [
"func",
"(",
"m",
"*",
"ExampleOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// ExampleOrReference",
"// {Name:example Type:Example StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
"m",
... | // ToRawInfo returns a description of ExampleOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"ExampleOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7018-L7032 |
18,674 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Header) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
if m.Required != false {
info = append(info, yaml.MapItem{Key: "required", Value: m.Required})
}
if m.Deprec... | go | func (m *Header) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
if m.Required != false {
info = append(info, yaml.MapItem{Key: "required", Value: m.Required})
}
if m.Deprec... | [
"func",
"(",
"m",
"*",
"Header",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Description",
"!=",
... | // ToRawInfo returns a description of Header suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Header",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7085-L7134 |
18,675 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *HeaderOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// HeaderOrReference
// {Name:header Type:Header StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetHeader()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnumValue... | go | func (m *HeaderOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// HeaderOrReference
// {Name:header Type:Header StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetHeader()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnumValue... | [
"func",
"(",
"m",
"*",
"HeaderOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// HeaderOrReference",
"// {Name:header Type:Header StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
"m",
"."... | // ToRawInfo returns a description of HeaderOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"HeaderOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7137-L7151 |
18,676 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Link) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.OperationRef != "" {
info = append(info, yaml.MapItem{Key: "operationRef", Value: m.OperationRef})
}
if m.OperationId != "" {
info = append(info, yaml.MapItem{Key: "operationId", Value: m.OperationId})
}
if m... | go | func (m *Link) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.OperationRef != "" {
info = append(info, yaml.MapItem{Key: "operationRef", Value: m.OperationRef})
}
if m.OperationId != "" {
info = append(info, yaml.MapItem{Key: "operationId", Value: m.OperationId})
}
if m... | [
"func",
"(",
"m",
"*",
"Link",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"OperationRef",
"!=",
... | // ToRawInfo returns a description of Link suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Link",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7239-L7272 |
18,677 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *LinkOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// LinkOrReference
// {Name:link Type:Link StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetLink()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnumValues:[] MapTy... | go | func (m *LinkOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// LinkOrReference
// {Name:link Type:Link StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetLink()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnumValues:[] MapTy... | [
"func",
"(",
"m",
"*",
"LinkOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// LinkOrReference",
"// {Name:link Type:Link StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
"m",
".",
"Get... | // ToRawInfo returns a description of LinkOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"LinkOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7275-L7289 |
18,678 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *MediaType) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Schema != nil {
info = append(info, yaml.MapItem{Key: "schema", Value: m.Schema.ToRawInfo()})
}
// &{Name:schema Type:SchemaOrReference StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Des... | go | func (m *MediaType) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Schema != nil {
info = append(info, yaml.MapItem{Key: "schema", Value: m.Schema.ToRawInfo()})
}
// &{Name:schema Type:SchemaOrReference StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Des... | [
"func",
"(",
"m",
"*",
"MediaType",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Schema",
"!=",
"... | // ToRawInfo returns a description of MediaType suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"MediaType",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7307-L7335 |
18,679 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *NamedString) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Name != "" {
info = append(info, yaml.MapItem{Key: "name", Value: m.Name})
}
if m.Value != "" {
info = append(info, yaml.MapItem{Key: "value", Value: m.Value})
}
return info
} | go | func (m *NamedString) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Name != "" {
info = append(info, yaml.MapItem{Key: "name", Value: m.Name})
}
if m.Value != "" {
info = append(info, yaml.MapItem{Key: "value", Value: m.Value})
}
return info
} | [
"func",
"(",
"m",
"*",
"NamedString",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Name",
"!=",
"... | // ToRawInfo returns a description of NamedString suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"NamedString",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7548-L7560 |
18,680 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *OauthFlow) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.AuthorizationUrl != "" {
info = append(info, yaml.MapItem{Key: "authorizationUrl", Value: m.AuthorizationUrl})
}
if m.TokenUrl != "" {
info = append(info, yaml.MapItem{Key: "tokenUrl", Value: m.TokenUrl})
... | go | func (m *OauthFlow) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.AuthorizationUrl != "" {
info = append(info, yaml.MapItem{Key: "authorizationUrl", Value: m.AuthorizationUrl})
}
if m.TokenUrl != "" {
info = append(info, yaml.MapItem{Key: "tokenUrl", Value: m.TokenUrl})
... | [
"func",
"(",
"m",
"*",
"OauthFlow",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"AuthorizationUrl",
... | // ToRawInfo returns a description of OauthFlow suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"OauthFlow",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7563-L7588 |
18,681 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *OauthFlows) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Implicit != nil {
info = append(info, yaml.MapItem{Key: "implicit", Value: m.Implicit.ToRawInfo()})
}
// &{Name:implicit Type:OauthFlow StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false De... | go | func (m *OauthFlows) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Implicit != nil {
info = append(info, yaml.MapItem{Key: "implicit", Value: m.Implicit.ToRawInfo()})
}
// &{Name:implicit Type:OauthFlow StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false De... | [
"func",
"(",
"m",
"*",
"OauthFlows",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Implicit",
"!=",
... | // ToRawInfo returns a description of OauthFlows suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"OauthFlows",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7591-L7619 |
18,682 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *ParameterOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// ParameterOrReference
// {Name:parameter Type:Parameter StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetParameter()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference ... | go | func (m *ParameterOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// ParameterOrReference
// {Name:parameter Type:Parameter StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetParameter()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference ... | [
"func",
"(",
"m",
"*",
"ParameterOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// ParameterOrReference",
"// {Name:parameter Type:Parameter StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
... | // ToRawInfo returns a description of ParameterOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"ParameterOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7762-L7776 |
18,683 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *ParametersOrReferences) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.AdditionalProperties != nil {
for _, item := range m.AdditionalProperties {
info = append(info, yaml.MapItem{Key: item.Name, Value: item.Value.ToRawInfo()})
}
}
// &{Name:additionalProperti... | go | func (m *ParametersOrReferences) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.AdditionalProperties != nil {
for _, item := range m.AdditionalProperties {
info = append(info, yaml.MapItem{Key: item.Name, Value: item.Value.ToRawInfo()})
}
}
// &{Name:additionalProperti... | [
"func",
"(",
"m",
"*",
"ParametersOrReferences",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Additio... | // ToRawInfo returns a description of ParametersOrReferences suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"ParametersOrReferences",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7779-L7791 |
18,684 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Reference) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "$ref", Value: m.XRef})
return info
} | go | func (m *Reference) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "$ref", Value: m.XRef})
return info
} | [
"func",
"(",
"m",
"*",
"Reference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"// always include this required field.",
... | // ToRawInfo returns a description of Reference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Reference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7902-L7910 |
18,685 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *RequestBody) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "content", Value: m.Content.T... | go | func (m *RequestBody) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "content", Value: m.Content.T... | [
"func",
"(",
"m",
"*",
"RequestBody",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Description",
"!... | // ToRawInfo returns a description of RequestBody suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"RequestBody",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7928-L7949 |
18,686 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *RequestBodyOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// RequestBodyOrReference
// {Name:requestBody Type:RequestBody StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetRequestBody()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:... | go | func (m *RequestBodyOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// RequestBodyOrReference
// {Name:requestBody Type:RequestBody StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetRequestBody()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:... | [
"func",
"(",
"m",
"*",
"RequestBodyOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// RequestBodyOrReference",
"// {Name:requestBody Type:RequestBody StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
... | // ToRawInfo returns a description of RequestBodyOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"RequestBodyOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7952-L7966 |
18,687 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *ResponseOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// ResponseOrReference
// {Name:response Type:Response StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetResponse()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference Strin... | go | func (m *ResponseOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// ResponseOrReference
// {Name:response Type:Response StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetResponse()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference Strin... | [
"func",
"(",
"m",
"*",
"ResponseOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// ResponseOrReference",
"// {Name:response Type:Response StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
"m... | // ToRawInfo returns a description of ResponseOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"ResponseOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L7998-L8012 |
18,688 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *SchemaOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// SchemaOrReference
// {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetSchema()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnumValue... | go | func (m *SchemaOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// SchemaOrReference
// {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetSchema()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:reference Type:Reference StringEnumValue... | [
"func",
"(",
"m",
"*",
"SchemaOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// SchemaOrReference",
"// {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"v0",
":=",
"m",
"."... | // ToRawInfo returns a description of SchemaOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"SchemaOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8208-L8222 |
18,689 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *SecurityRequirement) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
return info
} | go | func (m *SecurityRequirement) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
return info
} | [
"func",
"(",
"m",
"*",
"SecurityRequirement",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"return",
"info",
"\n",
"}"... | // ToRawInfo returns a description of SecurityRequirement suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"SecurityRequirement",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8240-L8246 |
18,690 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *SecurityScheme) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "type", Value: m.Type})
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
i... | go | func (m *SecurityScheme) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "type", Value: m.Type})
if m.Description != "" {
info = append(info, yaml.MapItem{Key: "description", Value: m.Description})
}
i... | [
"func",
"(",
"m",
"*",
"SecurityScheme",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"// always include this required field... | // ToRawInfo returns a description of SecurityScheme suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"SecurityScheme",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8249-L8285 |
18,691 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *SecuritySchemeOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// SecuritySchemeOrReference
// {Name:securityScheme Type:SecurityScheme StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetSecurityScheme()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:... | go | func (m *SecuritySchemeOrReference) ToRawInfo() interface{} {
// ONE OF WRAPPER
// SecuritySchemeOrReference
// {Name:securityScheme Type:SecurityScheme StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
v0 := m.GetSecurityScheme()
if v0 != nil {
return v0.ToRawInfo()
}
// {Name:... | [
"func",
"(",
"m",
"*",
"SecuritySchemeOrReference",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// SecuritySchemeOrReference",
"// {Name:securityScheme Type:SecurityScheme StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:... | // ToRawInfo returns a description of SecuritySchemeOrReference suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"SecuritySchemeOrReference",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8288-L8302 |
18,692 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *ServerVariable) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if len(m.Enum) != 0 {
info = append(info, yaml.MapItem{Key: "enum", Value: m.Enum})
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "default", Value: m.Default})
if m.Descrip... | go | func (m *ServerVariable) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if len(m.Enum) != 0 {
info = append(info, yaml.MapItem{Key: "enum", Value: m.Enum})
}
// always include this required field.
info = append(info, yaml.MapItem{Key: "default", Value: m.Default})
if m.Descrip... | [
"func",
"(",
"m",
"*",
"ServerVariable",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"len",
"(",
"m",
".",
... | // ToRawInfo returns a description of ServerVariable suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"ServerVariable",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8344-L8364 |
18,693 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *SpecificationExtension) ToRawInfo() interface{} {
// ONE OF WRAPPER
// SpecificationExtension
// {Name:number Type:float StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if v0, ok := m.GetOneof().(*SpecificationExtension_Number); ok {
return v0.Number
}
// {Name:boolean... | go | func (m *SpecificationExtension) ToRawInfo() interface{} {
// ONE OF WRAPPER
// SpecificationExtension
// {Name:number Type:float StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}
if v0, ok := m.GetOneof().(*SpecificationExtension_Number); ok {
return v0.Number
}
// {Name:boolean... | [
"func",
"(",
"m",
"*",
"SpecificationExtension",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"// ONE OF WRAPPER",
"// SpecificationExtension",
"// {Name:number Type:float StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}",
"if",
"v0",
"... | // ToRawInfo returns a description of SpecificationExtension suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"SpecificationExtension",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8382-L8398 |
18,694 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Strings) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// &{Name:additionalProperties Type:NamedString StringEnumValues:[] MapType:string Repeated:true Pattern: Implicit:true Description:}
return info
} | go | func (m *Strings) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
// &{Name:additionalProperties Type:NamedString StringEnumValues:[] MapType:string Repeated:true Pattern: Implicit:true Description:}
return info
} | [
"func",
"(",
"m",
"*",
"Strings",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"// &{Name:additionalProperties Type:NamedStr... | // ToRawInfo returns a description of Strings suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Strings",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8406-L8413 |
18,695 | googleapis/gnostic | OpenAPIv3/OpenAPIv3.go | ToRawInfo | func (m *Xml) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Name != "" {
info = append(info, yaml.MapItem{Key: "name", Value: m.Name})
}
if m.Namespace != "" {
info = append(info, yaml.MapItem{Key: "namespace", Value: m.Namespace})
}
if m.Prefix != "" {
info = append... | go | func (m *Xml) ToRawInfo() interface{} {
info := yaml.MapSlice{}
if m == nil {
return info
}
if m.Name != "" {
info = append(info, yaml.MapItem{Key: "name", Value: m.Name})
}
if m.Namespace != "" {
info = append(info, yaml.MapItem{Key: "namespace", Value: m.Namespace})
}
if m.Prefix != "" {
info = append... | [
"func",
"(",
"m",
"*",
"Xml",
")",
"ToRawInfo",
"(",
")",
"interface",
"{",
"}",
"{",
"info",
":=",
"yaml",
".",
"MapSlice",
"{",
"}",
"\n",
"if",
"m",
"==",
"nil",
"{",
"return",
"info",
"\n",
"}",
"\n",
"if",
"m",
".",
"Name",
"!=",
"\"",
"... | // ToRawInfo returns a description of Xml suitable for JSON or YAML export. | [
"ToRawInfo",
"returns",
"a",
"description",
"of",
"Xml",
"suitable",
"for",
"JSON",
"or",
"YAML",
"export",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv3/OpenAPIv3.go#L8440-L8467 |
18,696 | googleapis/gnostic | plugins/gnostic-go-generator/render_client.go | ParameterList | func ParameterList(parametersType *surface.Type) string {
result := ""
if parametersType != nil {
for _, field := range parametersType.Fields {
result += field.ParameterName + " " + field.NativeType + "," + "\n"
}
}
return result
} | go | func ParameterList(parametersType *surface.Type) string {
result := ""
if parametersType != nil {
for _, field := range parametersType.Fields {
result += field.ParameterName + " " + field.NativeType + "," + "\n"
}
}
return result
} | [
"func",
"ParameterList",
"(",
"parametersType",
"*",
"surface",
".",
"Type",
")",
"string",
"{",
"result",
":=",
"\"",
"\"",
"\n",
"if",
"parametersType",
"!=",
"nil",
"{",
"for",
"_",
",",
"field",
":=",
"range",
"parametersType",
".",
"Fields",
"{",
"r... | // ParameterList returns a string representation of a method's parameters | [
"ParameterList",
"returns",
"a",
"string",
"representation",
"of",
"a",
"method",
"s",
"parameters"
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-go-generator/render_client.go#L24-L32 |
18,697 | googleapis/gnostic | apps/disco/list.go | NewList | func NewList(bytes []byte) (*List, error) {
var listResponse List
err := json.Unmarshal(bytes, &listResponse)
return &listResponse, err
} | go | func NewList(bytes []byte) (*List, error) {
var listResponse List
err := json.Unmarshal(bytes, &listResponse)
return &listResponse, err
} | [
"func",
"NewList",
"(",
"bytes",
"[",
"]",
"byte",
")",
"(",
"*",
"List",
",",
"error",
")",
"{",
"var",
"listResponse",
"List",
"\n",
"err",
":=",
"json",
".",
"Unmarshal",
"(",
"bytes",
",",
"&",
"listResponse",
")",
"\n",
"return",
"&",
"listRespo... | // NewList unmarshals the bytes into a Document. | [
"NewList",
"unmarshals",
"the",
"bytes",
"into",
"a",
"Document",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/apps/disco/list.go#L35-L39 |
18,698 | googleapis/gnostic | apps/disco/list.go | APIWithNameAndVersion | func (a *List) APIWithNameAndVersion(name string, version string) (*API, error) {
var api *API // the API to return
versions := make([]string, 0) // the matching version names
// Scan the list for matching APIs and versions.
for _, item := range a.APIs {
if item.Name == name {
if version == ""... | go | func (a *List) APIWithNameAndVersion(name string, version string) (*API, error) {
var api *API // the API to return
versions := make([]string, 0) // the matching version names
// Scan the list for matching APIs and versions.
for _, item := range a.APIs {
if item.Name == name {
if version == ""... | [
"func",
"(",
"a",
"*",
"List",
")",
"APIWithNameAndVersion",
"(",
"name",
"string",
",",
"version",
"string",
")",
"(",
"*",
"API",
",",
"error",
")",
"{",
"var",
"api",
"*",
"API",
"// the API to return",
"\n",
"versions",
":=",
"make",
"(",
"[",
"]",... | // APIWithNameAndVersion returns the API with a specified name and version.
// If version is the empty string, the API name must be unique. | [
"APIWithNameAndVersion",
"returns",
"the",
"API",
"with",
"a",
"specified",
"name",
"and",
"version",
".",
"If",
"version",
"is",
"the",
"empty",
"string",
"the",
"API",
"name",
"must",
"be",
"unique",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/apps/disco/list.go#L59-L79 |
18,699 | googleapis/gnostic | plugins/gnostic-go-generator/renderer.go | NewServiceRenderer | func NewServiceRenderer(model *surface.Model) (renderer *Renderer, err error) {
renderer = &Renderer{}
renderer.Model = model
return renderer, nil
} | go | func NewServiceRenderer(model *surface.Model) (renderer *Renderer, err error) {
renderer = &Renderer{}
renderer.Model = model
return renderer, nil
} | [
"func",
"NewServiceRenderer",
"(",
"model",
"*",
"surface",
".",
"Model",
")",
"(",
"renderer",
"*",
"Renderer",
",",
"err",
"error",
")",
"{",
"renderer",
"=",
"&",
"Renderer",
"{",
"}",
"\n",
"renderer",
".",
"Model",
"=",
"model",
"\n",
"return",
"r... | // NewServiceRenderer creates a renderer. | [
"NewServiceRenderer",
"creates",
"a",
"renderer",
"."
] | 909070f02b666e4e9adf7eda93c304a8ba2a8063 | https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-go-generator/renderer.go#L34-L38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.