Documentation ¶
Index ¶
- func NewApplicationJsonMediaType(schema *v3.SchemaOrReference) *v3.MediaTypes
- func NewBooleanSchema() *v3.SchemaOrReference
- func NewBytesSchema() *v3.SchemaOrReference
- func NewEnumSchema(enum_type *string, field protoreflect.FieldDescriptor) *v3.SchemaOrReference
- func NewGoogleApiHttpBodyMediaType() *v3.MediaTypes
- func NewGoogleApiHttpBodySchema() *v3.SchemaOrReference
- func NewGoogleProtobufAnySchema(name string) *v3.NamedSchemaOrReference
- func NewGoogleProtobufDurationSchema() *v3.SchemaOrReference
- func NewGoogleProtobufFieldMaskSchema() *v3.SchemaOrReference
- func NewGoogleProtobufMapFieldEntrySchema(value_field_schema *v3.SchemaOrReference) *v3.SchemaOrReference
- func NewGoogleProtobufStructSchema() *v3.SchemaOrReference
- func NewGoogleProtobufTimestampSchema() *v3.SchemaOrReference
- func NewGoogleProtobufValueSchema(name string) *v3.NamedSchemaOrReference
- func NewGoogleRpcStatusSchema(name string, any_name string) *v3.NamedSchemaOrReference
- func NewGoogleTypeDateSchema() *v3.SchemaOrReference
- func NewGoogleTypeDateTimeSchema() *v3.SchemaOrReference
- func NewIntegerSchema(format string) *v3.SchemaOrReference
- func NewListSchema(item_schema *v3.SchemaOrReference) *v3.SchemaOrReference
- func NewNumberSchema(format string) *v3.SchemaOrReference
- func NewStringSchema() *v3.SchemaOrReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplicationJsonMediaType ¶
func NewApplicationJsonMediaType(schema *v3.SchemaOrReference) *v3.MediaTypes
func NewBooleanSchema ¶
func NewBooleanSchema() *v3.SchemaOrReference
func NewBytesSchema ¶
func NewBytesSchema() *v3.SchemaOrReference
func NewEnumSchema ¶
func NewEnumSchema(enum_type *string, field protoreflect.FieldDescriptor) *v3.SchemaOrReference
func NewGoogleApiHttpBodyMediaType ¶
func NewGoogleApiHttpBodyMediaType() *v3.MediaTypes
func NewGoogleApiHttpBodySchema ¶
func NewGoogleApiHttpBodySchema() *v3.SchemaOrReference
google.api.HttpBody will contain POST body data This is based on how Envoy handles google.api.HttpBody
func NewGoogleProtobufAnySchema ¶
func NewGoogleProtobufAnySchema(name string) *v3.NamedSchemaOrReference
google.protobuf.Any is handled specially See here for the details on the JSON mapping:
https://developers.google.com/protocol-buffers/docs/proto3#json
func NewGoogleProtobufDurationSchema ¶
func NewGoogleProtobufDurationSchema() *v3.SchemaOrReference
google.protobuf.Duration is serialized as a string
func NewGoogleProtobufFieldMaskSchema ¶
func NewGoogleProtobufFieldMaskSchema() *v3.SchemaOrReference
google.protobuf.FieldMask masks is serialized as a string
func NewGoogleProtobufMapFieldEntrySchema ¶
func NewGoogleProtobufMapFieldEntrySchema(value_field_schema *v3.SchemaOrReference) *v3.SchemaOrReference
func NewGoogleProtobufStructSchema ¶
func NewGoogleProtobufStructSchema() *v3.SchemaOrReference
google.protobuf.Struct is equivalent to a JSON object
func NewGoogleProtobufTimestampSchema ¶
func NewGoogleProtobufTimestampSchema() *v3.SchemaOrReference
google.protobuf.Timestamp is serialized as a string
func NewGoogleProtobufValueSchema ¶
func NewGoogleProtobufValueSchema(name string) *v3.NamedSchemaOrReference
google.protobuf.Value is handled specially See here for the details on the JSON mapping:
https://developers.google.com/protocol-buffers/docs/proto3#json
and here:
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value
func NewGoogleRpcStatusSchema ¶
func NewGoogleRpcStatusSchema(name string, any_name string) *v3.NamedSchemaOrReference
google.rpc.Status is handled specially
func NewGoogleTypeDateSchema ¶
func NewGoogleTypeDateSchema() *v3.SchemaOrReference
google.type.Date is serialized as a string
func NewGoogleTypeDateTimeSchema ¶
func NewGoogleTypeDateTimeSchema() *v3.SchemaOrReference
google.type.DateTime is serialized as a string
func NewIntegerSchema ¶
func NewIntegerSchema(format string) *v3.SchemaOrReference
func NewListSchema ¶
func NewListSchema(item_schema *v3.SchemaOrReference) *v3.SchemaOrReference
func NewNumberSchema ¶
func NewNumberSchema(format string) *v3.SchemaOrReference
func NewStringSchema ¶
func NewStringSchema() *v3.SchemaOrReference
Types ¶
This section is empty.