Skip to content

Commit 1b9d565

Browse files
committed
Add missing type/object aliases to TapirAliases
1 parent af7f79f commit 1b9d565

File tree

1 file changed

+68
-3
lines changed

1 file changed

+68
-3
lines changed

core/src/main/scala/sttp/tapir/TapirAliases.scala

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,34 @@ package sttp.tapir
33
/** Mixin containing aliases for top-level types and modules in the tapir package. */
44
trait TapirAliases {
55

6+
/** attribute.scala */
7+
type AttributeKey[T] = sttp.tapir.AttributeKey[T]
8+
val AttributeKey = sttp.tapir.AttributeKey
9+
10+
/** attribute.scala */
11+
type AttributeMap = sttp.tapir.AttributeMap
12+
val AttributeMap = sttp.tapir.AttributeMap
13+
614
/** Codec.scala */
715
type Codec[L, H, CF <: CodecFormat] = sttp.tapir.Codec[L, H, CF]
816
val Codec = sttp.tapir.Codec
917

18+
/** Codec.scala */
19+
type PartCodec[R, T] = sttp.tapir.PartCodec[R, T]
20+
val PartCodec = sttp.tapir.PartCodec
21+
22+
/** Codec.scala */
23+
type MultipartCodec[T] = sttp.tapir.MultipartCodec[T]
24+
val MultipartCodec = sttp.tapir.MultipartCodec
25+
26+
/** Codec.scala */
27+
type RawBodyType[R] = sttp.tapir.RawBodyType[R]
28+
val RawBodyType = sttp.tapir.RawBodyType
29+
30+
/** CodecFormat.scala */
31+
type CodecFormat = sttp.tapir.CodecFormat
32+
val CodecFormat = sttp.tapir.CodecFormat
33+
1034
/** DecodeResult.scala */
1135
type DecodeResult[+T] = sttp.tapir.DecodeResult[T]
1236
val DecodeResult = sttp.tapir.DecodeResult
@@ -18,27 +42,52 @@ trait TapirAliases {
1842
type Endpoint[A, I, E, O, -R] = sttp.tapir.Endpoint[A, I, E, O, R]
1943
val Endpoint = sttp.tapir.Endpoint
2044

45+
/** Endpoint.scala */
2146
type EndpointInfo = sttp.tapir.EndpointInfo
2247
val EndpointInfo = sttp.tapir.EndpointInfo
2348

2449
/** EndpointIO.scala */
2550
type EndpointInput[I] = sttp.tapir.EndpointInput[I]
2651
val EndpointInput = sttp.tapir.EndpointInput
2752

53+
/** EndpointIO.scala */
2854
type EndpointOutput[O] = sttp.tapir.EndpointOutput[O]
2955
val EndpointOutput = sttp.tapir.EndpointOutput
3056

57+
/** EndpointIO.scala */
3158
type EndpointIO[I] = sttp.tapir.EndpointIO[I]
3259
val EndpointIO = sttp.tapir.EndpointIO
3360

34-
type StreamBody[BS, T, S] = sttp.tapir.StreamBodyIO[BS, T, S]
35-
val StreamBody = sttp.tapir.StreamBodyIO
61+
/** EndpointIO.scala */
62+
type StreamBodyIO[BS, T, S] = sttp.tapir.StreamBodyIO[BS, T, S]
63+
val StreamBodyIO = sttp.tapir.StreamBodyIO
64+
65+
/** EndpointIO.scala */
66+
type WebSocketBodyOutput[PIPE_REQ_RESP, REQ, RESP, T, S] = sttp.tapir.WebSocketBodyOutput[PIPE_REQ_RESP, REQ, RESP, T, S]
67+
val WebSocketBodyOutput = sttp.tapir.WebSocketBodyOutput
68+
69+
/** FieldName.scala */
70+
type FieldName = sttp.tapir.FieldName
71+
val FieldName = sttp.tapir.FieldName
72+
73+
/** FileRange.scala */
74+
type FileRange = sttp.tapir.FileRange
75+
val FileRange = sttp.tapir.FileRange
76+
77+
/** FileRange.scala */
78+
type RangeValue = sttp.tapir.RangeValue
79+
val RangeValue = sttp.tapir.RangeValue
80+
81+
/** InputStreamRange.scala */
82+
type InputStreamRange = sttp.tapir.InputStreamRange
83+
val InputStreamRange = sttp.tapir.InputStreamRange
3684

3785
/** package.scala */
3886
type RawPart = sttp.tapir.RawPart
3987
type AnyPart = sttp.tapir.AnyPart
4088
type AnyListCodec = sttp.tapir.AnyListCodec
41-
type MultipartCodec[T] = sttp.tapir.MultipartCodec[T]
89+
type AnyEndpoint = sttp.tapir.AnyEndpoint
90+
type PublicEndpoint[INPUT, ERROR_OUTPUT, OUTPUT, -R] = sttp.tapir.PublicEndpoint[INPUT, ERROR_OUTPUT, OUTPUT, R]
4291

4392
/** SchemaType.scala */
4493
type SchemaType[T] = sttp.tapir.SchemaType[T]
@@ -48,9 +97,25 @@ trait TapirAliases {
4897
type Schema[T] = sttp.tapir.Schema[T]
4998
val Schema: sttp.tapir.Schema.type = sttp.tapir.Schema
5099

100+
/** SchemaAnnotations.scala */
101+
type SchemaAnnotations[T] = sttp.tapir.SchemaAnnotations[T]
102+
val SchemaAnnotations = sttp.tapir.SchemaAnnotations
103+
51104
/** Tapir.scala */
52105
type Tapir = sttp.tapir.Tapir
53106

54107
/** TapirAuth.scala */
55108
val TapirAuth = sttp.tapir.TapirAuth
109+
110+
/** Validator.scala */
111+
val Validator = sttp.tapir.Validator
112+
113+
/** Validator.scala */
114+
type ValidationResult = sttp.tapir.ValidationResult
115+
val ValidationResult = sttp.tapir.ValidationResult
116+
117+
/** Validator.scala */
118+
type ValidationError[T] = sttp.tapir.ValidationError[T]
119+
val ValidationError = sttp.tapir.ValidationError
120+
56121
}

0 commit comments

Comments
 (0)