diff --git a/examples/ex_test_format/oas_client_gen.go b/examples/ex_test_format/oas_client_gen.go index f243257c6..40951cae8 100644 --- a/examples/ex_test_format/oas_client_gen.go +++ b/examples/ex_test_format/oas_client_gen.go @@ -1305,15 +1305,15 @@ type Invoker interface { // TestRequestRequiredStringFloat32Nullable invokes test_request_required_string_float32_nullable operation. // // POST /test_request_required_string_float32_nullable - TestRequestRequiredStringFloat32Nullable(ctx context.Context, request NilFloat32) (*Error, error) + TestRequestRequiredStringFloat32Nullable(ctx context.Context, request NilStringFloat32) (*Error, error) // TestRequestRequiredStringFloat32NullableArray invokes test_request_required_string_float32_nullable_array operation. // // POST /test_request_required_string_float32_nullable_array - TestRequestRequiredStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (*Error, error) + TestRequestRequiredStringFloat32NullableArray(ctx context.Context, request []NilStringFloat32) (*Error, error) // TestRequestRequiredStringFloat32NullableArrayArray invokes test_request_required_string_float32_nullable_array_array operation. // // POST /test_request_required_string_float32_nullable_array_array - TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (*Error, error) + TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, request [][]NilStringFloat32) (*Error, error) // TestRequestRequiredStringFloat64 invokes test_request_required_string_float64 operation. // // POST /test_request_required_string_float64 @@ -1329,15 +1329,15 @@ type Invoker interface { // TestRequestRequiredStringFloat64Nullable invokes test_request_required_string_float64_nullable operation. // // POST /test_request_required_string_float64_nullable - TestRequestRequiredStringFloat64Nullable(ctx context.Context, request NilFloat64) (*Error, error) + TestRequestRequiredStringFloat64Nullable(ctx context.Context, request NilStringFloat64) (*Error, error) // TestRequestRequiredStringFloat64NullableArray invokes test_request_required_string_float64_nullable_array operation. // // POST /test_request_required_string_float64_nullable_array - TestRequestRequiredStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (*Error, error) + TestRequestRequiredStringFloat64NullableArray(ctx context.Context, request []NilStringFloat64) (*Error, error) // TestRequestRequiredStringFloat64NullableArrayArray invokes test_request_required_string_float64_nullable_array_array operation. // // POST /test_request_required_string_float64_nullable_array_array - TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (*Error, error) + TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, request [][]NilStringFloat64) (*Error, error) // TestRequestRequiredStringHostname invokes test_request_required_string_hostname operation. // // POST /test_request_required_string_hostname @@ -1405,15 +1405,15 @@ type Invoker interface { // TestRequestRequiredStringInt16Nullable invokes test_request_required_string_int16_nullable operation. // // POST /test_request_required_string_int16_nullable - TestRequestRequiredStringInt16Nullable(ctx context.Context, request NilInt16) (*Error, error) + TestRequestRequiredStringInt16Nullable(ctx context.Context, request NilStringInt16) (*Error, error) // TestRequestRequiredStringInt16NullableArray invokes test_request_required_string_int16_nullable_array operation. // // POST /test_request_required_string_int16_nullable_array - TestRequestRequiredStringInt16NullableArray(ctx context.Context, request []NilInt16) (*Error, error) + TestRequestRequiredStringInt16NullableArray(ctx context.Context, request []NilStringInt16) (*Error, error) // TestRequestRequiredStringInt16NullableArrayArray invokes test_request_required_string_int16_nullable_array_array operation. // // POST /test_request_required_string_int16_nullable_array_array - TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (*Error, error) + TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, request [][]NilStringInt16) (*Error, error) // TestRequestRequiredStringInt32 invokes test_request_required_string_int32 operation. // // POST /test_request_required_string_int32 @@ -1477,15 +1477,15 @@ type Invoker interface { // TestRequestRequiredStringInt8Nullable invokes test_request_required_string_int8_nullable operation. // // POST /test_request_required_string_int8_nullable - TestRequestRequiredStringInt8Nullable(ctx context.Context, request NilInt8) (*Error, error) + TestRequestRequiredStringInt8Nullable(ctx context.Context, request NilStringInt8) (*Error, error) // TestRequestRequiredStringInt8NullableArray invokes test_request_required_string_int8_nullable_array operation. // // POST /test_request_required_string_int8_nullable_array - TestRequestRequiredStringInt8NullableArray(ctx context.Context, request []NilInt8) (*Error, error) + TestRequestRequiredStringInt8NullableArray(ctx context.Context, request []NilStringInt8) (*Error, error) // TestRequestRequiredStringInt8NullableArrayArray invokes test_request_required_string_int8_nullable_array_array operation. // // POST /test_request_required_string_int8_nullable_array_array - TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (*Error, error) + TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, request [][]NilStringInt8) (*Error, error) // TestRequestRequiredStringIntArray invokes test_request_required_string_int_array operation. // // POST /test_request_required_string_int_array @@ -1497,15 +1497,15 @@ type Invoker interface { // TestRequestRequiredStringIntNullable invokes test_request_required_string_int_nullable operation. // // POST /test_request_required_string_int_nullable - TestRequestRequiredStringIntNullable(ctx context.Context, request NilInt) (*Error, error) + TestRequestRequiredStringIntNullable(ctx context.Context, request NilStringInt) (*Error, error) // TestRequestRequiredStringIntNullableArray invokes test_request_required_string_int_nullable_array operation. // // POST /test_request_required_string_int_nullable_array - TestRequestRequiredStringIntNullableArray(ctx context.Context, request []NilInt) (*Error, error) + TestRequestRequiredStringIntNullableArray(ctx context.Context, request []NilStringInt) (*Error, error) // TestRequestRequiredStringIntNullableArrayArray invokes test_request_required_string_int_nullable_array_array operation. // // POST /test_request_required_string_int_nullable_array_array - TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (*Error, error) + TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, request [][]NilStringInt) (*Error, error) // TestRequestRequiredStringIpv4 invokes test_request_required_string_ipv4 operation. // // POST /test_request_required_string_ipv4 @@ -1681,15 +1681,15 @@ type Invoker interface { // TestRequestRequiredStringUint16Nullable invokes test_request_required_string_uint16_nullable operation. // // POST /test_request_required_string_uint16_nullable - TestRequestRequiredStringUint16Nullable(ctx context.Context, request NilUint16) (*Error, error) + TestRequestRequiredStringUint16Nullable(ctx context.Context, request NilStringUint16) (*Error, error) // TestRequestRequiredStringUint16NullableArray invokes test_request_required_string_uint16_nullable_array operation. // // POST /test_request_required_string_uint16_nullable_array - TestRequestRequiredStringUint16NullableArray(ctx context.Context, request []NilUint16) (*Error, error) + TestRequestRequiredStringUint16NullableArray(ctx context.Context, request []NilStringUint16) (*Error, error) // TestRequestRequiredStringUint16NullableArrayArray invokes test_request_required_string_uint16_nullable_array_array operation. // // POST /test_request_required_string_uint16_nullable_array_array - TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (*Error, error) + TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, request [][]NilStringUint16) (*Error, error) // TestRequestRequiredStringUint32 invokes test_request_required_string_uint32 operation. // // POST /test_request_required_string_uint32 @@ -1705,15 +1705,15 @@ type Invoker interface { // TestRequestRequiredStringUint32Nullable invokes test_request_required_string_uint32_nullable operation. // // POST /test_request_required_string_uint32_nullable - TestRequestRequiredStringUint32Nullable(ctx context.Context, request NilUint32) (*Error, error) + TestRequestRequiredStringUint32Nullable(ctx context.Context, request NilStringUint32) (*Error, error) // TestRequestRequiredStringUint32NullableArray invokes test_request_required_string_uint32_nullable_array operation. // // POST /test_request_required_string_uint32_nullable_array - TestRequestRequiredStringUint32NullableArray(ctx context.Context, request []NilUint32) (*Error, error) + TestRequestRequiredStringUint32NullableArray(ctx context.Context, request []NilStringUint32) (*Error, error) // TestRequestRequiredStringUint32NullableArrayArray invokes test_request_required_string_uint32_nullable_array_array operation. // // POST /test_request_required_string_uint32_nullable_array_array - TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (*Error, error) + TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, request [][]NilStringUint32) (*Error, error) // TestRequestRequiredStringUint64 invokes test_request_required_string_uint64 operation. // // POST /test_request_required_string_uint64 @@ -1729,15 +1729,15 @@ type Invoker interface { // TestRequestRequiredStringUint64Nullable invokes test_request_required_string_uint64_nullable operation. // // POST /test_request_required_string_uint64_nullable - TestRequestRequiredStringUint64Nullable(ctx context.Context, request NilUint64) (*Error, error) + TestRequestRequiredStringUint64Nullable(ctx context.Context, request NilStringUint64) (*Error, error) // TestRequestRequiredStringUint64NullableArray invokes test_request_required_string_uint64_nullable_array operation. // // POST /test_request_required_string_uint64_nullable_array - TestRequestRequiredStringUint64NullableArray(ctx context.Context, request []NilUint64) (*Error, error) + TestRequestRequiredStringUint64NullableArray(ctx context.Context, request []NilStringUint64) (*Error, error) // TestRequestRequiredStringUint64NullableArrayArray invokes test_request_required_string_uint64_nullable_array_array operation. // // POST /test_request_required_string_uint64_nullable_array_array - TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (*Error, error) + TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, request [][]NilStringUint64) (*Error, error) // TestRequestRequiredStringUint8 invokes test_request_required_string_uint8 operation. // // POST /test_request_required_string_uint8 @@ -1753,15 +1753,15 @@ type Invoker interface { // TestRequestRequiredStringUint8Nullable invokes test_request_required_string_uint8_nullable operation. // // POST /test_request_required_string_uint8_nullable - TestRequestRequiredStringUint8Nullable(ctx context.Context, request NilUint8) (*Error, error) + TestRequestRequiredStringUint8Nullable(ctx context.Context, request NilStringUint8) (*Error, error) // TestRequestRequiredStringUint8NullableArray invokes test_request_required_string_uint8_nullable_array operation. // // POST /test_request_required_string_uint8_nullable_array - TestRequestRequiredStringUint8NullableArray(ctx context.Context, request []NilUint8) (*Error, error) + TestRequestRequiredStringUint8NullableArray(ctx context.Context, request []NilStringUint8) (*Error, error) // TestRequestRequiredStringUint8NullableArrayArray invokes test_request_required_string_uint8_nullable_array_array operation. // // POST /test_request_required_string_uint8_nullable_array_array - TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (*Error, error) + TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, request [][]NilStringUint8) (*Error, error) // TestRequestRequiredStringUintArray invokes test_request_required_string_uint_array operation. // // POST /test_request_required_string_uint_array @@ -1773,15 +1773,15 @@ type Invoker interface { // TestRequestRequiredStringUintNullable invokes test_request_required_string_uint_nullable operation. // // POST /test_request_required_string_uint_nullable - TestRequestRequiredStringUintNullable(ctx context.Context, request NilUint) (*Error, error) + TestRequestRequiredStringUintNullable(ctx context.Context, request NilStringUint) (*Error, error) // TestRequestRequiredStringUintNullableArray invokes test_request_required_string_uint_nullable_array operation. // // POST /test_request_required_string_uint_nullable_array - TestRequestRequiredStringUintNullableArray(ctx context.Context, request []NilUint) (*Error, error) + TestRequestRequiredStringUintNullableArray(ctx context.Context, request []NilStringUint) (*Error, error) // TestRequestRequiredStringUintNullableArrayArray invokes test_request_required_string_uint_nullable_array_array operation. // // POST /test_request_required_string_uint_nullable_array_array - TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (*Error, error) + TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, request [][]NilStringUint) (*Error, error) // TestRequestRequiredStringUnix invokes test_request_required_string_unix operation. // // POST /test_request_required_string_unix @@ -2085,7 +2085,7 @@ type Invoker interface { // TestRequestStringFloat32 invokes test_request_string_float32 operation. // // POST /test_request_string_float32 - TestRequestStringFloat32(ctx context.Context, request OptFloat32) (*Error, error) + TestRequestStringFloat32(ctx context.Context, request OptStringFloat32) (*Error, error) // TestRequestStringFloat32Array invokes test_request_string_float32_array operation. // // POST /test_request_string_float32_array @@ -2097,19 +2097,19 @@ type Invoker interface { // TestRequestStringFloat32Nullable invokes test_request_string_float32_nullable operation. // // POST /test_request_string_float32_nullable - TestRequestStringFloat32Nullable(ctx context.Context, request OptNilFloat32) (*Error, error) + TestRequestStringFloat32Nullable(ctx context.Context, request OptNilStringFloat32) (*Error, error) // TestRequestStringFloat32NullableArray invokes test_request_string_float32_nullable_array operation. // // POST /test_request_string_float32_nullable_array - TestRequestStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (*Error, error) + TestRequestStringFloat32NullableArray(ctx context.Context, request []NilStringFloat32) (*Error, error) // TestRequestStringFloat32NullableArrayArray invokes test_request_string_float32_nullable_array_array operation. // // POST /test_request_string_float32_nullable_array_array - TestRequestStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (*Error, error) + TestRequestStringFloat32NullableArrayArray(ctx context.Context, request [][]NilStringFloat32) (*Error, error) // TestRequestStringFloat64 invokes test_request_string_float64 operation. // // POST /test_request_string_float64 - TestRequestStringFloat64(ctx context.Context, request OptFloat64) (*Error, error) + TestRequestStringFloat64(ctx context.Context, request OptStringFloat64) (*Error, error) // TestRequestStringFloat64Array invokes test_request_string_float64_array operation. // // POST /test_request_string_float64_array @@ -2121,15 +2121,15 @@ type Invoker interface { // TestRequestStringFloat64Nullable invokes test_request_string_float64_nullable operation. // // POST /test_request_string_float64_nullable - TestRequestStringFloat64Nullable(ctx context.Context, request OptNilFloat64) (*Error, error) + TestRequestStringFloat64Nullable(ctx context.Context, request OptNilStringFloat64) (*Error, error) // TestRequestStringFloat64NullableArray invokes test_request_string_float64_nullable_array operation. // // POST /test_request_string_float64_nullable_array - TestRequestStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (*Error, error) + TestRequestStringFloat64NullableArray(ctx context.Context, request []NilStringFloat64) (*Error, error) // TestRequestStringFloat64NullableArrayArray invokes test_request_string_float64_nullable_array_array operation. // // POST /test_request_string_float64_nullable_array_array - TestRequestStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (*Error, error) + TestRequestStringFloat64NullableArrayArray(ctx context.Context, request [][]NilStringFloat64) (*Error, error) // TestRequestStringHostname invokes test_request_string_hostname operation. // // POST /test_request_string_hostname @@ -2181,11 +2181,11 @@ type Invoker interface { // TestRequestStringInt invokes test_request_string_int operation. // // POST /test_request_string_int - TestRequestStringInt(ctx context.Context, request OptInt) (*Error, error) + TestRequestStringInt(ctx context.Context, request OptStringInt) (*Error, error) // TestRequestStringInt16 invokes test_request_string_int16 operation. // // POST /test_request_string_int16 - TestRequestStringInt16(ctx context.Context, request OptInt16) (*Error, error) + TestRequestStringInt16(ctx context.Context, request OptStringInt16) (*Error, error) // TestRequestStringInt16Array invokes test_request_string_int16_array operation. // // POST /test_request_string_int16_array @@ -2197,15 +2197,15 @@ type Invoker interface { // TestRequestStringInt16Nullable invokes test_request_string_int16_nullable operation. // // POST /test_request_string_int16_nullable - TestRequestStringInt16Nullable(ctx context.Context, request OptNilInt16) (*Error, error) + TestRequestStringInt16Nullable(ctx context.Context, request OptNilStringInt16) (*Error, error) // TestRequestStringInt16NullableArray invokes test_request_string_int16_nullable_array operation. // // POST /test_request_string_int16_nullable_array - TestRequestStringInt16NullableArray(ctx context.Context, request []NilInt16) (*Error, error) + TestRequestStringInt16NullableArray(ctx context.Context, request []NilStringInt16) (*Error, error) // TestRequestStringInt16NullableArrayArray invokes test_request_string_int16_nullable_array_array operation. // // POST /test_request_string_int16_nullable_array_array - TestRequestStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (*Error, error) + TestRequestStringInt16NullableArrayArray(ctx context.Context, request [][]NilStringInt16) (*Error, error) // TestRequestStringInt32 invokes test_request_string_int32 operation. // // POST /test_request_string_int32 @@ -2257,7 +2257,7 @@ type Invoker interface { // TestRequestStringInt8 invokes test_request_string_int8 operation. // // POST /test_request_string_int8 - TestRequestStringInt8(ctx context.Context, request OptInt8) (*Error, error) + TestRequestStringInt8(ctx context.Context, request OptStringInt8) (*Error, error) // TestRequestStringInt8Array invokes test_request_string_int8_array operation. // // POST /test_request_string_int8_array @@ -2269,15 +2269,15 @@ type Invoker interface { // TestRequestStringInt8Nullable invokes test_request_string_int8_nullable operation. // // POST /test_request_string_int8_nullable - TestRequestStringInt8Nullable(ctx context.Context, request OptNilInt8) (*Error, error) + TestRequestStringInt8Nullable(ctx context.Context, request OptNilStringInt8) (*Error, error) // TestRequestStringInt8NullableArray invokes test_request_string_int8_nullable_array operation. // // POST /test_request_string_int8_nullable_array - TestRequestStringInt8NullableArray(ctx context.Context, request []NilInt8) (*Error, error) + TestRequestStringInt8NullableArray(ctx context.Context, request []NilStringInt8) (*Error, error) // TestRequestStringInt8NullableArrayArray invokes test_request_string_int8_nullable_array_array operation. // // POST /test_request_string_int8_nullable_array_array - TestRequestStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (*Error, error) + TestRequestStringInt8NullableArrayArray(ctx context.Context, request [][]NilStringInt8) (*Error, error) // TestRequestStringIntArray invokes test_request_string_int_array operation. // // POST /test_request_string_int_array @@ -2289,15 +2289,15 @@ type Invoker interface { // TestRequestStringIntNullable invokes test_request_string_int_nullable operation. // // POST /test_request_string_int_nullable - TestRequestStringIntNullable(ctx context.Context, request OptNilInt) (*Error, error) + TestRequestStringIntNullable(ctx context.Context, request OptNilStringInt) (*Error, error) // TestRequestStringIntNullableArray invokes test_request_string_int_nullable_array operation. // // POST /test_request_string_int_nullable_array - TestRequestStringIntNullableArray(ctx context.Context, request []NilInt) (*Error, error) + TestRequestStringIntNullableArray(ctx context.Context, request []NilStringInt) (*Error, error) // TestRequestStringIntNullableArrayArray invokes test_request_string_int_nullable_array_array operation. // // POST /test_request_string_int_nullable_array_array - TestRequestStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (*Error, error) + TestRequestStringIntNullableArrayArray(ctx context.Context, request [][]NilStringInt) (*Error, error) // TestRequestStringIpv4 invokes test_request_string_ipv4 operation. // // POST /test_request_string_ipv4 @@ -2457,11 +2457,11 @@ type Invoker interface { // TestRequestStringUint invokes test_request_string_uint operation. // // POST /test_request_string_uint - TestRequestStringUint(ctx context.Context, request OptUint) (*Error, error) + TestRequestStringUint(ctx context.Context, request OptStringUint) (*Error, error) // TestRequestStringUint16 invokes test_request_string_uint16 operation. // // POST /test_request_string_uint16 - TestRequestStringUint16(ctx context.Context, request OptUint16) (*Error, error) + TestRequestStringUint16(ctx context.Context, request OptStringUint16) (*Error, error) // TestRequestStringUint16Array invokes test_request_string_uint16_array operation. // // POST /test_request_string_uint16_array @@ -2473,19 +2473,19 @@ type Invoker interface { // TestRequestStringUint16Nullable invokes test_request_string_uint16_nullable operation. // // POST /test_request_string_uint16_nullable - TestRequestStringUint16Nullable(ctx context.Context, request OptNilUint16) (*Error, error) + TestRequestStringUint16Nullable(ctx context.Context, request OptNilStringUint16) (*Error, error) // TestRequestStringUint16NullableArray invokes test_request_string_uint16_nullable_array operation. // // POST /test_request_string_uint16_nullable_array - TestRequestStringUint16NullableArray(ctx context.Context, request []NilUint16) (*Error, error) + TestRequestStringUint16NullableArray(ctx context.Context, request []NilStringUint16) (*Error, error) // TestRequestStringUint16NullableArrayArray invokes test_request_string_uint16_nullable_array_array operation. // // POST /test_request_string_uint16_nullable_array_array - TestRequestStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (*Error, error) + TestRequestStringUint16NullableArrayArray(ctx context.Context, request [][]NilStringUint16) (*Error, error) // TestRequestStringUint32 invokes test_request_string_uint32 operation. // // POST /test_request_string_uint32 - TestRequestStringUint32(ctx context.Context, request OptUint32) (*Error, error) + TestRequestStringUint32(ctx context.Context, request OptStringUint32) (*Error, error) // TestRequestStringUint32Array invokes test_request_string_uint32_array operation. // // POST /test_request_string_uint32_array @@ -2497,19 +2497,19 @@ type Invoker interface { // TestRequestStringUint32Nullable invokes test_request_string_uint32_nullable operation. // // POST /test_request_string_uint32_nullable - TestRequestStringUint32Nullable(ctx context.Context, request OptNilUint32) (*Error, error) + TestRequestStringUint32Nullable(ctx context.Context, request OptNilStringUint32) (*Error, error) // TestRequestStringUint32NullableArray invokes test_request_string_uint32_nullable_array operation. // // POST /test_request_string_uint32_nullable_array - TestRequestStringUint32NullableArray(ctx context.Context, request []NilUint32) (*Error, error) + TestRequestStringUint32NullableArray(ctx context.Context, request []NilStringUint32) (*Error, error) // TestRequestStringUint32NullableArrayArray invokes test_request_string_uint32_nullable_array_array operation. // // POST /test_request_string_uint32_nullable_array_array - TestRequestStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (*Error, error) + TestRequestStringUint32NullableArrayArray(ctx context.Context, request [][]NilStringUint32) (*Error, error) // TestRequestStringUint64 invokes test_request_string_uint64 operation. // // POST /test_request_string_uint64 - TestRequestStringUint64(ctx context.Context, request OptUint64) (*Error, error) + TestRequestStringUint64(ctx context.Context, request OptStringUint64) (*Error, error) // TestRequestStringUint64Array invokes test_request_string_uint64_array operation. // // POST /test_request_string_uint64_array @@ -2521,19 +2521,19 @@ type Invoker interface { // TestRequestStringUint64Nullable invokes test_request_string_uint64_nullable operation. // // POST /test_request_string_uint64_nullable - TestRequestStringUint64Nullable(ctx context.Context, request OptNilUint64) (*Error, error) + TestRequestStringUint64Nullable(ctx context.Context, request OptNilStringUint64) (*Error, error) // TestRequestStringUint64NullableArray invokes test_request_string_uint64_nullable_array operation. // // POST /test_request_string_uint64_nullable_array - TestRequestStringUint64NullableArray(ctx context.Context, request []NilUint64) (*Error, error) + TestRequestStringUint64NullableArray(ctx context.Context, request []NilStringUint64) (*Error, error) // TestRequestStringUint64NullableArrayArray invokes test_request_string_uint64_nullable_array_array operation. // // POST /test_request_string_uint64_nullable_array_array - TestRequestStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (*Error, error) + TestRequestStringUint64NullableArrayArray(ctx context.Context, request [][]NilStringUint64) (*Error, error) // TestRequestStringUint8 invokes test_request_string_uint8 operation. // // POST /test_request_string_uint8 - TestRequestStringUint8(ctx context.Context, request OptUint8) (*Error, error) + TestRequestStringUint8(ctx context.Context, request OptStringUint8) (*Error, error) // TestRequestStringUint8Array invokes test_request_string_uint8_array operation. // // POST /test_request_string_uint8_array @@ -2545,15 +2545,15 @@ type Invoker interface { // TestRequestStringUint8Nullable invokes test_request_string_uint8_nullable operation. // // POST /test_request_string_uint8_nullable - TestRequestStringUint8Nullable(ctx context.Context, request OptNilUint8) (*Error, error) + TestRequestStringUint8Nullable(ctx context.Context, request OptNilStringUint8) (*Error, error) // TestRequestStringUint8NullableArray invokes test_request_string_uint8_nullable_array operation. // // POST /test_request_string_uint8_nullable_array - TestRequestStringUint8NullableArray(ctx context.Context, request []NilUint8) (*Error, error) + TestRequestStringUint8NullableArray(ctx context.Context, request []NilStringUint8) (*Error, error) // TestRequestStringUint8NullableArrayArray invokes test_request_string_uint8_nullable_array_array operation. // // POST /test_request_string_uint8_nullable_array_array - TestRequestStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (*Error, error) + TestRequestStringUint8NullableArrayArray(ctx context.Context, request [][]NilStringUint8) (*Error, error) // TestRequestStringUintArray invokes test_request_string_uint_array operation. // // POST /test_request_string_uint_array @@ -2565,15 +2565,15 @@ type Invoker interface { // TestRequestStringUintNullable invokes test_request_string_uint_nullable operation. // // POST /test_request_string_uint_nullable - TestRequestStringUintNullable(ctx context.Context, request OptNilUint) (*Error, error) + TestRequestStringUintNullable(ctx context.Context, request OptNilStringUint) (*Error, error) // TestRequestStringUintNullableArray invokes test_request_string_uint_nullable_array operation. // // POST /test_request_string_uint_nullable_array - TestRequestStringUintNullableArray(ctx context.Context, request []NilUint) (*Error, error) + TestRequestStringUintNullableArray(ctx context.Context, request []NilStringUint) (*Error, error) // TestRequestStringUintNullableArrayArray invokes test_request_string_uint_nullable_array_array operation. // // POST /test_request_string_uint_nullable_array_array - TestRequestStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (*Error, error) + TestRequestStringUintNullableArrayArray(ctx context.Context, request [][]NilStringUint) (*Error, error) // TestRequestStringUnix invokes test_request_string_unix operation. // // POST /test_request_string_unix @@ -3429,15 +3429,15 @@ type Invoker interface { // TestResponseStringFloat32Nullable invokes test_response_string_float32_nullable operation. // // POST /test_response_string_float32_nullable - TestResponseStringFloat32Nullable(ctx context.Context, request string) (NilFloat32, error) + TestResponseStringFloat32Nullable(ctx context.Context, request string) (NilStringFloat32, error) // TestResponseStringFloat32NullableArray invokes test_response_string_float32_nullable_array operation. // // POST /test_response_string_float32_nullable_array - TestResponseStringFloat32NullableArray(ctx context.Context, request string) ([]NilFloat32, error) + TestResponseStringFloat32NullableArray(ctx context.Context, request string) ([]NilStringFloat32, error) // TestResponseStringFloat32NullableArrayArray invokes test_response_string_float32_nullable_array_array operation. // // POST /test_response_string_float32_nullable_array_array - TestResponseStringFloat32NullableArrayArray(ctx context.Context, request string) ([][]NilFloat32, error) + TestResponseStringFloat32NullableArrayArray(ctx context.Context, request string) ([][]NilStringFloat32, error) // TestResponseStringFloat64 invokes test_response_string_float64 operation. // // POST /test_response_string_float64 @@ -3453,15 +3453,15 @@ type Invoker interface { // TestResponseStringFloat64Nullable invokes test_response_string_float64_nullable operation. // // POST /test_response_string_float64_nullable - TestResponseStringFloat64Nullable(ctx context.Context, request string) (NilFloat64, error) + TestResponseStringFloat64Nullable(ctx context.Context, request string) (NilStringFloat64, error) // TestResponseStringFloat64NullableArray invokes test_response_string_float64_nullable_array operation. // // POST /test_response_string_float64_nullable_array - TestResponseStringFloat64NullableArray(ctx context.Context, request string) ([]NilFloat64, error) + TestResponseStringFloat64NullableArray(ctx context.Context, request string) ([]NilStringFloat64, error) // TestResponseStringFloat64NullableArrayArray invokes test_response_string_float64_nullable_array_array operation. // // POST /test_response_string_float64_nullable_array_array - TestResponseStringFloat64NullableArrayArray(ctx context.Context, request string) ([][]NilFloat64, error) + TestResponseStringFloat64NullableArrayArray(ctx context.Context, request string) ([][]NilStringFloat64, error) // TestResponseStringHostname invokes test_response_string_hostname operation. // // POST /test_response_string_hostname @@ -3529,15 +3529,15 @@ type Invoker interface { // TestResponseStringInt16Nullable invokes test_response_string_int16_nullable operation. // // POST /test_response_string_int16_nullable - TestResponseStringInt16Nullable(ctx context.Context, request string) (NilInt16, error) + TestResponseStringInt16Nullable(ctx context.Context, request string) (NilStringInt16, error) // TestResponseStringInt16NullableArray invokes test_response_string_int16_nullable_array operation. // // POST /test_response_string_int16_nullable_array - TestResponseStringInt16NullableArray(ctx context.Context, request string) ([]NilInt16, error) + TestResponseStringInt16NullableArray(ctx context.Context, request string) ([]NilStringInt16, error) // TestResponseStringInt16NullableArrayArray invokes test_response_string_int16_nullable_array_array operation. // // POST /test_response_string_int16_nullable_array_array - TestResponseStringInt16NullableArrayArray(ctx context.Context, request string) ([][]NilInt16, error) + TestResponseStringInt16NullableArrayArray(ctx context.Context, request string) ([][]NilStringInt16, error) // TestResponseStringInt32 invokes test_response_string_int32 operation. // // POST /test_response_string_int32 @@ -3601,15 +3601,15 @@ type Invoker interface { // TestResponseStringInt8Nullable invokes test_response_string_int8_nullable operation. // // POST /test_response_string_int8_nullable - TestResponseStringInt8Nullable(ctx context.Context, request string) (NilInt8, error) + TestResponseStringInt8Nullable(ctx context.Context, request string) (NilStringInt8, error) // TestResponseStringInt8NullableArray invokes test_response_string_int8_nullable_array operation. // // POST /test_response_string_int8_nullable_array - TestResponseStringInt8NullableArray(ctx context.Context, request string) ([]NilInt8, error) + TestResponseStringInt8NullableArray(ctx context.Context, request string) ([]NilStringInt8, error) // TestResponseStringInt8NullableArrayArray invokes test_response_string_int8_nullable_array_array operation. // // POST /test_response_string_int8_nullable_array_array - TestResponseStringInt8NullableArrayArray(ctx context.Context, request string) ([][]NilInt8, error) + TestResponseStringInt8NullableArrayArray(ctx context.Context, request string) ([][]NilStringInt8, error) // TestResponseStringIntArray invokes test_response_string_int_array operation. // // POST /test_response_string_int_array @@ -3621,15 +3621,15 @@ type Invoker interface { // TestResponseStringIntNullable invokes test_response_string_int_nullable operation. // // POST /test_response_string_int_nullable - TestResponseStringIntNullable(ctx context.Context, request string) (NilInt, error) + TestResponseStringIntNullable(ctx context.Context, request string) (NilStringInt, error) // TestResponseStringIntNullableArray invokes test_response_string_int_nullable_array operation. // // POST /test_response_string_int_nullable_array - TestResponseStringIntNullableArray(ctx context.Context, request string) ([]NilInt, error) + TestResponseStringIntNullableArray(ctx context.Context, request string) ([]NilStringInt, error) // TestResponseStringIntNullableArrayArray invokes test_response_string_int_nullable_array_array operation. // // POST /test_response_string_int_nullable_array_array - TestResponseStringIntNullableArrayArray(ctx context.Context, request string) ([][]NilInt, error) + TestResponseStringIntNullableArrayArray(ctx context.Context, request string) ([][]NilStringInt, error) // TestResponseStringIpv4 invokes test_response_string_ipv4 operation. // // POST /test_response_string_ipv4 @@ -3805,15 +3805,15 @@ type Invoker interface { // TestResponseStringUint16Nullable invokes test_response_string_uint16_nullable operation. // // POST /test_response_string_uint16_nullable - TestResponseStringUint16Nullable(ctx context.Context, request string) (NilUint16, error) + TestResponseStringUint16Nullable(ctx context.Context, request string) (NilStringUint16, error) // TestResponseStringUint16NullableArray invokes test_response_string_uint16_nullable_array operation. // // POST /test_response_string_uint16_nullable_array - TestResponseStringUint16NullableArray(ctx context.Context, request string) ([]NilUint16, error) + TestResponseStringUint16NullableArray(ctx context.Context, request string) ([]NilStringUint16, error) // TestResponseStringUint16NullableArrayArray invokes test_response_string_uint16_nullable_array_array operation. // // POST /test_response_string_uint16_nullable_array_array - TestResponseStringUint16NullableArrayArray(ctx context.Context, request string) ([][]NilUint16, error) + TestResponseStringUint16NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint16, error) // TestResponseStringUint32 invokes test_response_string_uint32 operation. // // POST /test_response_string_uint32 @@ -3829,15 +3829,15 @@ type Invoker interface { // TestResponseStringUint32Nullable invokes test_response_string_uint32_nullable operation. // // POST /test_response_string_uint32_nullable - TestResponseStringUint32Nullable(ctx context.Context, request string) (NilUint32, error) + TestResponseStringUint32Nullable(ctx context.Context, request string) (NilStringUint32, error) // TestResponseStringUint32NullableArray invokes test_response_string_uint32_nullable_array operation. // // POST /test_response_string_uint32_nullable_array - TestResponseStringUint32NullableArray(ctx context.Context, request string) ([]NilUint32, error) + TestResponseStringUint32NullableArray(ctx context.Context, request string) ([]NilStringUint32, error) // TestResponseStringUint32NullableArrayArray invokes test_response_string_uint32_nullable_array_array operation. // // POST /test_response_string_uint32_nullable_array_array - TestResponseStringUint32NullableArrayArray(ctx context.Context, request string) ([][]NilUint32, error) + TestResponseStringUint32NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint32, error) // TestResponseStringUint64 invokes test_response_string_uint64 operation. // // POST /test_response_string_uint64 @@ -3853,15 +3853,15 @@ type Invoker interface { // TestResponseStringUint64Nullable invokes test_response_string_uint64_nullable operation. // // POST /test_response_string_uint64_nullable - TestResponseStringUint64Nullable(ctx context.Context, request string) (NilUint64, error) + TestResponseStringUint64Nullable(ctx context.Context, request string) (NilStringUint64, error) // TestResponseStringUint64NullableArray invokes test_response_string_uint64_nullable_array operation. // // POST /test_response_string_uint64_nullable_array - TestResponseStringUint64NullableArray(ctx context.Context, request string) ([]NilUint64, error) + TestResponseStringUint64NullableArray(ctx context.Context, request string) ([]NilStringUint64, error) // TestResponseStringUint64NullableArrayArray invokes test_response_string_uint64_nullable_array_array operation. // // POST /test_response_string_uint64_nullable_array_array - TestResponseStringUint64NullableArrayArray(ctx context.Context, request string) ([][]NilUint64, error) + TestResponseStringUint64NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint64, error) // TestResponseStringUint8 invokes test_response_string_uint8 operation. // // POST /test_response_string_uint8 @@ -3877,15 +3877,15 @@ type Invoker interface { // TestResponseStringUint8Nullable invokes test_response_string_uint8_nullable operation. // // POST /test_response_string_uint8_nullable - TestResponseStringUint8Nullable(ctx context.Context, request string) (NilUint8, error) + TestResponseStringUint8Nullable(ctx context.Context, request string) (NilStringUint8, error) // TestResponseStringUint8NullableArray invokes test_response_string_uint8_nullable_array operation. // // POST /test_response_string_uint8_nullable_array - TestResponseStringUint8NullableArray(ctx context.Context, request string) ([]NilUint8, error) + TestResponseStringUint8NullableArray(ctx context.Context, request string) ([]NilStringUint8, error) // TestResponseStringUint8NullableArrayArray invokes test_response_string_uint8_nullable_array_array operation. // // POST /test_response_string_uint8_nullable_array_array - TestResponseStringUint8NullableArrayArray(ctx context.Context, request string) ([][]NilUint8, error) + TestResponseStringUint8NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint8, error) // TestResponseStringUintArray invokes test_response_string_uint_array operation. // // POST /test_response_string_uint_array @@ -3897,15 +3897,15 @@ type Invoker interface { // TestResponseStringUintNullable invokes test_response_string_uint_nullable operation. // // POST /test_response_string_uint_nullable - TestResponseStringUintNullable(ctx context.Context, request string) (NilUint, error) + TestResponseStringUintNullable(ctx context.Context, request string) (NilStringUint, error) // TestResponseStringUintNullableArray invokes test_response_string_uint_nullable_array operation. // // POST /test_response_string_uint_nullable_array - TestResponseStringUintNullableArray(ctx context.Context, request string) ([]NilUint, error) + TestResponseStringUintNullableArray(ctx context.Context, request string) ([]NilStringUint, error) // TestResponseStringUintNullableArrayArray invokes test_response_string_uint_nullable_array_array operation. // // POST /test_response_string_uint_nullable_array_array - TestResponseStringUintNullableArrayArray(ctx context.Context, request string) ([][]NilUint, error) + TestResponseStringUintNullableArrayArray(ctx context.Context, request string) ([][]NilStringUint, error) // TestResponseStringUnix invokes test_response_string_unix operation. // // POST /test_response_string_unix @@ -29368,12 +29368,12 @@ func (c *Client) sendTestRequestRequiredStringFloat32ArrayArray(ctx context.Cont // TestRequestRequiredStringFloat32Nullable invokes test_request_required_string_float32_nullable operation. // // POST /test_request_required_string_float32_nullable -func (c *Client) TestRequestRequiredStringFloat32Nullable(ctx context.Context, request NilFloat32) (*Error, error) { +func (c *Client) TestRequestRequiredStringFloat32Nullable(ctx context.Context, request NilStringFloat32) (*Error, error) { res, err := c.sendTestRequestRequiredStringFloat32Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringFloat32Nullable(ctx context.Context, request NilFloat32) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringFloat32Nullable(ctx context.Context, request NilStringFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -29441,12 +29441,12 @@ func (c *Client) sendTestRequestRequiredStringFloat32Nullable(ctx context.Contex // TestRequestRequiredStringFloat32NullableArray invokes test_request_required_string_float32_nullable_array operation. // // POST /test_request_required_string_float32_nullable_array -func (c *Client) TestRequestRequiredStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (*Error, error) { +func (c *Client) TestRequestRequiredStringFloat32NullableArray(ctx context.Context, request []NilStringFloat32) (*Error, error) { res, err := c.sendTestRequestRequiredStringFloat32NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringFloat32NullableArray(ctx context.Context, request []NilStringFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -29514,12 +29514,12 @@ func (c *Client) sendTestRequestRequiredStringFloat32NullableArray(ctx context.C // TestRequestRequiredStringFloat32NullableArrayArray invokes test_request_required_string_float32_nullable_array_array operation. // // POST /test_request_required_string_float32_nullable_array_array -func (c *Client) TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (*Error, error) { +func (c *Client) TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, request [][]NilStringFloat32) (*Error, error) { res, err := c.sendTestRequestRequiredStringFloat32NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, request [][]NilStringFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -29806,12 +29806,12 @@ func (c *Client) sendTestRequestRequiredStringFloat64ArrayArray(ctx context.Cont // TestRequestRequiredStringFloat64Nullable invokes test_request_required_string_float64_nullable operation. // // POST /test_request_required_string_float64_nullable -func (c *Client) TestRequestRequiredStringFloat64Nullable(ctx context.Context, request NilFloat64) (*Error, error) { +func (c *Client) TestRequestRequiredStringFloat64Nullable(ctx context.Context, request NilStringFloat64) (*Error, error) { res, err := c.sendTestRequestRequiredStringFloat64Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringFloat64Nullable(ctx context.Context, request NilFloat64) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringFloat64Nullable(ctx context.Context, request NilStringFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -29879,12 +29879,12 @@ func (c *Client) sendTestRequestRequiredStringFloat64Nullable(ctx context.Contex // TestRequestRequiredStringFloat64NullableArray invokes test_request_required_string_float64_nullable_array operation. // // POST /test_request_required_string_float64_nullable_array -func (c *Client) TestRequestRequiredStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (*Error, error) { +func (c *Client) TestRequestRequiredStringFloat64NullableArray(ctx context.Context, request []NilStringFloat64) (*Error, error) { res, err := c.sendTestRequestRequiredStringFloat64NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringFloat64NullableArray(ctx context.Context, request []NilStringFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -29952,12 +29952,12 @@ func (c *Client) sendTestRequestRequiredStringFloat64NullableArray(ctx context.C // TestRequestRequiredStringFloat64NullableArrayArray invokes test_request_required_string_float64_nullable_array_array operation. // // POST /test_request_required_string_float64_nullable_array_array -func (c *Client) TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (*Error, error) { +func (c *Client) TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, request [][]NilStringFloat64) (*Error, error) { res, err := c.sendTestRequestRequiredStringFloat64NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, request [][]NilStringFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -31193,12 +31193,12 @@ func (c *Client) sendTestRequestRequiredStringInt16ArrayArray(ctx context.Contex // TestRequestRequiredStringInt16Nullable invokes test_request_required_string_int16_nullable operation. // // POST /test_request_required_string_int16_nullable -func (c *Client) TestRequestRequiredStringInt16Nullable(ctx context.Context, request NilInt16) (*Error, error) { +func (c *Client) TestRequestRequiredStringInt16Nullable(ctx context.Context, request NilStringInt16) (*Error, error) { res, err := c.sendTestRequestRequiredStringInt16Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringInt16Nullable(ctx context.Context, request NilInt16) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringInt16Nullable(ctx context.Context, request NilStringInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -31266,12 +31266,12 @@ func (c *Client) sendTestRequestRequiredStringInt16Nullable(ctx context.Context, // TestRequestRequiredStringInt16NullableArray invokes test_request_required_string_int16_nullable_array operation. // // POST /test_request_required_string_int16_nullable_array -func (c *Client) TestRequestRequiredStringInt16NullableArray(ctx context.Context, request []NilInt16) (*Error, error) { +func (c *Client) TestRequestRequiredStringInt16NullableArray(ctx context.Context, request []NilStringInt16) (*Error, error) { res, err := c.sendTestRequestRequiredStringInt16NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringInt16NullableArray(ctx context.Context, request []NilInt16) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringInt16NullableArray(ctx context.Context, request []NilStringInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -31339,12 +31339,12 @@ func (c *Client) sendTestRequestRequiredStringInt16NullableArray(ctx context.Con // TestRequestRequiredStringInt16NullableArrayArray invokes test_request_required_string_int16_nullable_array_array operation. // // POST /test_request_required_string_int16_nullable_array_array -func (c *Client) TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (*Error, error) { +func (c *Client) TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, request [][]NilStringInt16) (*Error, error) { res, err := c.sendTestRequestRequiredStringInt16NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, request [][]NilStringInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -32507,12 +32507,12 @@ func (c *Client) sendTestRequestRequiredStringInt8ArrayArray(ctx context.Context // TestRequestRequiredStringInt8Nullable invokes test_request_required_string_int8_nullable operation. // // POST /test_request_required_string_int8_nullable -func (c *Client) TestRequestRequiredStringInt8Nullable(ctx context.Context, request NilInt8) (*Error, error) { +func (c *Client) TestRequestRequiredStringInt8Nullable(ctx context.Context, request NilStringInt8) (*Error, error) { res, err := c.sendTestRequestRequiredStringInt8Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringInt8Nullable(ctx context.Context, request NilInt8) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringInt8Nullable(ctx context.Context, request NilStringInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -32580,12 +32580,12 @@ func (c *Client) sendTestRequestRequiredStringInt8Nullable(ctx context.Context, // TestRequestRequiredStringInt8NullableArray invokes test_request_required_string_int8_nullable_array operation. // // POST /test_request_required_string_int8_nullable_array -func (c *Client) TestRequestRequiredStringInt8NullableArray(ctx context.Context, request []NilInt8) (*Error, error) { +func (c *Client) TestRequestRequiredStringInt8NullableArray(ctx context.Context, request []NilStringInt8) (*Error, error) { res, err := c.sendTestRequestRequiredStringInt8NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringInt8NullableArray(ctx context.Context, request []NilInt8) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringInt8NullableArray(ctx context.Context, request []NilStringInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -32653,12 +32653,12 @@ func (c *Client) sendTestRequestRequiredStringInt8NullableArray(ctx context.Cont // TestRequestRequiredStringInt8NullableArrayArray invokes test_request_required_string_int8_nullable_array_array operation. // // POST /test_request_required_string_int8_nullable_array_array -func (c *Client) TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (*Error, error) { +func (c *Client) TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, request [][]NilStringInt8) (*Error, error) { res, err := c.sendTestRequestRequiredStringInt8NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, request [][]NilStringInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -32872,12 +32872,12 @@ func (c *Client) sendTestRequestRequiredStringIntArrayArray(ctx context.Context, // TestRequestRequiredStringIntNullable invokes test_request_required_string_int_nullable operation. // // POST /test_request_required_string_int_nullable -func (c *Client) TestRequestRequiredStringIntNullable(ctx context.Context, request NilInt) (*Error, error) { +func (c *Client) TestRequestRequiredStringIntNullable(ctx context.Context, request NilStringInt) (*Error, error) { res, err := c.sendTestRequestRequiredStringIntNullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringIntNullable(ctx context.Context, request NilInt) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringIntNullable(ctx context.Context, request NilStringInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -32945,12 +32945,12 @@ func (c *Client) sendTestRequestRequiredStringIntNullable(ctx context.Context, r // TestRequestRequiredStringIntNullableArray invokes test_request_required_string_int_nullable_array operation. // // POST /test_request_required_string_int_nullable_array -func (c *Client) TestRequestRequiredStringIntNullableArray(ctx context.Context, request []NilInt) (*Error, error) { +func (c *Client) TestRequestRequiredStringIntNullableArray(ctx context.Context, request []NilStringInt) (*Error, error) { res, err := c.sendTestRequestRequiredStringIntNullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringIntNullableArray(ctx context.Context, request []NilInt) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringIntNullableArray(ctx context.Context, request []NilStringInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -33018,12 +33018,12 @@ func (c *Client) sendTestRequestRequiredStringIntNullableArray(ctx context.Conte // TestRequestRequiredStringIntNullableArrayArray invokes test_request_required_string_int_nullable_array_array operation. // // POST /test_request_required_string_int_nullable_array_array -func (c *Client) TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (*Error, error) { +func (c *Client) TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, request [][]NilStringInt) (*Error, error) { res, err := c.sendTestRequestRequiredStringIntNullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringIntNullableArrayArray(ctx context.Context, request [][]NilStringInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -36230,12 +36230,12 @@ func (c *Client) sendTestRequestRequiredStringUint16ArrayArray(ctx context.Conte // TestRequestRequiredStringUint16Nullable invokes test_request_required_string_uint16_nullable operation. // // POST /test_request_required_string_uint16_nullable -func (c *Client) TestRequestRequiredStringUint16Nullable(ctx context.Context, request NilUint16) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint16Nullable(ctx context.Context, request NilStringUint16) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint16Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint16Nullable(ctx context.Context, request NilUint16) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint16Nullable(ctx context.Context, request NilStringUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -36303,12 +36303,12 @@ func (c *Client) sendTestRequestRequiredStringUint16Nullable(ctx context.Context // TestRequestRequiredStringUint16NullableArray invokes test_request_required_string_uint16_nullable_array operation. // // POST /test_request_required_string_uint16_nullable_array -func (c *Client) TestRequestRequiredStringUint16NullableArray(ctx context.Context, request []NilUint16) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint16NullableArray(ctx context.Context, request []NilStringUint16) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint16NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint16NullableArray(ctx context.Context, request []NilUint16) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint16NullableArray(ctx context.Context, request []NilStringUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -36376,12 +36376,12 @@ func (c *Client) sendTestRequestRequiredStringUint16NullableArray(ctx context.Co // TestRequestRequiredStringUint16NullableArrayArray invokes test_request_required_string_uint16_nullable_array_array operation. // // POST /test_request_required_string_uint16_nullable_array_array -func (c *Client) TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, request [][]NilStringUint16) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint16NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, request [][]NilStringUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -36668,12 +36668,12 @@ func (c *Client) sendTestRequestRequiredStringUint32ArrayArray(ctx context.Conte // TestRequestRequiredStringUint32Nullable invokes test_request_required_string_uint32_nullable operation. // // POST /test_request_required_string_uint32_nullable -func (c *Client) TestRequestRequiredStringUint32Nullable(ctx context.Context, request NilUint32) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint32Nullable(ctx context.Context, request NilStringUint32) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint32Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint32Nullable(ctx context.Context, request NilUint32) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint32Nullable(ctx context.Context, request NilStringUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -36741,12 +36741,12 @@ func (c *Client) sendTestRequestRequiredStringUint32Nullable(ctx context.Context // TestRequestRequiredStringUint32NullableArray invokes test_request_required_string_uint32_nullable_array operation. // // POST /test_request_required_string_uint32_nullable_array -func (c *Client) TestRequestRequiredStringUint32NullableArray(ctx context.Context, request []NilUint32) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint32NullableArray(ctx context.Context, request []NilStringUint32) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint32NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint32NullableArray(ctx context.Context, request []NilUint32) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint32NullableArray(ctx context.Context, request []NilStringUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -36814,12 +36814,12 @@ func (c *Client) sendTestRequestRequiredStringUint32NullableArray(ctx context.Co // TestRequestRequiredStringUint32NullableArrayArray invokes test_request_required_string_uint32_nullable_array_array operation. // // POST /test_request_required_string_uint32_nullable_array_array -func (c *Client) TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, request [][]NilStringUint32) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint32NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, request [][]NilStringUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -37106,12 +37106,12 @@ func (c *Client) sendTestRequestRequiredStringUint64ArrayArray(ctx context.Conte // TestRequestRequiredStringUint64Nullable invokes test_request_required_string_uint64_nullable operation. // // POST /test_request_required_string_uint64_nullable -func (c *Client) TestRequestRequiredStringUint64Nullable(ctx context.Context, request NilUint64) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint64Nullable(ctx context.Context, request NilStringUint64) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint64Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint64Nullable(ctx context.Context, request NilUint64) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint64Nullable(ctx context.Context, request NilStringUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -37179,12 +37179,12 @@ func (c *Client) sendTestRequestRequiredStringUint64Nullable(ctx context.Context // TestRequestRequiredStringUint64NullableArray invokes test_request_required_string_uint64_nullable_array operation. // // POST /test_request_required_string_uint64_nullable_array -func (c *Client) TestRequestRequiredStringUint64NullableArray(ctx context.Context, request []NilUint64) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint64NullableArray(ctx context.Context, request []NilStringUint64) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint64NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint64NullableArray(ctx context.Context, request []NilUint64) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint64NullableArray(ctx context.Context, request []NilStringUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -37252,12 +37252,12 @@ func (c *Client) sendTestRequestRequiredStringUint64NullableArray(ctx context.Co // TestRequestRequiredStringUint64NullableArrayArray invokes test_request_required_string_uint64_nullable_array_array operation. // // POST /test_request_required_string_uint64_nullable_array_array -func (c *Client) TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, request [][]NilStringUint64) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint64NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, request [][]NilStringUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -37544,12 +37544,12 @@ func (c *Client) sendTestRequestRequiredStringUint8ArrayArray(ctx context.Contex // TestRequestRequiredStringUint8Nullable invokes test_request_required_string_uint8_nullable operation. // // POST /test_request_required_string_uint8_nullable -func (c *Client) TestRequestRequiredStringUint8Nullable(ctx context.Context, request NilUint8) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint8Nullable(ctx context.Context, request NilStringUint8) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint8Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint8Nullable(ctx context.Context, request NilUint8) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint8Nullable(ctx context.Context, request NilStringUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -37617,12 +37617,12 @@ func (c *Client) sendTestRequestRequiredStringUint8Nullable(ctx context.Context, // TestRequestRequiredStringUint8NullableArray invokes test_request_required_string_uint8_nullable_array operation. // // POST /test_request_required_string_uint8_nullable_array -func (c *Client) TestRequestRequiredStringUint8NullableArray(ctx context.Context, request []NilUint8) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint8NullableArray(ctx context.Context, request []NilStringUint8) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint8NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint8NullableArray(ctx context.Context, request []NilUint8) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint8NullableArray(ctx context.Context, request []NilStringUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -37690,12 +37690,12 @@ func (c *Client) sendTestRequestRequiredStringUint8NullableArray(ctx context.Con // TestRequestRequiredStringUint8NullableArrayArray invokes test_request_required_string_uint8_nullable_array_array operation. // // POST /test_request_required_string_uint8_nullable_array_array -func (c *Client) TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (*Error, error) { +func (c *Client) TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, request [][]NilStringUint8) (*Error, error) { res, err := c.sendTestRequestRequiredStringUint8NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, request [][]NilStringUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -37909,12 +37909,12 @@ func (c *Client) sendTestRequestRequiredStringUintArrayArray(ctx context.Context // TestRequestRequiredStringUintNullable invokes test_request_required_string_uint_nullable operation. // // POST /test_request_required_string_uint_nullable -func (c *Client) TestRequestRequiredStringUintNullable(ctx context.Context, request NilUint) (*Error, error) { +func (c *Client) TestRequestRequiredStringUintNullable(ctx context.Context, request NilStringUint) (*Error, error) { res, err := c.sendTestRequestRequiredStringUintNullable(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUintNullable(ctx context.Context, request NilUint) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUintNullable(ctx context.Context, request NilStringUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -37982,12 +37982,12 @@ func (c *Client) sendTestRequestRequiredStringUintNullable(ctx context.Context, // TestRequestRequiredStringUintNullableArray invokes test_request_required_string_uint_nullable_array operation. // // POST /test_request_required_string_uint_nullable_array -func (c *Client) TestRequestRequiredStringUintNullableArray(ctx context.Context, request []NilUint) (*Error, error) { +func (c *Client) TestRequestRequiredStringUintNullableArray(ctx context.Context, request []NilStringUint) (*Error, error) { res, err := c.sendTestRequestRequiredStringUintNullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUintNullableArray(ctx context.Context, request []NilUint) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUintNullableArray(ctx context.Context, request []NilStringUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -38055,12 +38055,12 @@ func (c *Client) sendTestRequestRequiredStringUintNullableArray(ctx context.Cont // TestRequestRequiredStringUintNullableArrayArray invokes test_request_required_string_uint_nullable_array_array operation. // // POST /test_request_required_string_uint_nullable_array_array -func (c *Client) TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (*Error, error) { +func (c *Client) TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, request [][]NilStringUint) (*Error, error) { res, err := c.sendTestRequestRequiredStringUintNullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestRequiredStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (res *Error, err error) { +func (c *Client) sendTestRequestRequiredStringUintNullableArrayArray(ctx context.Context, request [][]NilStringUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -43603,12 +43603,12 @@ func (c *Client) sendTestRequestStringEmailNullableArrayArray(ctx context.Contex // TestRequestStringFloat32 invokes test_request_string_float32 operation. // // POST /test_request_string_float32 -func (c *Client) TestRequestStringFloat32(ctx context.Context, request OptFloat32) (*Error, error) { +func (c *Client) TestRequestStringFloat32(ctx context.Context, request OptStringFloat32) (*Error, error) { res, err := c.sendTestRequestStringFloat32(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat32(ctx context.Context, request OptFloat32) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat32(ctx context.Context, request OptStringFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32"), semconv.HTTPMethodKey.String("POST"), @@ -43822,12 +43822,12 @@ func (c *Client) sendTestRequestStringFloat32ArrayArray(ctx context.Context, req // TestRequestStringFloat32Nullable invokes test_request_string_float32_nullable operation. // // POST /test_request_string_float32_nullable -func (c *Client) TestRequestStringFloat32Nullable(ctx context.Context, request OptNilFloat32) (*Error, error) { +func (c *Client) TestRequestStringFloat32Nullable(ctx context.Context, request OptNilStringFloat32) (*Error, error) { res, err := c.sendTestRequestStringFloat32Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat32Nullable(ctx context.Context, request OptNilFloat32) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat32Nullable(ctx context.Context, request OptNilStringFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -43895,12 +43895,12 @@ func (c *Client) sendTestRequestStringFloat32Nullable(ctx context.Context, reque // TestRequestStringFloat32NullableArray invokes test_request_string_float32_nullable_array operation. // // POST /test_request_string_float32_nullable_array -func (c *Client) TestRequestStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (*Error, error) { +func (c *Client) TestRequestStringFloat32NullableArray(ctx context.Context, request []NilStringFloat32) (*Error, error) { res, err := c.sendTestRequestStringFloat32NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat32NullableArray(ctx context.Context, request []NilStringFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -43968,12 +43968,12 @@ func (c *Client) sendTestRequestStringFloat32NullableArray(ctx context.Context, // TestRequestStringFloat32NullableArrayArray invokes test_request_string_float32_nullable_array_array operation. // // POST /test_request_string_float32_nullable_array_array -func (c *Client) TestRequestStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (*Error, error) { +func (c *Client) TestRequestStringFloat32NullableArrayArray(ctx context.Context, request [][]NilStringFloat32) (*Error, error) { res, err := c.sendTestRequestStringFloat32NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat32NullableArrayArray(ctx context.Context, request [][]NilStringFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -44041,12 +44041,12 @@ func (c *Client) sendTestRequestStringFloat32NullableArrayArray(ctx context.Cont // TestRequestStringFloat64 invokes test_request_string_float64 operation. // // POST /test_request_string_float64 -func (c *Client) TestRequestStringFloat64(ctx context.Context, request OptFloat64) (*Error, error) { +func (c *Client) TestRequestStringFloat64(ctx context.Context, request OptStringFloat64) (*Error, error) { res, err := c.sendTestRequestStringFloat64(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat64(ctx context.Context, request OptFloat64) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat64(ctx context.Context, request OptStringFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64"), semconv.HTTPMethodKey.String("POST"), @@ -44260,12 +44260,12 @@ func (c *Client) sendTestRequestStringFloat64ArrayArray(ctx context.Context, req // TestRequestStringFloat64Nullable invokes test_request_string_float64_nullable operation. // // POST /test_request_string_float64_nullable -func (c *Client) TestRequestStringFloat64Nullable(ctx context.Context, request OptNilFloat64) (*Error, error) { +func (c *Client) TestRequestStringFloat64Nullable(ctx context.Context, request OptNilStringFloat64) (*Error, error) { res, err := c.sendTestRequestStringFloat64Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat64Nullable(ctx context.Context, request OptNilFloat64) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat64Nullable(ctx context.Context, request OptNilStringFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -44333,12 +44333,12 @@ func (c *Client) sendTestRequestStringFloat64Nullable(ctx context.Context, reque // TestRequestStringFloat64NullableArray invokes test_request_string_float64_nullable_array operation. // // POST /test_request_string_float64_nullable_array -func (c *Client) TestRequestStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (*Error, error) { +func (c *Client) TestRequestStringFloat64NullableArray(ctx context.Context, request []NilStringFloat64) (*Error, error) { res, err := c.sendTestRequestStringFloat64NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat64NullableArray(ctx context.Context, request []NilStringFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -44406,12 +44406,12 @@ func (c *Client) sendTestRequestStringFloat64NullableArray(ctx context.Context, // TestRequestStringFloat64NullableArrayArray invokes test_request_string_float64_nullable_array_array operation. // // POST /test_request_string_float64_nullable_array_array -func (c *Client) TestRequestStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (*Error, error) { +func (c *Client) TestRequestStringFloat64NullableArrayArray(ctx context.Context, request [][]NilStringFloat64) (*Error, error) { res, err := c.sendTestRequestStringFloat64NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { +func (c *Client) sendTestRequestStringFloat64NullableArrayArray(ctx context.Context, request [][]NilStringFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -45355,12 +45355,12 @@ func (c *Client) sendTestRequestStringIPNullableArrayArray(ctx context.Context, // TestRequestStringInt invokes test_request_string_int operation. // // POST /test_request_string_int -func (c *Client) TestRequestStringInt(ctx context.Context, request OptInt) (*Error, error) { +func (c *Client) TestRequestStringInt(ctx context.Context, request OptStringInt) (*Error, error) { res, err := c.sendTestRequestStringInt(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt(ctx context.Context, request OptInt) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt(ctx context.Context, request OptStringInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int"), semconv.HTTPMethodKey.String("POST"), @@ -45428,12 +45428,12 @@ func (c *Client) sendTestRequestStringInt(ctx context.Context, request OptInt) ( // TestRequestStringInt16 invokes test_request_string_int16 operation. // // POST /test_request_string_int16 -func (c *Client) TestRequestStringInt16(ctx context.Context, request OptInt16) (*Error, error) { +func (c *Client) TestRequestStringInt16(ctx context.Context, request OptStringInt16) (*Error, error) { res, err := c.sendTestRequestStringInt16(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt16(ctx context.Context, request OptInt16) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt16(ctx context.Context, request OptStringInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16"), semconv.HTTPMethodKey.String("POST"), @@ -45647,12 +45647,12 @@ func (c *Client) sendTestRequestStringInt16ArrayArray(ctx context.Context, reque // TestRequestStringInt16Nullable invokes test_request_string_int16_nullable operation. // // POST /test_request_string_int16_nullable -func (c *Client) TestRequestStringInt16Nullable(ctx context.Context, request OptNilInt16) (*Error, error) { +func (c *Client) TestRequestStringInt16Nullable(ctx context.Context, request OptNilStringInt16) (*Error, error) { res, err := c.sendTestRequestStringInt16Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt16Nullable(ctx context.Context, request OptNilInt16) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt16Nullable(ctx context.Context, request OptNilStringInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -45720,12 +45720,12 @@ func (c *Client) sendTestRequestStringInt16Nullable(ctx context.Context, request // TestRequestStringInt16NullableArray invokes test_request_string_int16_nullable_array operation. // // POST /test_request_string_int16_nullable_array -func (c *Client) TestRequestStringInt16NullableArray(ctx context.Context, request []NilInt16) (*Error, error) { +func (c *Client) TestRequestStringInt16NullableArray(ctx context.Context, request []NilStringInt16) (*Error, error) { res, err := c.sendTestRequestStringInt16NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt16NullableArray(ctx context.Context, request []NilInt16) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt16NullableArray(ctx context.Context, request []NilStringInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -45793,12 +45793,12 @@ func (c *Client) sendTestRequestStringInt16NullableArray(ctx context.Context, re // TestRequestStringInt16NullableArrayArray invokes test_request_string_int16_nullable_array_array operation. // // POST /test_request_string_int16_nullable_array_array -func (c *Client) TestRequestStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (*Error, error) { +func (c *Client) TestRequestStringInt16NullableArrayArray(ctx context.Context, request [][]NilStringInt16) (*Error, error) { res, err := c.sendTestRequestStringInt16NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt16NullableArrayArray(ctx context.Context, request [][]NilStringInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -46742,12 +46742,12 @@ func (c *Client) sendTestRequestStringInt64NullableArrayArray(ctx context.Contex // TestRequestStringInt8 invokes test_request_string_int8 operation. // // POST /test_request_string_int8 -func (c *Client) TestRequestStringInt8(ctx context.Context, request OptInt8) (*Error, error) { +func (c *Client) TestRequestStringInt8(ctx context.Context, request OptStringInt8) (*Error, error) { res, err := c.sendTestRequestStringInt8(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt8(ctx context.Context, request OptInt8) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt8(ctx context.Context, request OptStringInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8"), semconv.HTTPMethodKey.String("POST"), @@ -46961,12 +46961,12 @@ func (c *Client) sendTestRequestStringInt8ArrayArray(ctx context.Context, reques // TestRequestStringInt8Nullable invokes test_request_string_int8_nullable operation. // // POST /test_request_string_int8_nullable -func (c *Client) TestRequestStringInt8Nullable(ctx context.Context, request OptNilInt8) (*Error, error) { +func (c *Client) TestRequestStringInt8Nullable(ctx context.Context, request OptNilStringInt8) (*Error, error) { res, err := c.sendTestRequestStringInt8Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt8Nullable(ctx context.Context, request OptNilInt8) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt8Nullable(ctx context.Context, request OptNilStringInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -47034,12 +47034,12 @@ func (c *Client) sendTestRequestStringInt8Nullable(ctx context.Context, request // TestRequestStringInt8NullableArray invokes test_request_string_int8_nullable_array operation. // // POST /test_request_string_int8_nullable_array -func (c *Client) TestRequestStringInt8NullableArray(ctx context.Context, request []NilInt8) (*Error, error) { +func (c *Client) TestRequestStringInt8NullableArray(ctx context.Context, request []NilStringInt8) (*Error, error) { res, err := c.sendTestRequestStringInt8NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt8NullableArray(ctx context.Context, request []NilInt8) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt8NullableArray(ctx context.Context, request []NilStringInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -47107,12 +47107,12 @@ func (c *Client) sendTestRequestStringInt8NullableArray(ctx context.Context, req // TestRequestStringInt8NullableArrayArray invokes test_request_string_int8_nullable_array_array operation. // // POST /test_request_string_int8_nullable_array_array -func (c *Client) TestRequestStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (*Error, error) { +func (c *Client) TestRequestStringInt8NullableArrayArray(ctx context.Context, request [][]NilStringInt8) (*Error, error) { res, err := c.sendTestRequestStringInt8NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (res *Error, err error) { +func (c *Client) sendTestRequestStringInt8NullableArrayArray(ctx context.Context, request [][]NilStringInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -47326,12 +47326,12 @@ func (c *Client) sendTestRequestStringIntArrayArray(ctx context.Context, request // TestRequestStringIntNullable invokes test_request_string_int_nullable operation. // // POST /test_request_string_int_nullable -func (c *Client) TestRequestStringIntNullable(ctx context.Context, request OptNilInt) (*Error, error) { +func (c *Client) TestRequestStringIntNullable(ctx context.Context, request OptNilStringInt) (*Error, error) { res, err := c.sendTestRequestStringIntNullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringIntNullable(ctx context.Context, request OptNilInt) (res *Error, err error) { +func (c *Client) sendTestRequestStringIntNullable(ctx context.Context, request OptNilStringInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -47399,12 +47399,12 @@ func (c *Client) sendTestRequestStringIntNullable(ctx context.Context, request O // TestRequestStringIntNullableArray invokes test_request_string_int_nullable_array operation. // // POST /test_request_string_int_nullable_array -func (c *Client) TestRequestStringIntNullableArray(ctx context.Context, request []NilInt) (*Error, error) { +func (c *Client) TestRequestStringIntNullableArray(ctx context.Context, request []NilStringInt) (*Error, error) { res, err := c.sendTestRequestStringIntNullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringIntNullableArray(ctx context.Context, request []NilInt) (res *Error, err error) { +func (c *Client) sendTestRequestStringIntNullableArray(ctx context.Context, request []NilStringInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -47472,12 +47472,12 @@ func (c *Client) sendTestRequestStringIntNullableArray(ctx context.Context, requ // TestRequestStringIntNullableArrayArray invokes test_request_string_int_nullable_array_array operation. // // POST /test_request_string_int_nullable_array_array -func (c *Client) TestRequestStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (*Error, error) { +func (c *Client) TestRequestStringIntNullableArrayArray(ctx context.Context, request [][]NilStringInt) (*Error, error) { res, err := c.sendTestRequestStringIntNullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (res *Error, err error) { +func (c *Client) sendTestRequestStringIntNullableArrayArray(ctx context.Context, request [][]NilStringInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -50392,12 +50392,12 @@ func (c *Client) sendTestRequestStringUUIDNullableArrayArray(ctx context.Context // TestRequestStringUint invokes test_request_string_uint operation. // // POST /test_request_string_uint -func (c *Client) TestRequestStringUint(ctx context.Context, request OptUint) (*Error, error) { +func (c *Client) TestRequestStringUint(ctx context.Context, request OptStringUint) (*Error, error) { res, err := c.sendTestRequestStringUint(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint(ctx context.Context, request OptUint) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint(ctx context.Context, request OptStringUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint"), semconv.HTTPMethodKey.String("POST"), @@ -50465,12 +50465,12 @@ func (c *Client) sendTestRequestStringUint(ctx context.Context, request OptUint) // TestRequestStringUint16 invokes test_request_string_uint16 operation. // // POST /test_request_string_uint16 -func (c *Client) TestRequestStringUint16(ctx context.Context, request OptUint16) (*Error, error) { +func (c *Client) TestRequestStringUint16(ctx context.Context, request OptStringUint16) (*Error, error) { res, err := c.sendTestRequestStringUint16(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint16(ctx context.Context, request OptUint16) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint16(ctx context.Context, request OptStringUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16"), semconv.HTTPMethodKey.String("POST"), @@ -50684,12 +50684,12 @@ func (c *Client) sendTestRequestStringUint16ArrayArray(ctx context.Context, requ // TestRequestStringUint16Nullable invokes test_request_string_uint16_nullable operation. // // POST /test_request_string_uint16_nullable -func (c *Client) TestRequestStringUint16Nullable(ctx context.Context, request OptNilUint16) (*Error, error) { +func (c *Client) TestRequestStringUint16Nullable(ctx context.Context, request OptNilStringUint16) (*Error, error) { res, err := c.sendTestRequestStringUint16Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint16Nullable(ctx context.Context, request OptNilUint16) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint16Nullable(ctx context.Context, request OptNilStringUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -50757,12 +50757,12 @@ func (c *Client) sendTestRequestStringUint16Nullable(ctx context.Context, reques // TestRequestStringUint16NullableArray invokes test_request_string_uint16_nullable_array operation. // // POST /test_request_string_uint16_nullable_array -func (c *Client) TestRequestStringUint16NullableArray(ctx context.Context, request []NilUint16) (*Error, error) { +func (c *Client) TestRequestStringUint16NullableArray(ctx context.Context, request []NilStringUint16) (*Error, error) { res, err := c.sendTestRequestStringUint16NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint16NullableArray(ctx context.Context, request []NilUint16) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint16NullableArray(ctx context.Context, request []NilStringUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -50830,12 +50830,12 @@ func (c *Client) sendTestRequestStringUint16NullableArray(ctx context.Context, r // TestRequestStringUint16NullableArrayArray invokes test_request_string_uint16_nullable_array_array operation. // // POST /test_request_string_uint16_nullable_array_array -func (c *Client) TestRequestStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (*Error, error) { +func (c *Client) TestRequestStringUint16NullableArrayArray(ctx context.Context, request [][]NilStringUint16) (*Error, error) { res, err := c.sendTestRequestStringUint16NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint16NullableArrayArray(ctx context.Context, request [][]NilStringUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -50903,12 +50903,12 @@ func (c *Client) sendTestRequestStringUint16NullableArrayArray(ctx context.Conte // TestRequestStringUint32 invokes test_request_string_uint32 operation. // // POST /test_request_string_uint32 -func (c *Client) TestRequestStringUint32(ctx context.Context, request OptUint32) (*Error, error) { +func (c *Client) TestRequestStringUint32(ctx context.Context, request OptStringUint32) (*Error, error) { res, err := c.sendTestRequestStringUint32(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint32(ctx context.Context, request OptUint32) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint32(ctx context.Context, request OptStringUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32"), semconv.HTTPMethodKey.String("POST"), @@ -51122,12 +51122,12 @@ func (c *Client) sendTestRequestStringUint32ArrayArray(ctx context.Context, requ // TestRequestStringUint32Nullable invokes test_request_string_uint32_nullable operation. // // POST /test_request_string_uint32_nullable -func (c *Client) TestRequestStringUint32Nullable(ctx context.Context, request OptNilUint32) (*Error, error) { +func (c *Client) TestRequestStringUint32Nullable(ctx context.Context, request OptNilStringUint32) (*Error, error) { res, err := c.sendTestRequestStringUint32Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint32Nullable(ctx context.Context, request OptNilUint32) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint32Nullable(ctx context.Context, request OptNilStringUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -51195,12 +51195,12 @@ func (c *Client) sendTestRequestStringUint32Nullable(ctx context.Context, reques // TestRequestStringUint32NullableArray invokes test_request_string_uint32_nullable_array operation. // // POST /test_request_string_uint32_nullable_array -func (c *Client) TestRequestStringUint32NullableArray(ctx context.Context, request []NilUint32) (*Error, error) { +func (c *Client) TestRequestStringUint32NullableArray(ctx context.Context, request []NilStringUint32) (*Error, error) { res, err := c.sendTestRequestStringUint32NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint32NullableArray(ctx context.Context, request []NilUint32) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint32NullableArray(ctx context.Context, request []NilStringUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -51268,12 +51268,12 @@ func (c *Client) sendTestRequestStringUint32NullableArray(ctx context.Context, r // TestRequestStringUint32NullableArrayArray invokes test_request_string_uint32_nullable_array_array operation. // // POST /test_request_string_uint32_nullable_array_array -func (c *Client) TestRequestStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (*Error, error) { +func (c *Client) TestRequestStringUint32NullableArrayArray(ctx context.Context, request [][]NilStringUint32) (*Error, error) { res, err := c.sendTestRequestStringUint32NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint32NullableArrayArray(ctx context.Context, request [][]NilStringUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -51341,12 +51341,12 @@ func (c *Client) sendTestRequestStringUint32NullableArrayArray(ctx context.Conte // TestRequestStringUint64 invokes test_request_string_uint64 operation. // // POST /test_request_string_uint64 -func (c *Client) TestRequestStringUint64(ctx context.Context, request OptUint64) (*Error, error) { +func (c *Client) TestRequestStringUint64(ctx context.Context, request OptStringUint64) (*Error, error) { res, err := c.sendTestRequestStringUint64(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint64(ctx context.Context, request OptUint64) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint64(ctx context.Context, request OptStringUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64"), semconv.HTTPMethodKey.String("POST"), @@ -51560,12 +51560,12 @@ func (c *Client) sendTestRequestStringUint64ArrayArray(ctx context.Context, requ // TestRequestStringUint64Nullable invokes test_request_string_uint64_nullable operation. // // POST /test_request_string_uint64_nullable -func (c *Client) TestRequestStringUint64Nullable(ctx context.Context, request OptNilUint64) (*Error, error) { +func (c *Client) TestRequestStringUint64Nullable(ctx context.Context, request OptNilStringUint64) (*Error, error) { res, err := c.sendTestRequestStringUint64Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint64Nullable(ctx context.Context, request OptNilUint64) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint64Nullable(ctx context.Context, request OptNilStringUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -51633,12 +51633,12 @@ func (c *Client) sendTestRequestStringUint64Nullable(ctx context.Context, reques // TestRequestStringUint64NullableArray invokes test_request_string_uint64_nullable_array operation. // // POST /test_request_string_uint64_nullable_array -func (c *Client) TestRequestStringUint64NullableArray(ctx context.Context, request []NilUint64) (*Error, error) { +func (c *Client) TestRequestStringUint64NullableArray(ctx context.Context, request []NilStringUint64) (*Error, error) { res, err := c.sendTestRequestStringUint64NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint64NullableArray(ctx context.Context, request []NilUint64) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint64NullableArray(ctx context.Context, request []NilStringUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -51706,12 +51706,12 @@ func (c *Client) sendTestRequestStringUint64NullableArray(ctx context.Context, r // TestRequestStringUint64NullableArrayArray invokes test_request_string_uint64_nullable_array_array operation. // // POST /test_request_string_uint64_nullable_array_array -func (c *Client) TestRequestStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (*Error, error) { +func (c *Client) TestRequestStringUint64NullableArrayArray(ctx context.Context, request [][]NilStringUint64) (*Error, error) { res, err := c.sendTestRequestStringUint64NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint64NullableArrayArray(ctx context.Context, request [][]NilStringUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -51779,12 +51779,12 @@ func (c *Client) sendTestRequestStringUint64NullableArrayArray(ctx context.Conte // TestRequestStringUint8 invokes test_request_string_uint8 operation. // // POST /test_request_string_uint8 -func (c *Client) TestRequestStringUint8(ctx context.Context, request OptUint8) (*Error, error) { +func (c *Client) TestRequestStringUint8(ctx context.Context, request OptStringUint8) (*Error, error) { res, err := c.sendTestRequestStringUint8(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint8(ctx context.Context, request OptUint8) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint8(ctx context.Context, request OptStringUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8"), semconv.HTTPMethodKey.String("POST"), @@ -51998,12 +51998,12 @@ func (c *Client) sendTestRequestStringUint8ArrayArray(ctx context.Context, reque // TestRequestStringUint8Nullable invokes test_request_string_uint8_nullable operation. // // POST /test_request_string_uint8_nullable -func (c *Client) TestRequestStringUint8Nullable(ctx context.Context, request OptNilUint8) (*Error, error) { +func (c *Client) TestRequestStringUint8Nullable(ctx context.Context, request OptNilStringUint8) (*Error, error) { res, err := c.sendTestRequestStringUint8Nullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint8Nullable(ctx context.Context, request OptNilUint8) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint8Nullable(ctx context.Context, request OptNilStringUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -52071,12 +52071,12 @@ func (c *Client) sendTestRequestStringUint8Nullable(ctx context.Context, request // TestRequestStringUint8NullableArray invokes test_request_string_uint8_nullable_array operation. // // POST /test_request_string_uint8_nullable_array -func (c *Client) TestRequestStringUint8NullableArray(ctx context.Context, request []NilUint8) (*Error, error) { +func (c *Client) TestRequestStringUint8NullableArray(ctx context.Context, request []NilStringUint8) (*Error, error) { res, err := c.sendTestRequestStringUint8NullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint8NullableArray(ctx context.Context, request []NilUint8) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint8NullableArray(ctx context.Context, request []NilStringUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -52144,12 +52144,12 @@ func (c *Client) sendTestRequestStringUint8NullableArray(ctx context.Context, re // TestRequestStringUint8NullableArrayArray invokes test_request_string_uint8_nullable_array_array operation. // // POST /test_request_string_uint8_nullable_array_array -func (c *Client) TestRequestStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (*Error, error) { +func (c *Client) TestRequestStringUint8NullableArrayArray(ctx context.Context, request [][]NilStringUint8) (*Error, error) { res, err := c.sendTestRequestStringUint8NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (res *Error, err error) { +func (c *Client) sendTestRequestStringUint8NullableArrayArray(ctx context.Context, request [][]NilStringUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -52363,12 +52363,12 @@ func (c *Client) sendTestRequestStringUintArrayArray(ctx context.Context, reques // TestRequestStringUintNullable invokes test_request_string_uint_nullable operation. // // POST /test_request_string_uint_nullable -func (c *Client) TestRequestStringUintNullable(ctx context.Context, request OptNilUint) (*Error, error) { +func (c *Client) TestRequestStringUintNullable(ctx context.Context, request OptNilStringUint) (*Error, error) { res, err := c.sendTestRequestStringUintNullable(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUintNullable(ctx context.Context, request OptNilUint) (res *Error, err error) { +func (c *Client) sendTestRequestStringUintNullable(ctx context.Context, request OptNilStringUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -52436,12 +52436,12 @@ func (c *Client) sendTestRequestStringUintNullable(ctx context.Context, request // TestRequestStringUintNullableArray invokes test_request_string_uint_nullable_array operation. // // POST /test_request_string_uint_nullable_array -func (c *Client) TestRequestStringUintNullableArray(ctx context.Context, request []NilUint) (*Error, error) { +func (c *Client) TestRequestStringUintNullableArray(ctx context.Context, request []NilStringUint) (*Error, error) { res, err := c.sendTestRequestStringUintNullableArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUintNullableArray(ctx context.Context, request []NilUint) (res *Error, err error) { +func (c *Client) sendTestRequestStringUintNullableArray(ctx context.Context, request []NilStringUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -52509,12 +52509,12 @@ func (c *Client) sendTestRequestStringUintNullableArray(ctx context.Context, req // TestRequestStringUintNullableArrayArray invokes test_request_string_uint_nullable_array_array operation. // // POST /test_request_string_uint_nullable_array_array -func (c *Client) TestRequestStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (*Error, error) { +func (c *Client) TestRequestStringUintNullableArrayArray(ctx context.Context, request [][]NilStringUint) (*Error, error) { res, err := c.sendTestRequestStringUintNullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestRequestStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (res *Error, err error) { +func (c *Client) sendTestRequestStringUintNullableArrayArray(ctx context.Context, request [][]NilStringUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -68131,12 +68131,12 @@ func (c *Client) sendTestResponseStringFloat32ArrayArray(ctx context.Context, re // TestResponseStringFloat32Nullable invokes test_response_string_float32_nullable operation. // // POST /test_response_string_float32_nullable -func (c *Client) TestResponseStringFloat32Nullable(ctx context.Context, request string) (NilFloat32, error) { +func (c *Client) TestResponseStringFloat32Nullable(ctx context.Context, request string) (NilStringFloat32, error) { res, err := c.sendTestResponseStringFloat32Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringFloat32Nullable(ctx context.Context, request string) (res NilFloat32, err error) { +func (c *Client) sendTestResponseStringFloat32Nullable(ctx context.Context, request string) (res NilStringFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -68204,12 +68204,12 @@ func (c *Client) sendTestResponseStringFloat32Nullable(ctx context.Context, requ // TestResponseStringFloat32NullableArray invokes test_response_string_float32_nullable_array operation. // // POST /test_response_string_float32_nullable_array -func (c *Client) TestResponseStringFloat32NullableArray(ctx context.Context, request string) ([]NilFloat32, error) { +func (c *Client) TestResponseStringFloat32NullableArray(ctx context.Context, request string) ([]NilStringFloat32, error) { res, err := c.sendTestResponseStringFloat32NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringFloat32NullableArray(ctx context.Context, request string) (res []NilFloat32, err error) { +func (c *Client) sendTestResponseStringFloat32NullableArray(ctx context.Context, request string) (res []NilStringFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -68277,12 +68277,12 @@ func (c *Client) sendTestResponseStringFloat32NullableArray(ctx context.Context, // TestResponseStringFloat32NullableArrayArray invokes test_response_string_float32_nullable_array_array operation. // // POST /test_response_string_float32_nullable_array_array -func (c *Client) TestResponseStringFloat32NullableArrayArray(ctx context.Context, request string) ([][]NilFloat32, error) { +func (c *Client) TestResponseStringFloat32NullableArrayArray(ctx context.Context, request string) ([][]NilStringFloat32, error) { res, err := c.sendTestResponseStringFloat32NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringFloat32NullableArrayArray(ctx context.Context, request string) (res [][]NilFloat32, err error) { +func (c *Client) sendTestResponseStringFloat32NullableArrayArray(ctx context.Context, request string) (res [][]NilStringFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -68569,12 +68569,12 @@ func (c *Client) sendTestResponseStringFloat64ArrayArray(ctx context.Context, re // TestResponseStringFloat64Nullable invokes test_response_string_float64_nullable operation. // // POST /test_response_string_float64_nullable -func (c *Client) TestResponseStringFloat64Nullable(ctx context.Context, request string) (NilFloat64, error) { +func (c *Client) TestResponseStringFloat64Nullable(ctx context.Context, request string) (NilStringFloat64, error) { res, err := c.sendTestResponseStringFloat64Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringFloat64Nullable(ctx context.Context, request string) (res NilFloat64, err error) { +func (c *Client) sendTestResponseStringFloat64Nullable(ctx context.Context, request string) (res NilStringFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -68642,12 +68642,12 @@ func (c *Client) sendTestResponseStringFloat64Nullable(ctx context.Context, requ // TestResponseStringFloat64NullableArray invokes test_response_string_float64_nullable_array operation. // // POST /test_response_string_float64_nullable_array -func (c *Client) TestResponseStringFloat64NullableArray(ctx context.Context, request string) ([]NilFloat64, error) { +func (c *Client) TestResponseStringFloat64NullableArray(ctx context.Context, request string) ([]NilStringFloat64, error) { res, err := c.sendTestResponseStringFloat64NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringFloat64NullableArray(ctx context.Context, request string) (res []NilFloat64, err error) { +func (c *Client) sendTestResponseStringFloat64NullableArray(ctx context.Context, request string) (res []NilStringFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -68715,12 +68715,12 @@ func (c *Client) sendTestResponseStringFloat64NullableArray(ctx context.Context, // TestResponseStringFloat64NullableArrayArray invokes test_response_string_float64_nullable_array_array operation. // // POST /test_response_string_float64_nullable_array_array -func (c *Client) TestResponseStringFloat64NullableArrayArray(ctx context.Context, request string) ([][]NilFloat64, error) { +func (c *Client) TestResponseStringFloat64NullableArrayArray(ctx context.Context, request string) ([][]NilStringFloat64, error) { res, err := c.sendTestResponseStringFloat64NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringFloat64NullableArrayArray(ctx context.Context, request string) (res [][]NilFloat64, err error) { +func (c *Client) sendTestResponseStringFloat64NullableArrayArray(ctx context.Context, request string) (res [][]NilStringFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -69956,12 +69956,12 @@ func (c *Client) sendTestResponseStringInt16ArrayArray(ctx context.Context, requ // TestResponseStringInt16Nullable invokes test_response_string_int16_nullable operation. // // POST /test_response_string_int16_nullable -func (c *Client) TestResponseStringInt16Nullable(ctx context.Context, request string) (NilInt16, error) { +func (c *Client) TestResponseStringInt16Nullable(ctx context.Context, request string) (NilStringInt16, error) { res, err := c.sendTestResponseStringInt16Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringInt16Nullable(ctx context.Context, request string) (res NilInt16, err error) { +func (c *Client) sendTestResponseStringInt16Nullable(ctx context.Context, request string) (res NilStringInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -70029,12 +70029,12 @@ func (c *Client) sendTestResponseStringInt16Nullable(ctx context.Context, reques // TestResponseStringInt16NullableArray invokes test_response_string_int16_nullable_array operation. // // POST /test_response_string_int16_nullable_array -func (c *Client) TestResponseStringInt16NullableArray(ctx context.Context, request string) ([]NilInt16, error) { +func (c *Client) TestResponseStringInt16NullableArray(ctx context.Context, request string) ([]NilStringInt16, error) { res, err := c.sendTestResponseStringInt16NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringInt16NullableArray(ctx context.Context, request string) (res []NilInt16, err error) { +func (c *Client) sendTestResponseStringInt16NullableArray(ctx context.Context, request string) (res []NilStringInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -70102,12 +70102,12 @@ func (c *Client) sendTestResponseStringInt16NullableArray(ctx context.Context, r // TestResponseStringInt16NullableArrayArray invokes test_response_string_int16_nullable_array_array operation. // // POST /test_response_string_int16_nullable_array_array -func (c *Client) TestResponseStringInt16NullableArrayArray(ctx context.Context, request string) ([][]NilInt16, error) { +func (c *Client) TestResponseStringInt16NullableArrayArray(ctx context.Context, request string) ([][]NilStringInt16, error) { res, err := c.sendTestResponseStringInt16NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringInt16NullableArrayArray(ctx context.Context, request string) (res [][]NilInt16, err error) { +func (c *Client) sendTestResponseStringInt16NullableArrayArray(ctx context.Context, request string) (res [][]NilStringInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -71270,12 +71270,12 @@ func (c *Client) sendTestResponseStringInt8ArrayArray(ctx context.Context, reque // TestResponseStringInt8Nullable invokes test_response_string_int8_nullable operation. // // POST /test_response_string_int8_nullable -func (c *Client) TestResponseStringInt8Nullable(ctx context.Context, request string) (NilInt8, error) { +func (c *Client) TestResponseStringInt8Nullable(ctx context.Context, request string) (NilStringInt8, error) { res, err := c.sendTestResponseStringInt8Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringInt8Nullable(ctx context.Context, request string) (res NilInt8, err error) { +func (c *Client) sendTestResponseStringInt8Nullable(ctx context.Context, request string) (res NilStringInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -71343,12 +71343,12 @@ func (c *Client) sendTestResponseStringInt8Nullable(ctx context.Context, request // TestResponseStringInt8NullableArray invokes test_response_string_int8_nullable_array operation. // // POST /test_response_string_int8_nullable_array -func (c *Client) TestResponseStringInt8NullableArray(ctx context.Context, request string) ([]NilInt8, error) { +func (c *Client) TestResponseStringInt8NullableArray(ctx context.Context, request string) ([]NilStringInt8, error) { res, err := c.sendTestResponseStringInt8NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringInt8NullableArray(ctx context.Context, request string) (res []NilInt8, err error) { +func (c *Client) sendTestResponseStringInt8NullableArray(ctx context.Context, request string) (res []NilStringInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -71416,12 +71416,12 @@ func (c *Client) sendTestResponseStringInt8NullableArray(ctx context.Context, re // TestResponseStringInt8NullableArrayArray invokes test_response_string_int8_nullable_array_array operation. // // POST /test_response_string_int8_nullable_array_array -func (c *Client) TestResponseStringInt8NullableArrayArray(ctx context.Context, request string) ([][]NilInt8, error) { +func (c *Client) TestResponseStringInt8NullableArrayArray(ctx context.Context, request string) ([][]NilStringInt8, error) { res, err := c.sendTestResponseStringInt8NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringInt8NullableArrayArray(ctx context.Context, request string) (res [][]NilInt8, err error) { +func (c *Client) sendTestResponseStringInt8NullableArrayArray(ctx context.Context, request string) (res [][]NilStringInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -71635,12 +71635,12 @@ func (c *Client) sendTestResponseStringIntArrayArray(ctx context.Context, reques // TestResponseStringIntNullable invokes test_response_string_int_nullable operation. // // POST /test_response_string_int_nullable -func (c *Client) TestResponseStringIntNullable(ctx context.Context, request string) (NilInt, error) { +func (c *Client) TestResponseStringIntNullable(ctx context.Context, request string) (NilStringInt, error) { res, err := c.sendTestResponseStringIntNullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringIntNullable(ctx context.Context, request string) (res NilInt, err error) { +func (c *Client) sendTestResponseStringIntNullable(ctx context.Context, request string) (res NilStringInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -71708,12 +71708,12 @@ func (c *Client) sendTestResponseStringIntNullable(ctx context.Context, request // TestResponseStringIntNullableArray invokes test_response_string_int_nullable_array operation. // // POST /test_response_string_int_nullable_array -func (c *Client) TestResponseStringIntNullableArray(ctx context.Context, request string) ([]NilInt, error) { +func (c *Client) TestResponseStringIntNullableArray(ctx context.Context, request string) ([]NilStringInt, error) { res, err := c.sendTestResponseStringIntNullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringIntNullableArray(ctx context.Context, request string) (res []NilInt, err error) { +func (c *Client) sendTestResponseStringIntNullableArray(ctx context.Context, request string) (res []NilStringInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -71781,12 +71781,12 @@ func (c *Client) sendTestResponseStringIntNullableArray(ctx context.Context, req // TestResponseStringIntNullableArrayArray invokes test_response_string_int_nullable_array_array operation. // // POST /test_response_string_int_nullable_array_array -func (c *Client) TestResponseStringIntNullableArrayArray(ctx context.Context, request string) ([][]NilInt, error) { +func (c *Client) TestResponseStringIntNullableArrayArray(ctx context.Context, request string) ([][]NilStringInt, error) { res, err := c.sendTestResponseStringIntNullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringIntNullableArrayArray(ctx context.Context, request string) (res [][]NilInt, err error) { +func (c *Client) sendTestResponseStringIntNullableArrayArray(ctx context.Context, request string) (res [][]NilStringInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -74993,12 +74993,12 @@ func (c *Client) sendTestResponseStringUint16ArrayArray(ctx context.Context, req // TestResponseStringUint16Nullable invokes test_response_string_uint16_nullable operation. // // POST /test_response_string_uint16_nullable -func (c *Client) TestResponseStringUint16Nullable(ctx context.Context, request string) (NilUint16, error) { +func (c *Client) TestResponseStringUint16Nullable(ctx context.Context, request string) (NilStringUint16, error) { res, err := c.sendTestResponseStringUint16Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint16Nullable(ctx context.Context, request string) (res NilUint16, err error) { +func (c *Client) sendTestResponseStringUint16Nullable(ctx context.Context, request string) (res NilStringUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -75066,12 +75066,12 @@ func (c *Client) sendTestResponseStringUint16Nullable(ctx context.Context, reque // TestResponseStringUint16NullableArray invokes test_response_string_uint16_nullable_array operation. // // POST /test_response_string_uint16_nullable_array -func (c *Client) TestResponseStringUint16NullableArray(ctx context.Context, request string) ([]NilUint16, error) { +func (c *Client) TestResponseStringUint16NullableArray(ctx context.Context, request string) ([]NilStringUint16, error) { res, err := c.sendTestResponseStringUint16NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint16NullableArray(ctx context.Context, request string) (res []NilUint16, err error) { +func (c *Client) sendTestResponseStringUint16NullableArray(ctx context.Context, request string) (res []NilStringUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -75139,12 +75139,12 @@ func (c *Client) sendTestResponseStringUint16NullableArray(ctx context.Context, // TestResponseStringUint16NullableArrayArray invokes test_response_string_uint16_nullable_array_array operation. // // POST /test_response_string_uint16_nullable_array_array -func (c *Client) TestResponseStringUint16NullableArrayArray(ctx context.Context, request string) ([][]NilUint16, error) { +func (c *Client) TestResponseStringUint16NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint16, error) { res, err := c.sendTestResponseStringUint16NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint16NullableArrayArray(ctx context.Context, request string) (res [][]NilUint16, err error) { +func (c *Client) sendTestResponseStringUint16NullableArrayArray(ctx context.Context, request string) (res [][]NilStringUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -75431,12 +75431,12 @@ func (c *Client) sendTestResponseStringUint32ArrayArray(ctx context.Context, req // TestResponseStringUint32Nullable invokes test_response_string_uint32_nullable operation. // // POST /test_response_string_uint32_nullable -func (c *Client) TestResponseStringUint32Nullable(ctx context.Context, request string) (NilUint32, error) { +func (c *Client) TestResponseStringUint32Nullable(ctx context.Context, request string) (NilStringUint32, error) { res, err := c.sendTestResponseStringUint32Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint32Nullable(ctx context.Context, request string) (res NilUint32, err error) { +func (c *Client) sendTestResponseStringUint32Nullable(ctx context.Context, request string) (res NilStringUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -75504,12 +75504,12 @@ func (c *Client) sendTestResponseStringUint32Nullable(ctx context.Context, reque // TestResponseStringUint32NullableArray invokes test_response_string_uint32_nullable_array operation. // // POST /test_response_string_uint32_nullable_array -func (c *Client) TestResponseStringUint32NullableArray(ctx context.Context, request string) ([]NilUint32, error) { +func (c *Client) TestResponseStringUint32NullableArray(ctx context.Context, request string) ([]NilStringUint32, error) { res, err := c.sendTestResponseStringUint32NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint32NullableArray(ctx context.Context, request string) (res []NilUint32, err error) { +func (c *Client) sendTestResponseStringUint32NullableArray(ctx context.Context, request string) (res []NilStringUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -75577,12 +75577,12 @@ func (c *Client) sendTestResponseStringUint32NullableArray(ctx context.Context, // TestResponseStringUint32NullableArrayArray invokes test_response_string_uint32_nullable_array_array operation. // // POST /test_response_string_uint32_nullable_array_array -func (c *Client) TestResponseStringUint32NullableArrayArray(ctx context.Context, request string) ([][]NilUint32, error) { +func (c *Client) TestResponseStringUint32NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint32, error) { res, err := c.sendTestResponseStringUint32NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint32NullableArrayArray(ctx context.Context, request string) (res [][]NilUint32, err error) { +func (c *Client) sendTestResponseStringUint32NullableArrayArray(ctx context.Context, request string) (res [][]NilStringUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -75869,12 +75869,12 @@ func (c *Client) sendTestResponseStringUint64ArrayArray(ctx context.Context, req // TestResponseStringUint64Nullable invokes test_response_string_uint64_nullable operation. // // POST /test_response_string_uint64_nullable -func (c *Client) TestResponseStringUint64Nullable(ctx context.Context, request string) (NilUint64, error) { +func (c *Client) TestResponseStringUint64Nullable(ctx context.Context, request string) (NilStringUint64, error) { res, err := c.sendTestResponseStringUint64Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint64Nullable(ctx context.Context, request string) (res NilUint64, err error) { +func (c *Client) sendTestResponseStringUint64Nullable(ctx context.Context, request string) (res NilStringUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -75942,12 +75942,12 @@ func (c *Client) sendTestResponseStringUint64Nullable(ctx context.Context, reque // TestResponseStringUint64NullableArray invokes test_response_string_uint64_nullable_array operation. // // POST /test_response_string_uint64_nullable_array -func (c *Client) TestResponseStringUint64NullableArray(ctx context.Context, request string) ([]NilUint64, error) { +func (c *Client) TestResponseStringUint64NullableArray(ctx context.Context, request string) ([]NilStringUint64, error) { res, err := c.sendTestResponseStringUint64NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint64NullableArray(ctx context.Context, request string) (res []NilUint64, err error) { +func (c *Client) sendTestResponseStringUint64NullableArray(ctx context.Context, request string) (res []NilStringUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -76015,12 +76015,12 @@ func (c *Client) sendTestResponseStringUint64NullableArray(ctx context.Context, // TestResponseStringUint64NullableArrayArray invokes test_response_string_uint64_nullable_array_array operation. // // POST /test_response_string_uint64_nullable_array_array -func (c *Client) TestResponseStringUint64NullableArrayArray(ctx context.Context, request string) ([][]NilUint64, error) { +func (c *Client) TestResponseStringUint64NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint64, error) { res, err := c.sendTestResponseStringUint64NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint64NullableArrayArray(ctx context.Context, request string) (res [][]NilUint64, err error) { +func (c *Client) sendTestResponseStringUint64NullableArrayArray(ctx context.Context, request string) (res [][]NilStringUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -76307,12 +76307,12 @@ func (c *Client) sendTestResponseStringUint8ArrayArray(ctx context.Context, requ // TestResponseStringUint8Nullable invokes test_response_string_uint8_nullable operation. // // POST /test_response_string_uint8_nullable -func (c *Client) TestResponseStringUint8Nullable(ctx context.Context, request string) (NilUint8, error) { +func (c *Client) TestResponseStringUint8Nullable(ctx context.Context, request string) (NilStringUint8, error) { res, err := c.sendTestResponseStringUint8Nullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint8Nullable(ctx context.Context, request string) (res NilUint8, err error) { +func (c *Client) sendTestResponseStringUint8Nullable(ctx context.Context, request string) (res NilStringUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -76380,12 +76380,12 @@ func (c *Client) sendTestResponseStringUint8Nullable(ctx context.Context, reques // TestResponseStringUint8NullableArray invokes test_response_string_uint8_nullable_array operation. // // POST /test_response_string_uint8_nullable_array -func (c *Client) TestResponseStringUint8NullableArray(ctx context.Context, request string) ([]NilUint8, error) { +func (c *Client) TestResponseStringUint8NullableArray(ctx context.Context, request string) ([]NilStringUint8, error) { res, err := c.sendTestResponseStringUint8NullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint8NullableArray(ctx context.Context, request string) (res []NilUint8, err error) { +func (c *Client) sendTestResponseStringUint8NullableArray(ctx context.Context, request string) (res []NilStringUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -76453,12 +76453,12 @@ func (c *Client) sendTestResponseStringUint8NullableArray(ctx context.Context, r // TestResponseStringUint8NullableArrayArray invokes test_response_string_uint8_nullable_array_array operation. // // POST /test_response_string_uint8_nullable_array_array -func (c *Client) TestResponseStringUint8NullableArrayArray(ctx context.Context, request string) ([][]NilUint8, error) { +func (c *Client) TestResponseStringUint8NullableArrayArray(ctx context.Context, request string) ([][]NilStringUint8, error) { res, err := c.sendTestResponseStringUint8NullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUint8NullableArrayArray(ctx context.Context, request string) (res [][]NilUint8, err error) { +func (c *Client) sendTestResponseStringUint8NullableArrayArray(ctx context.Context, request string) (res [][]NilStringUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), @@ -76672,12 +76672,12 @@ func (c *Client) sendTestResponseStringUintArrayArray(ctx context.Context, reque // TestResponseStringUintNullable invokes test_response_string_uint_nullable operation. // // POST /test_response_string_uint_nullable -func (c *Client) TestResponseStringUintNullable(ctx context.Context, request string) (NilUint, error) { +func (c *Client) TestResponseStringUintNullable(ctx context.Context, request string) (NilStringUint, error) { res, err := c.sendTestResponseStringUintNullable(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUintNullable(ctx context.Context, request string) (res NilUint, err error) { +func (c *Client) sendTestResponseStringUintNullable(ctx context.Context, request string) (res NilStringUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_nullable"), semconv.HTTPMethodKey.String("POST"), @@ -76745,12 +76745,12 @@ func (c *Client) sendTestResponseStringUintNullable(ctx context.Context, request // TestResponseStringUintNullableArray invokes test_response_string_uint_nullable_array operation. // // POST /test_response_string_uint_nullable_array -func (c *Client) TestResponseStringUintNullableArray(ctx context.Context, request string) ([]NilUint, error) { +func (c *Client) TestResponseStringUintNullableArray(ctx context.Context, request string) ([]NilStringUint, error) { res, err := c.sendTestResponseStringUintNullableArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUintNullableArray(ctx context.Context, request string) (res []NilUint, err error) { +func (c *Client) sendTestResponseStringUintNullableArray(ctx context.Context, request string) (res []NilStringUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_nullable_array"), semconv.HTTPMethodKey.String("POST"), @@ -76818,12 +76818,12 @@ func (c *Client) sendTestResponseStringUintNullableArray(ctx context.Context, re // TestResponseStringUintNullableArrayArray invokes test_response_string_uint_nullable_array_array operation. // // POST /test_response_string_uint_nullable_array_array -func (c *Client) TestResponseStringUintNullableArrayArray(ctx context.Context, request string) ([][]NilUint, error) { +func (c *Client) TestResponseStringUintNullableArrayArray(ctx context.Context, request string) ([][]NilStringUint, error) { res, err := c.sendTestResponseStringUintNullableArrayArray(ctx, request) return res, err } -func (c *Client) sendTestResponseStringUintNullableArrayArray(ctx context.Context, request string) (res [][]NilUint, err error) { +func (c *Client) sendTestResponseStringUintNullableArrayArray(ctx context.Context, request string) (res [][]NilStringUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_nullable_array_array"), semconv.HTTPMethodKey.String("POST"), diff --git a/examples/ex_test_format/oas_faker_gen.go b/examples/ex_test_format/oas_faker_gen.go index 474f045c6..ad5c96d44 100644 --- a/examples/ex_test_format/oas_faker_gen.go +++ b/examples/ex_test_format/oas_faker_gen.go @@ -100,6 +100,26 @@ func (s *NilString) SetFake() { s.Null = true } +// SetFake set fake values. +func (s *NilStringFloat32) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringFloat64) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringInt) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringInt16) SetFake() { + s.Null = true +} + // SetFake set fake values. func (s *NilStringInt32) SetFake() { s.Null = true @@ -110,6 +130,36 @@ func (s *NilStringInt64) SetFake() { s.Null = true } +// SetFake set fake values. +func (s *NilStringInt8) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringUint) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringUint16) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringUint32) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringUint64) SetFake() { + s.Null = true +} + +// SetFake set fake values. +func (s *NilStringUint8) SetFake() { + s.Null = true +} + // SetFake set fake values. func (s *NilStringUnixMicro) SetFake() { s.Null = true @@ -412,6 +462,30 @@ func (s *OptNilString) SetFake() { s.Set = true } +// SetFake set fake values. +func (s *OptNilStringFloat32) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringFloat64) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringInt) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringInt16) SetFake() { + s.Null = true + s.Set = true +} + // SetFake set fake values. func (s *OptNilStringInt32) SetFake() { s.Null = true @@ -424,6 +498,42 @@ func (s *OptNilStringInt64) SetFake() { s.Set = true } +// SetFake set fake values. +func (s *OptNilStringInt8) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringUint) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringUint16) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringUint32) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringUint64) SetFake() { + s.Null = true + s.Set = true +} + +// SetFake set fake values. +func (s *OptNilStringUint8) SetFake() { + s.Null = true + s.Set = true +} + // SetFake set fake values. func (s *OptNilStringUnixMicro) SetFake() { s.Null = true @@ -538,6 +648,42 @@ func (s *OptString) SetFake() { s.SetTo(elem) } +// SetFake set fake values. +func (s *OptStringFloat32) SetFake() { + var elem float32 + { + elem = float32(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringFloat64) SetFake() { + var elem float64 + { + elem = float64(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringInt) SetFake() { + var elem int + { + elem = int(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringInt16) SetFake() { + var elem int16 + { + elem = int16(0) + } + s.SetTo(elem) +} + // SetFake set fake values. func (s *OptStringInt32) SetFake() { var elem int32 @@ -556,6 +702,60 @@ func (s *OptStringInt64) SetFake() { s.SetTo(elem) } +// SetFake set fake values. +func (s *OptStringInt8) SetFake() { + var elem int8 + { + elem = int8(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringUint) SetFake() { + var elem uint + { + elem = uint(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringUint16) SetFake() { + var elem uint16 + { + elem = uint16(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringUint32) SetFake() { + var elem uint32 + { + elem = uint32(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringUint64) SetFake() { + var elem uint64 + { + elem = uint64(0) + } + s.SetTo(elem) +} + +// SetFake set fake values. +func (s *OptStringUint8) SetFake() { + var elem uint8 + { + elem = uint8(0) + } + s.SetTo(elem) +} + // SetFake set fake values. func (s *OptStringUnixMicro) SetFake() { var elem time.Time diff --git a/examples/ex_test_format/oas_handlers_gen.go b/examples/ex_test_format/oas_handlers_gen.go index 4f5a61b8f..5d29949eb 100644 --- a/examples/ex_test_format/oas_handlers_gen.go +++ b/examples/ex_test_format/oas_handlers_gen.go @@ -33712,7 +33712,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableRequest(args [0]s } type ( - Request = NilFloat32 + Request = NilStringFloat32 Params = struct{} Response = *Error ) @@ -33816,7 +33816,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableArrayRequest(args } type ( - Request = []NilFloat32 + Request = []NilStringFloat32 Params = struct{} Response = *Error ) @@ -33920,7 +33920,7 @@ func (s *Server) handleTestRequestRequiredStringFloat32NullableArrayArrayRequest } type ( - Request = [][]NilFloat32 + Request = [][]NilStringFloat32 Params = struct{} Response = *Error ) @@ -34336,7 +34336,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableRequest(args [0]s } type ( - Request = NilFloat64 + Request = NilStringFloat64 Params = struct{} Response = *Error ) @@ -34440,7 +34440,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableArrayRequest(args } type ( - Request = []NilFloat64 + Request = []NilStringFloat64 Params = struct{} Response = *Error ) @@ -34544,7 +34544,7 @@ func (s *Server) handleTestRequestRequiredStringFloat64NullableArrayArrayRequest } type ( - Request = [][]NilFloat64 + Request = [][]NilStringFloat64 Params = struct{} Response = *Error ) @@ -36312,7 +36312,7 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableRequest(args [0]str } type ( - Request = NilInt16 + Request = NilStringInt16 Params = struct{} Response = *Error ) @@ -36416,7 +36416,7 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableArrayRequest(args [ } type ( - Request = []NilInt16 + Request = []NilStringInt16 Params = struct{} Response = *Error ) @@ -36520,7 +36520,7 @@ func (s *Server) handleTestRequestRequiredStringInt16NullableArrayArrayRequest(a } type ( - Request = [][]NilInt16 + Request = [][]NilStringInt16 Params = struct{} Response = *Error ) @@ -38184,7 +38184,7 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableRequest(args [0]stri } type ( - Request = NilInt8 + Request = NilStringInt8 Params = struct{} Response = *Error ) @@ -38288,7 +38288,7 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableArrayRequest(args [0 } type ( - Request = []NilInt8 + Request = []NilStringInt8 Params = struct{} Response = *Error ) @@ -38392,7 +38392,7 @@ func (s *Server) handleTestRequestRequiredStringInt8NullableArrayArrayRequest(ar } type ( - Request = [][]NilInt8 + Request = [][]NilStringInt8 Params = struct{} Response = *Error ) @@ -38704,7 +38704,7 @@ func (s *Server) handleTestRequestRequiredStringIntNullableRequest(args [0]strin } type ( - Request = NilInt + Request = NilStringInt Params = struct{} Response = *Error ) @@ -38808,7 +38808,7 @@ func (s *Server) handleTestRequestRequiredStringIntNullableArrayRequest(args [0] } type ( - Request = []NilInt + Request = []NilStringInt Params = struct{} Response = *Error ) @@ -38912,7 +38912,7 @@ func (s *Server) handleTestRequestRequiredStringIntNullableArrayArrayRequest(arg } type ( - Request = [][]NilInt + Request = [][]NilStringInt Params = struct{} Response = *Error ) @@ -43488,7 +43488,7 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableRequest(args [0]st } type ( - Request = NilUint16 + Request = NilStringUint16 Params = struct{} Response = *Error ) @@ -43592,7 +43592,7 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableArrayRequest(args } type ( - Request = []NilUint16 + Request = []NilStringUint16 Params = struct{} Response = *Error ) @@ -43696,7 +43696,7 @@ func (s *Server) handleTestRequestRequiredStringUint16NullableArrayArrayRequest( } type ( - Request = [][]NilUint16 + Request = [][]NilStringUint16 Params = struct{} Response = *Error ) @@ -44112,7 +44112,7 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableRequest(args [0]st } type ( - Request = NilUint32 + Request = NilStringUint32 Params = struct{} Response = *Error ) @@ -44216,7 +44216,7 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableArrayRequest(args } type ( - Request = []NilUint32 + Request = []NilStringUint32 Params = struct{} Response = *Error ) @@ -44320,7 +44320,7 @@ func (s *Server) handleTestRequestRequiredStringUint32NullableArrayArrayRequest( } type ( - Request = [][]NilUint32 + Request = [][]NilStringUint32 Params = struct{} Response = *Error ) @@ -44736,7 +44736,7 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableRequest(args [0]st } type ( - Request = NilUint64 + Request = NilStringUint64 Params = struct{} Response = *Error ) @@ -44840,7 +44840,7 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableArrayRequest(args } type ( - Request = []NilUint64 + Request = []NilStringUint64 Params = struct{} Response = *Error ) @@ -44944,7 +44944,7 @@ func (s *Server) handleTestRequestRequiredStringUint64NullableArrayArrayRequest( } type ( - Request = [][]NilUint64 + Request = [][]NilStringUint64 Params = struct{} Response = *Error ) @@ -45360,7 +45360,7 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableRequest(args [0]str } type ( - Request = NilUint8 + Request = NilStringUint8 Params = struct{} Response = *Error ) @@ -45464,7 +45464,7 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableArrayRequest(args [ } type ( - Request = []NilUint8 + Request = []NilStringUint8 Params = struct{} Response = *Error ) @@ -45568,7 +45568,7 @@ func (s *Server) handleTestRequestRequiredStringUint8NullableArrayArrayRequest(a } type ( - Request = [][]NilUint8 + Request = [][]NilStringUint8 Params = struct{} Response = *Error ) @@ -45880,7 +45880,7 @@ func (s *Server) handleTestRequestRequiredStringUintNullableRequest(args [0]stri } type ( - Request = NilUint + Request = NilStringUint Params = struct{} Response = *Error ) @@ -45984,7 +45984,7 @@ func (s *Server) handleTestRequestRequiredStringUintNullableArrayRequest(args [0 } type ( - Request = []NilUint + Request = []NilStringUint Params = struct{} Response = *Error ) @@ -46088,7 +46088,7 @@ func (s *Server) handleTestRequestRequiredStringUintNullableArrayArrayRequest(ar } type ( - Request = [][]NilUint + Request = [][]NilStringUint Params = struct{} Response = *Error ) @@ -53992,7 +53992,7 @@ func (s *Server) handleTestRequestStringFloat32Request(args [0]string, argsEscap } type ( - Request = OptFloat32 + Request = OptStringFloat32 Params = struct{} Response = *Error ) @@ -54304,7 +54304,7 @@ func (s *Server) handleTestRequestStringFloat32NullableRequest(args [0]string, a } type ( - Request = OptNilFloat32 + Request = OptNilStringFloat32 Params = struct{} Response = *Error ) @@ -54408,7 +54408,7 @@ func (s *Server) handleTestRequestStringFloat32NullableArrayRequest(args [0]stri } type ( - Request = []NilFloat32 + Request = []NilStringFloat32 Params = struct{} Response = *Error ) @@ -54512,7 +54512,7 @@ func (s *Server) handleTestRequestStringFloat32NullableArrayArrayRequest(args [0 } type ( - Request = [][]NilFloat32 + Request = [][]NilStringFloat32 Params = struct{} Response = *Error ) @@ -54616,7 +54616,7 @@ func (s *Server) handleTestRequestStringFloat64Request(args [0]string, argsEscap } type ( - Request = OptFloat64 + Request = OptStringFloat64 Params = struct{} Response = *Error ) @@ -54928,7 +54928,7 @@ func (s *Server) handleTestRequestStringFloat64NullableRequest(args [0]string, a } type ( - Request = OptNilFloat64 + Request = OptNilStringFloat64 Params = struct{} Response = *Error ) @@ -55032,7 +55032,7 @@ func (s *Server) handleTestRequestStringFloat64NullableArrayRequest(args [0]stri } type ( - Request = []NilFloat64 + Request = []NilStringFloat64 Params = struct{} Response = *Error ) @@ -55136,7 +55136,7 @@ func (s *Server) handleTestRequestStringFloat64NullableArrayArrayRequest(args [0 } type ( - Request = [][]NilFloat64 + Request = [][]NilStringFloat64 Params = struct{} Response = *Error ) @@ -56488,7 +56488,7 @@ func (s *Server) handleTestRequestStringIntRequest(args [0]string, argsEscaped b } type ( - Request = OptInt + Request = OptStringInt Params = struct{} Response = *Error ) @@ -56592,7 +56592,7 @@ func (s *Server) handleTestRequestStringInt16Request(args [0]string, argsEscaped } type ( - Request = OptInt16 + Request = OptStringInt16 Params = struct{} Response = *Error ) @@ -56904,7 +56904,7 @@ func (s *Server) handleTestRequestStringInt16NullableRequest(args [0]string, arg } type ( - Request = OptNilInt16 + Request = OptNilStringInt16 Params = struct{} Response = *Error ) @@ -57008,7 +57008,7 @@ func (s *Server) handleTestRequestStringInt16NullableArrayRequest(args [0]string } type ( - Request = []NilInt16 + Request = []NilStringInt16 Params = struct{} Response = *Error ) @@ -57112,7 +57112,7 @@ func (s *Server) handleTestRequestStringInt16NullableArrayArrayRequest(args [0]s } type ( - Request = [][]NilInt16 + Request = [][]NilStringInt16 Params = struct{} Response = *Error ) @@ -58464,7 +58464,7 @@ func (s *Server) handleTestRequestStringInt8Request(args [0]string, argsEscaped } type ( - Request = OptInt8 + Request = OptStringInt8 Params = struct{} Response = *Error ) @@ -58776,7 +58776,7 @@ func (s *Server) handleTestRequestStringInt8NullableRequest(args [0]string, args } type ( - Request = OptNilInt8 + Request = OptNilStringInt8 Params = struct{} Response = *Error ) @@ -58880,7 +58880,7 @@ func (s *Server) handleTestRequestStringInt8NullableArrayRequest(args [0]string, } type ( - Request = []NilInt8 + Request = []NilStringInt8 Params = struct{} Response = *Error ) @@ -58984,7 +58984,7 @@ func (s *Server) handleTestRequestStringInt8NullableArrayArrayRequest(args [0]st } type ( - Request = [][]NilInt8 + Request = [][]NilStringInt8 Params = struct{} Response = *Error ) @@ -59296,7 +59296,7 @@ func (s *Server) handleTestRequestStringIntNullableRequest(args [0]string, argsE } type ( - Request = OptNilInt + Request = OptNilStringInt Params = struct{} Response = *Error ) @@ -59400,7 +59400,7 @@ func (s *Server) handleTestRequestStringIntNullableArrayRequest(args [0]string, } type ( - Request = []NilInt + Request = []NilStringInt Params = struct{} Response = *Error ) @@ -59504,7 +59504,7 @@ func (s *Server) handleTestRequestStringIntNullableArrayArrayRequest(args [0]str } type ( - Request = [][]NilInt + Request = [][]NilStringInt Params = struct{} Response = *Error ) @@ -63664,7 +63664,7 @@ func (s *Server) handleTestRequestStringUintRequest(args [0]string, argsEscaped } type ( - Request = OptUint + Request = OptStringUint Params = struct{} Response = *Error ) @@ -63768,7 +63768,7 @@ func (s *Server) handleTestRequestStringUint16Request(args [0]string, argsEscape } type ( - Request = OptUint16 + Request = OptStringUint16 Params = struct{} Response = *Error ) @@ -64080,7 +64080,7 @@ func (s *Server) handleTestRequestStringUint16NullableRequest(args [0]string, ar } type ( - Request = OptNilUint16 + Request = OptNilStringUint16 Params = struct{} Response = *Error ) @@ -64184,7 +64184,7 @@ func (s *Server) handleTestRequestStringUint16NullableArrayRequest(args [0]strin } type ( - Request = []NilUint16 + Request = []NilStringUint16 Params = struct{} Response = *Error ) @@ -64288,7 +64288,7 @@ func (s *Server) handleTestRequestStringUint16NullableArrayArrayRequest(args [0] } type ( - Request = [][]NilUint16 + Request = [][]NilStringUint16 Params = struct{} Response = *Error ) @@ -64392,7 +64392,7 @@ func (s *Server) handleTestRequestStringUint32Request(args [0]string, argsEscape } type ( - Request = OptUint32 + Request = OptStringUint32 Params = struct{} Response = *Error ) @@ -64704,7 +64704,7 @@ func (s *Server) handleTestRequestStringUint32NullableRequest(args [0]string, ar } type ( - Request = OptNilUint32 + Request = OptNilStringUint32 Params = struct{} Response = *Error ) @@ -64808,7 +64808,7 @@ func (s *Server) handleTestRequestStringUint32NullableArrayRequest(args [0]strin } type ( - Request = []NilUint32 + Request = []NilStringUint32 Params = struct{} Response = *Error ) @@ -64912,7 +64912,7 @@ func (s *Server) handleTestRequestStringUint32NullableArrayArrayRequest(args [0] } type ( - Request = [][]NilUint32 + Request = [][]NilStringUint32 Params = struct{} Response = *Error ) @@ -65016,7 +65016,7 @@ func (s *Server) handleTestRequestStringUint64Request(args [0]string, argsEscape } type ( - Request = OptUint64 + Request = OptStringUint64 Params = struct{} Response = *Error ) @@ -65328,7 +65328,7 @@ func (s *Server) handleTestRequestStringUint64NullableRequest(args [0]string, ar } type ( - Request = OptNilUint64 + Request = OptNilStringUint64 Params = struct{} Response = *Error ) @@ -65432,7 +65432,7 @@ func (s *Server) handleTestRequestStringUint64NullableArrayRequest(args [0]strin } type ( - Request = []NilUint64 + Request = []NilStringUint64 Params = struct{} Response = *Error ) @@ -65536,7 +65536,7 @@ func (s *Server) handleTestRequestStringUint64NullableArrayArrayRequest(args [0] } type ( - Request = [][]NilUint64 + Request = [][]NilStringUint64 Params = struct{} Response = *Error ) @@ -65640,7 +65640,7 @@ func (s *Server) handleTestRequestStringUint8Request(args [0]string, argsEscaped } type ( - Request = OptUint8 + Request = OptStringUint8 Params = struct{} Response = *Error ) @@ -65952,7 +65952,7 @@ func (s *Server) handleTestRequestStringUint8NullableRequest(args [0]string, arg } type ( - Request = OptNilUint8 + Request = OptNilStringUint8 Params = struct{} Response = *Error ) @@ -66056,7 +66056,7 @@ func (s *Server) handleTestRequestStringUint8NullableArrayRequest(args [0]string } type ( - Request = []NilUint8 + Request = []NilStringUint8 Params = struct{} Response = *Error ) @@ -66160,7 +66160,7 @@ func (s *Server) handleTestRequestStringUint8NullableArrayArrayRequest(args [0]s } type ( - Request = [][]NilUint8 + Request = [][]NilStringUint8 Params = struct{} Response = *Error ) @@ -66472,7 +66472,7 @@ func (s *Server) handleTestRequestStringUintNullableRequest(args [0]string, args } type ( - Request = OptNilUint + Request = OptNilStringUint Params = struct{} Response = *Error ) @@ -66576,7 +66576,7 @@ func (s *Server) handleTestRequestStringUintNullableArrayRequest(args [0]string, } type ( - Request = []NilUint + Request = []NilStringUint Params = struct{} Response = *Error ) @@ -66680,7 +66680,7 @@ func (s *Server) handleTestRequestStringUintNullableArrayArrayRequest(args [0]st } type ( - Request = [][]NilUint + Request = [][]NilStringUint Params = struct{} Response = *Error ) @@ -88923,7 +88923,7 @@ func (s *Server) handleTestResponseStringFloat32NullableRequest(args [0]string, } }() - var response NilFloat32 + var response NilStringFloat32 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -88938,7 +88938,7 @@ func (s *Server) handleTestResponseStringFloat32NullableRequest(args [0]string, type ( Request = string Params = struct{} - Response = NilFloat32 + Response = NilStringFloat32 ) response, err = middleware.HookMiddleware[ Request, @@ -89027,7 +89027,7 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayRequest(args [0]str } }() - var response []NilFloat32 + var response []NilStringFloat32 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -89042,7 +89042,7 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayRequest(args [0]str type ( Request = string Params = struct{} - Response = []NilFloat32 + Response = []NilStringFloat32 ) response, err = middleware.HookMiddleware[ Request, @@ -89131,7 +89131,7 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayArrayRequest(args [ } }() - var response [][]NilFloat32 + var response [][]NilStringFloat32 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -89146,7 +89146,7 @@ func (s *Server) handleTestResponseStringFloat32NullableArrayArrayRequest(args [ type ( Request = string Params = struct{} - Response = [][]NilFloat32 + Response = [][]NilStringFloat32 ) response, err = middleware.HookMiddleware[ Request, @@ -89547,7 +89547,7 @@ func (s *Server) handleTestResponseStringFloat64NullableRequest(args [0]string, } }() - var response NilFloat64 + var response NilStringFloat64 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -89562,7 +89562,7 @@ func (s *Server) handleTestResponseStringFloat64NullableRequest(args [0]string, type ( Request = string Params = struct{} - Response = NilFloat64 + Response = NilStringFloat64 ) response, err = middleware.HookMiddleware[ Request, @@ -89651,7 +89651,7 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayRequest(args [0]str } }() - var response []NilFloat64 + var response []NilStringFloat64 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -89666,7 +89666,7 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayRequest(args [0]str type ( Request = string Params = struct{} - Response = []NilFloat64 + Response = []NilStringFloat64 ) response, err = middleware.HookMiddleware[ Request, @@ -89755,7 +89755,7 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayArrayRequest(args [ } }() - var response [][]NilFloat64 + var response [][]NilStringFloat64 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -89770,7 +89770,7 @@ func (s *Server) handleTestResponseStringFloat64NullableArrayArrayRequest(args [ type ( Request = string Params = struct{} - Response = [][]NilFloat64 + Response = [][]NilStringFloat64 ) response, err = middleware.HookMiddleware[ Request, @@ -91523,7 +91523,7 @@ func (s *Server) handleTestResponseStringInt16NullableRequest(args [0]string, ar } }() - var response NilInt16 + var response NilStringInt16 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -91538,7 +91538,7 @@ func (s *Server) handleTestResponseStringInt16NullableRequest(args [0]string, ar type ( Request = string Params = struct{} - Response = NilInt16 + Response = NilStringInt16 ) response, err = middleware.HookMiddleware[ Request, @@ -91627,7 +91627,7 @@ func (s *Server) handleTestResponseStringInt16NullableArrayRequest(args [0]strin } }() - var response []NilInt16 + var response []NilStringInt16 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -91642,7 +91642,7 @@ func (s *Server) handleTestResponseStringInt16NullableArrayRequest(args [0]strin type ( Request = string Params = struct{} - Response = []NilInt16 + Response = []NilStringInt16 ) response, err = middleware.HookMiddleware[ Request, @@ -91731,7 +91731,7 @@ func (s *Server) handleTestResponseStringInt16NullableArrayArrayRequest(args [0] } }() - var response [][]NilInt16 + var response [][]NilStringInt16 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -91746,7 +91746,7 @@ func (s *Server) handleTestResponseStringInt16NullableArrayArrayRequest(args [0] type ( Request = string Params = struct{} - Response = [][]NilInt16 + Response = [][]NilStringInt16 ) response, err = middleware.HookMiddleware[ Request, @@ -93395,7 +93395,7 @@ func (s *Server) handleTestResponseStringInt8NullableRequest(args [0]string, arg } }() - var response NilInt8 + var response NilStringInt8 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -93410,7 +93410,7 @@ func (s *Server) handleTestResponseStringInt8NullableRequest(args [0]string, arg type ( Request = string Params = struct{} - Response = NilInt8 + Response = NilStringInt8 ) response, err = middleware.HookMiddleware[ Request, @@ -93499,7 +93499,7 @@ func (s *Server) handleTestResponseStringInt8NullableArrayRequest(args [0]string } }() - var response []NilInt8 + var response []NilStringInt8 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -93514,7 +93514,7 @@ func (s *Server) handleTestResponseStringInt8NullableArrayRequest(args [0]string type ( Request = string Params = struct{} - Response = []NilInt8 + Response = []NilStringInt8 ) response, err = middleware.HookMiddleware[ Request, @@ -93603,7 +93603,7 @@ func (s *Server) handleTestResponseStringInt8NullableArrayArrayRequest(args [0]s } }() - var response [][]NilInt8 + var response [][]NilStringInt8 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -93618,7 +93618,7 @@ func (s *Server) handleTestResponseStringInt8NullableArrayArrayRequest(args [0]s type ( Request = string Params = struct{} - Response = [][]NilInt8 + Response = [][]NilStringInt8 ) response, err = middleware.HookMiddleware[ Request, @@ -93915,7 +93915,7 @@ func (s *Server) handleTestResponseStringIntNullableRequest(args [0]string, args } }() - var response NilInt + var response NilStringInt if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -93930,7 +93930,7 @@ func (s *Server) handleTestResponseStringIntNullableRequest(args [0]string, args type ( Request = string Params = struct{} - Response = NilInt + Response = NilStringInt ) response, err = middleware.HookMiddleware[ Request, @@ -94019,7 +94019,7 @@ func (s *Server) handleTestResponseStringIntNullableArrayRequest(args [0]string, } }() - var response []NilInt + var response []NilStringInt if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -94034,7 +94034,7 @@ func (s *Server) handleTestResponseStringIntNullableArrayRequest(args [0]string, type ( Request = string Params = struct{} - Response = []NilInt + Response = []NilStringInt ) response, err = middleware.HookMiddleware[ Request, @@ -94123,7 +94123,7 @@ func (s *Server) handleTestResponseStringIntNullableArrayArrayRequest(args [0]st } }() - var response [][]NilInt + var response [][]NilStringInt if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -94138,7 +94138,7 @@ func (s *Server) handleTestResponseStringIntNullableArrayArrayRequest(args [0]st type ( Request = string Params = struct{} - Response = [][]NilInt + Response = [][]NilStringInt ) response, err = middleware.HookMiddleware[ Request, @@ -98699,7 +98699,7 @@ func (s *Server) handleTestResponseStringUint16NullableRequest(args [0]string, a } }() - var response NilUint16 + var response NilStringUint16 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -98714,7 +98714,7 @@ func (s *Server) handleTestResponseStringUint16NullableRequest(args [0]string, a type ( Request = string Params = struct{} - Response = NilUint16 + Response = NilStringUint16 ) response, err = middleware.HookMiddleware[ Request, @@ -98803,7 +98803,7 @@ func (s *Server) handleTestResponseStringUint16NullableArrayRequest(args [0]stri } }() - var response []NilUint16 + var response []NilStringUint16 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -98818,7 +98818,7 @@ func (s *Server) handleTestResponseStringUint16NullableArrayRequest(args [0]stri type ( Request = string Params = struct{} - Response = []NilUint16 + Response = []NilStringUint16 ) response, err = middleware.HookMiddleware[ Request, @@ -98907,7 +98907,7 @@ func (s *Server) handleTestResponseStringUint16NullableArrayArrayRequest(args [0 } }() - var response [][]NilUint16 + var response [][]NilStringUint16 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -98922,7 +98922,7 @@ func (s *Server) handleTestResponseStringUint16NullableArrayArrayRequest(args [0 type ( Request = string Params = struct{} - Response = [][]NilUint16 + Response = [][]NilStringUint16 ) response, err = middleware.HookMiddleware[ Request, @@ -99323,7 +99323,7 @@ func (s *Server) handleTestResponseStringUint32NullableRequest(args [0]string, a } }() - var response NilUint32 + var response NilStringUint32 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -99338,7 +99338,7 @@ func (s *Server) handleTestResponseStringUint32NullableRequest(args [0]string, a type ( Request = string Params = struct{} - Response = NilUint32 + Response = NilStringUint32 ) response, err = middleware.HookMiddleware[ Request, @@ -99427,7 +99427,7 @@ func (s *Server) handleTestResponseStringUint32NullableArrayRequest(args [0]stri } }() - var response []NilUint32 + var response []NilStringUint32 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -99442,7 +99442,7 @@ func (s *Server) handleTestResponseStringUint32NullableArrayRequest(args [0]stri type ( Request = string Params = struct{} - Response = []NilUint32 + Response = []NilStringUint32 ) response, err = middleware.HookMiddleware[ Request, @@ -99531,7 +99531,7 @@ func (s *Server) handleTestResponseStringUint32NullableArrayArrayRequest(args [0 } }() - var response [][]NilUint32 + var response [][]NilStringUint32 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -99546,7 +99546,7 @@ func (s *Server) handleTestResponseStringUint32NullableArrayArrayRequest(args [0 type ( Request = string Params = struct{} - Response = [][]NilUint32 + Response = [][]NilStringUint32 ) response, err = middleware.HookMiddleware[ Request, @@ -99947,7 +99947,7 @@ func (s *Server) handleTestResponseStringUint64NullableRequest(args [0]string, a } }() - var response NilUint64 + var response NilStringUint64 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -99962,7 +99962,7 @@ func (s *Server) handleTestResponseStringUint64NullableRequest(args [0]string, a type ( Request = string Params = struct{} - Response = NilUint64 + Response = NilStringUint64 ) response, err = middleware.HookMiddleware[ Request, @@ -100051,7 +100051,7 @@ func (s *Server) handleTestResponseStringUint64NullableArrayRequest(args [0]stri } }() - var response []NilUint64 + var response []NilStringUint64 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -100066,7 +100066,7 @@ func (s *Server) handleTestResponseStringUint64NullableArrayRequest(args [0]stri type ( Request = string Params = struct{} - Response = []NilUint64 + Response = []NilStringUint64 ) response, err = middleware.HookMiddleware[ Request, @@ -100155,7 +100155,7 @@ func (s *Server) handleTestResponseStringUint64NullableArrayArrayRequest(args [0 } }() - var response [][]NilUint64 + var response [][]NilStringUint64 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -100170,7 +100170,7 @@ func (s *Server) handleTestResponseStringUint64NullableArrayArrayRequest(args [0 type ( Request = string Params = struct{} - Response = [][]NilUint64 + Response = [][]NilStringUint64 ) response, err = middleware.HookMiddleware[ Request, @@ -100571,7 +100571,7 @@ func (s *Server) handleTestResponseStringUint8NullableRequest(args [0]string, ar } }() - var response NilUint8 + var response NilStringUint8 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -100586,7 +100586,7 @@ func (s *Server) handleTestResponseStringUint8NullableRequest(args [0]string, ar type ( Request = string Params = struct{} - Response = NilUint8 + Response = NilStringUint8 ) response, err = middleware.HookMiddleware[ Request, @@ -100675,7 +100675,7 @@ func (s *Server) handleTestResponseStringUint8NullableArrayRequest(args [0]strin } }() - var response []NilUint8 + var response []NilStringUint8 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -100690,7 +100690,7 @@ func (s *Server) handleTestResponseStringUint8NullableArrayRequest(args [0]strin type ( Request = string Params = struct{} - Response = []NilUint8 + Response = []NilStringUint8 ) response, err = middleware.HookMiddleware[ Request, @@ -100779,7 +100779,7 @@ func (s *Server) handleTestResponseStringUint8NullableArrayArrayRequest(args [0] } }() - var response [][]NilUint8 + var response [][]NilStringUint8 if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -100794,7 +100794,7 @@ func (s *Server) handleTestResponseStringUint8NullableArrayArrayRequest(args [0] type ( Request = string Params = struct{} - Response = [][]NilUint8 + Response = [][]NilStringUint8 ) response, err = middleware.HookMiddleware[ Request, @@ -101091,7 +101091,7 @@ func (s *Server) handleTestResponseStringUintNullableRequest(args [0]string, arg } }() - var response NilUint + var response NilStringUint if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -101106,7 +101106,7 @@ func (s *Server) handleTestResponseStringUintNullableRequest(args [0]string, arg type ( Request = string Params = struct{} - Response = NilUint + Response = NilStringUint ) response, err = middleware.HookMiddleware[ Request, @@ -101195,7 +101195,7 @@ func (s *Server) handleTestResponseStringUintNullableArrayRequest(args [0]string } }() - var response []NilUint + var response []NilStringUint if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -101210,7 +101210,7 @@ func (s *Server) handleTestResponseStringUintNullableArrayRequest(args [0]string type ( Request = string Params = struct{} - Response = []NilUint + Response = []NilStringUint ) response, err = middleware.HookMiddleware[ Request, @@ -101299,7 +101299,7 @@ func (s *Server) handleTestResponseStringUintNullableArrayArrayRequest(args [0]s } }() - var response [][]NilUint + var response [][]NilStringUint if m := s.cfg.Middleware; m != nil { mreq := middleware.Request{ Context: ctx, @@ -101314,7 +101314,7 @@ func (s *Server) handleTestResponseStringUintNullableArrayArrayRequest(args [0]s type ( Request = string Params = struct{} - Response = [][]NilUint + Response = [][]NilStringUint ) response, err = middleware.HookMiddleware[ Request, diff --git a/examples/ex_test_format/oas_json_gen.go b/examples/ex_test_format/oas_json_gen.go index c57d468b6..99aaf700d 100644 --- a/examples/ex_test_format/oas_json_gen.go +++ b/examples/ex_test_format/oas_json_gen.go @@ -287,7 +287,7 @@ func (o NilFloat32) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringFloat32(e, o.Value) + e.Float32(float32(o.Value)) } // Decode decodes float32 from json. @@ -306,11 +306,11 @@ func (o *NilFloat32) Decode(d *jx.Decoder) error { return nil } o.Null = false - v, err := json.DecodeStringFloat32(d) + v, err := d.Float32() if err != nil { return err } - o.Value = v + o.Value = float32(v) return nil } @@ -333,7 +333,7 @@ func (o NilFloat64) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringFloat64(e, o.Value) + e.Float64(float64(o.Value)) } // Decode decodes float64 from json. @@ -352,11 +352,11 @@ func (o *NilFloat64) Decode(d *jx.Decoder) error { return nil } o.Null = false - v, err := json.DecodeStringFloat64(d) + v, err := d.Float64() if err != nil { return err } - o.Value = v + o.Value = float64(v) return nil } @@ -517,7 +517,7 @@ func (o NilInt) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt(e, o.Value) + e.Int(int(o.Value)) } // Decode decodes int from json. @@ -536,11 +536,11 @@ func (o *NilInt) Decode(d *jx.Decoder) error { return nil } o.Null = false - v, err := json.DecodeStringInt(d) + v, err := d.Int() if err != nil { return err } - o.Value = v + o.Value = int(v) return nil } @@ -563,7 +563,7 @@ func (o NilInt16) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt16(e, o.Value) + e.Int16(int16(o.Value)) } // Decode decodes int16 from json. @@ -582,11 +582,11 @@ func (o *NilInt16) Decode(d *jx.Decoder) error { return nil } o.Null = false - v, err := json.DecodeStringInt16(d) + v, err := d.Int16() if err != nil { return err } - o.Value = v + o.Value = int16(v) return nil } @@ -701,7 +701,7 @@ func (o NilInt8) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt8(e, o.Value) + e.Int8(int8(o.Value)) } // Decode decodes int8 from json. @@ -720,11 +720,11 @@ func (o *NilInt8) Decode(d *jx.Decoder) error { return nil } o.Null = false - v, err := json.DecodeStringInt8(d) + v, err := d.Int8() if err != nil { return err } - o.Value = v + o.Value = int8(v) return nil } @@ -787,32 +787,32 @@ func (s *NilString) UnmarshalJSON(data []byte) error { return s.Decode(d) } -// Encode encodes int32 as json. -func (o NilStringInt32) Encode(e *jx.Encoder) { +// Encode encodes float32 as json. +func (o NilStringFloat32) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - json.EncodeStringInt32(e, o.Value) + json.EncodeStringFloat32(e, o.Value) } -// Decode decodes int32 from json. -func (o *NilStringInt32) Decode(d *jx.Decoder) error { +// Decode decodes float32 from json. +func (o *NilStringFloat32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilStringInt32 to nil") + return errors.New("invalid: unable to decode NilStringFloat32 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int32 + var v float32 o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeStringInt32(d) + v, err := json.DecodeStringFloat32(d) if err != nil { return err } @@ -821,44 +821,44 @@ func (o *NilStringInt32) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilStringInt32) MarshalJSON() ([]byte, error) { +func (s NilStringFloat32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilStringInt32) UnmarshalJSON(data []byte) error { +func (s *NilStringFloat32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int64 as json. -func (o NilStringInt64) Encode(e *jx.Encoder) { +// Encode encodes float64 as json. +func (o NilStringFloat64) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - json.EncodeStringInt64(e, o.Value) + json.EncodeStringFloat64(e, o.Value) } -// Decode decodes int64 from json. -func (o *NilStringInt64) Decode(d *jx.Decoder) error { +// Decode decodes float64 from json. +func (o *NilStringFloat64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilStringInt64 to nil") + return errors.New("invalid: unable to decode NilStringFloat64 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int64 + var v float64 o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeStringInt64(d) + v, err := json.DecodeStringFloat64(d) if err != nil { return err } @@ -867,44 +867,44 @@ func (o *NilStringInt64) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilStringInt64) MarshalJSON() ([]byte, error) { +func (s NilStringFloat64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilStringInt64) UnmarshalJSON(data []byte) error { +func (s *NilStringFloat64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes time.Time as json. -func (o NilStringUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int as json. +func (o NilStringInt) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - format(e, o.Value) + json.EncodeStringInt(e, o.Value) } -// Decode decodes time.Time from json. -func (o *NilStringUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int from json. +func (o *NilStringInt) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilStringUnixMicro to nil") + return errors.New("invalid: unable to decode NilStringInt to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v int o.Value = v o.Null = true return nil } o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt(d) if err != nil { return err } @@ -913,44 +913,44 @@ func (o *NilStringUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (tim } // MarshalJSON implements stdjson.Marshaler. -func (s NilStringUnixMicro) MarshalJSON() ([]byte, error) { +func (s NilStringInt) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixMicro) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilStringUnixMicro) UnmarshalJSON(data []byte) error { +func (s *NilStringInt) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixMicro) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o NilStringUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int16 as json. +func (o NilStringInt16) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - format(e, o.Value) + json.EncodeStringInt16(e, o.Value) } -// Decode decodes time.Time from json. -func (o *NilStringUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int16 from json. +func (o *NilStringInt16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilStringUnixMilli to nil") + return errors.New("invalid: unable to decode NilStringInt16 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v int16 o.Value = v o.Null = true return nil } o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt16(d) if err != nil { return err } @@ -959,44 +959,44 @@ func (o *NilStringUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (tim } // MarshalJSON implements stdjson.Marshaler. -func (s NilStringUnixMilli) MarshalJSON() ([]byte, error) { +func (s NilStringInt16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixMilli) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilStringUnixMilli) UnmarshalJSON(data []byte) error { +func (s *NilStringInt16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixMilli) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o NilStringUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int32 as json. +func (o NilStringInt32) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - format(e, o.Value) + json.EncodeStringInt32(e, o.Value) } -// Decode decodes time.Time from json. -func (o *NilStringUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int32 from json. +func (o *NilStringInt32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilStringUnixNano to nil") + return errors.New("invalid: unable to decode NilStringInt32 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v int32 o.Value = v o.Null = true return nil } o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt32(d) if err != nil { return err } @@ -1005,44 +1005,44 @@ func (o *NilStringUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time } // MarshalJSON implements stdjson.Marshaler. -func (s NilStringUnixNano) MarshalJSON() ([]byte, error) { +func (s NilStringInt32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixNano) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilStringUnixNano) UnmarshalJSON(data []byte) error { +func (s *NilStringInt32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixNano) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o NilStringUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int64 as json. +func (o NilStringInt64) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - format(e, o.Value) + json.EncodeStringInt64(e, o.Value) } -// Decode decodes time.Time from json. -func (o *NilStringUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int64 from json. +func (o *NilStringInt64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilStringUnixSeconds to nil") + return errors.New("invalid: unable to decode NilStringInt64 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v int64 o.Value = v o.Null = true return nil } o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt64(d) if err != nil { return err } @@ -1051,44 +1051,44 @@ func (o *NilStringUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (t } // MarshalJSON implements stdjson.Marshaler. -func (s NilStringUnixSeconds) MarshalJSON() ([]byte, error) { +func (s NilStringInt64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixSeconds) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilStringUnixSeconds) UnmarshalJSON(data []byte) error { +func (s *NilStringInt64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixSeconds) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o NilTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int8 as json. +func (o NilStringInt8) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - format(e, o.Value) + json.EncodeStringInt8(e, o.Value) } -// Decode decodes time.Time from json. -func (o *NilTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int8 from json. +func (o *NilStringInt8) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilTime to nil") + return errors.New("invalid: unable to decode NilStringInt8 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v int8 o.Value = v o.Null = true return nil } o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt8(d) if err != nil { return err } @@ -1097,44 +1097,44 @@ func (o *NilTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, err } // MarshalJSON implements stdjson.Marshaler. -func (s NilTime) MarshalJSON() ([]byte, error) { +func (s NilStringInt8) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeTime) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilTime) UnmarshalJSON(data []byte) error { +func (s *NilStringInt8) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeTime) + return s.Decode(d) } -// Encode encodes url.URL as json. -func (o NilURI) Encode(e *jx.Encoder) { +// Encode encodes uint as json. +func (o NilStringUint) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - json.EncodeURI(e, o.Value) + json.EncodeStringUint(e, o.Value) } -// Decode decodes url.URL from json. -func (o *NilURI) Decode(d *jx.Decoder) error { +// Decode decodes uint from json. +func (o *NilStringUint) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilURI to nil") + return errors.New("invalid: unable to decode NilStringUint to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v url.URL + var v uint o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeURI(d) + v, err := json.DecodeStringUint(d) if err != nil { return err } @@ -1143,44 +1143,44 @@ func (o *NilURI) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilURI) MarshalJSON() ([]byte, error) { +func (s NilStringUint) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilURI) UnmarshalJSON(data []byte) error { +func (s *NilStringUint) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uuid.UUID as json. -func (o NilUUID) Encode(e *jx.Encoder) { +// Encode encodes uint16 as json. +func (o NilStringUint16) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - json.EncodeUUID(e, o.Value) + json.EncodeStringUint16(e, o.Value) } -// Decode decodes uuid.UUID from json. -func (o *NilUUID) Decode(d *jx.Decoder) error { +// Decode decodes uint16 from json. +func (o *NilStringUint16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilUUID to nil") + return errors.New("invalid: unable to decode NilStringUint16 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v uuid.UUID + var v uint16 o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeUUID(d) + v, err := json.DecodeStringUint16(d) if err != nil { return err } @@ -1189,44 +1189,44 @@ func (o *NilUUID) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilUUID) MarshalJSON() ([]byte, error) { +func (s NilStringUint16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUUID) UnmarshalJSON(data []byte) error { +func (s *NilStringUint16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint as json. -func (o NilUint) Encode(e *jx.Encoder) { +// Encode encodes uint32 as json. +func (o NilStringUint32) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - json.EncodeStringUint(e, o.Value) + json.EncodeStringUint32(e, o.Value) } -// Decode decodes uint from json. -func (o *NilUint) Decode(d *jx.Decoder) error { +// Decode decodes uint32 from json. +func (o *NilStringUint32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilUint to nil") + return errors.New("invalid: unable to decode NilStringUint32 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v uint + var v uint32 o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeStringUint(d) + v, err := json.DecodeStringUint32(d) if err != nil { return err } @@ -1235,44 +1235,44 @@ func (o *NilUint) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilUint) MarshalJSON() ([]byte, error) { +func (s NilStringUint32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUint) UnmarshalJSON(data []byte) error { +func (s *NilStringUint32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint16 as json. -func (o NilUint16) Encode(e *jx.Encoder) { +// Encode encodes uint64 as json. +func (o NilStringUint64) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - json.EncodeStringUint16(e, o.Value) + json.EncodeStringUint64(e, o.Value) } -// Decode decodes uint16 from json. -func (o *NilUint16) Decode(d *jx.Decoder) error { +// Decode decodes uint64 from json. +func (o *NilStringUint64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilUint16 to nil") + return errors.New("invalid: unable to decode NilStringUint64 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v uint16 + var v uint64 o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeStringUint16(d) + v, err := json.DecodeStringUint64(d) if err != nil { return err } @@ -1281,44 +1281,44 @@ func (o *NilUint16) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilUint16) MarshalJSON() ([]byte, error) { +func (s NilStringUint64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUint16) UnmarshalJSON(data []byte) error { +func (s *NilStringUint64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint32 as json. -func (o NilUint32) Encode(e *jx.Encoder) { +// Encode encodes uint8 as json. +func (o NilStringUint8) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - json.EncodeStringUint32(e, o.Value) + json.EncodeStringUint8(e, o.Value) } -// Decode decodes uint32 from json. -func (o *NilUint32) Decode(d *jx.Decoder) error { +// Decode decodes uint8 from json. +func (o *NilStringUint8) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilUint32 to nil") + return errors.New("invalid: unable to decode NilStringUint8 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v uint32 + var v uint8 o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeStringUint32(d) + v, err := json.DecodeStringUint8(d) if err != nil { return err } @@ -1327,44 +1327,44 @@ func (o *NilUint32) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilUint32) MarshalJSON() ([]byte, error) { +func (s NilStringUint8) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUint32) UnmarshalJSON(data []byte) error { +func (s *NilStringUint8) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint64 as json. -func (o NilUint64) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o NilStringUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if o.Null { e.Null() return } - json.EncodeStringUint64(e, o.Value) + format(e, o.Value) } -// Decode decodes uint64 from json. -func (o *NilUint64) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *NilStringUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode NilUint64 to nil") + return errors.New("invalid: unable to decode NilStringUnixMicro to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v uint64 + var v time.Time o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeStringUint64(d) + v, err := format(d) if err != nil { return err } @@ -1373,44 +1373,44 @@ func (o *NilUint64) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilUint64) MarshalJSON() ([]byte, error) { +func (s NilStringUnixMicro) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeStringUnixMicro) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUint64) UnmarshalJSON(data []byte) error { +func (s *NilStringUnixMicro) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeStringUnixMicro) } -// Encode encodes uint8 as json. -func (o NilUint8) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o NilStringUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if o.Null { e.Null() return } - json.EncodeStringUint8(e, o.Value) + format(e, o.Value) } -// Decode decodes uint8 from json. -func (o *NilUint8) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *NilStringUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode NilUint8 to nil") + return errors.New("invalid: unable to decode NilStringUnixMilli to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v uint8 + var v time.Time o.Value = v o.Null = true return nil } o.Null = false - v, err := json.DecodeStringUint8(d) + v, err := format(d) if err != nil { return err } @@ -1419,20 +1419,20 @@ func (o *NilUint8) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s NilUint8) MarshalJSON() ([]byte, error) { +func (s NilStringUnixMilli) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeStringUnixMilli) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUint8) UnmarshalJSON(data []byte) error { +func (s *NilStringUnixMilli) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeStringUnixMilli) } // Encode encodes time.Time as json. -func (o NilUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +func (o NilStringUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if o.Null { e.Null() return @@ -1441,9 +1441,9 @@ func (o NilUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) } // Decode decodes time.Time from json. -func (o *NilUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +func (o *NilStringUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode NilUnixMicro to nil") + return errors.New("invalid: unable to decode NilStringUnixNano to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { @@ -1465,20 +1465,20 @@ func (o *NilUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time } // MarshalJSON implements stdjson.Marshaler. -func (s NilUnixMicro) MarshalJSON() ([]byte, error) { +func (s NilStringUnixNano) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixMicro) + s.Encode(&e, json.EncodeStringUnixNano) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUnixMicro) UnmarshalJSON(data []byte) error { +func (s *NilStringUnixNano) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixMicro) + return s.Decode(d, json.DecodeStringUnixNano) } // Encode encodes time.Time as json. -func (o NilUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +func (o NilStringUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if o.Null { e.Null() return @@ -1487,9 +1487,9 @@ func (o NilUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) } // Decode decodes time.Time from json. -func (o *NilUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +func (o *NilStringUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode NilUnixMilli to nil") + return errors.New("invalid: unable to decode NilStringUnixSeconds to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { @@ -1511,20 +1511,20 @@ func (o *NilUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time } // MarshalJSON implements stdjson.Marshaler. -func (s NilUnixMilli) MarshalJSON() ([]byte, error) { +func (s NilStringUnixSeconds) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixMilli) + s.Encode(&e, json.EncodeStringUnixSeconds) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUnixMilli) UnmarshalJSON(data []byte) error { +func (s *NilStringUnixSeconds) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixMilli) + return s.Decode(d, json.DecodeStringUnixSeconds) } // Encode encodes time.Time as json. -func (o NilUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +func (o NilTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if o.Null { e.Null() return @@ -1533,9 +1533,9 @@ func (o NilUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) } // Decode decodes time.Time from json. -func (o *NilUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +func (o *NilTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode NilUnixNano to nil") + return errors.New("invalid: unable to decode NilTime to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { @@ -1557,44 +1557,44 @@ func (o *NilUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, } // MarshalJSON implements stdjson.Marshaler. -func (s NilUnixNano) MarshalJSON() ([]byte, error) { +func (s NilTime) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixNano) + s.Encode(&e, json.EncodeTime) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUnixNano) UnmarshalJSON(data []byte) error { +func (s *NilTime) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixNano) + return s.Decode(d, json.DecodeTime) } -// Encode encodes time.Time as json. -func (o NilUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes url.URL as json. +func (o NilURI) Encode(e *jx.Encoder) { if o.Null { e.Null() return } - format(e, o.Value) + json.EncodeURI(e, o.Value) } -// Decode decodes time.Time from json. -func (o *NilUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes url.URL from json. +func (o *NilURI) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode NilUnixSeconds to nil") + return errors.New("invalid: unable to decode NilURI to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v url.URL o.Value = v o.Null = true return nil } o.Null = false - v, err := format(d) + v, err := json.DecodeURI(d) if err != nil { return err } @@ -1603,208 +1603,1458 @@ func (o *NilUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Ti } // MarshalJSON implements stdjson.Marshaler. -func (s NilUnixSeconds) MarshalJSON() ([]byte, error) { +func (s NilURI) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixSeconds) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *NilUnixSeconds) UnmarshalJSON(data []byte) error { +func (s *NilURI) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixSeconds) + return s.Decode(d) } -// Encode encodes bool as json. -func (o OptBool) Encode(e *jx.Encoder) { - if !o.Set { +// Encode encodes uuid.UUID as json. +func (o NilUUID) Encode(e *jx.Encoder) { + if o.Null { + e.Null() return } - e.Bool(bool(o.Value)) + json.EncodeUUID(e, o.Value) } -// Decode decodes bool from json. -func (o *OptBool) Decode(d *jx.Decoder) error { +// Decode decodes uuid.UUID from json. +func (o *NilUUID) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptBool to nil") + return errors.New("invalid: unable to decode NilUUID to nil") } - o.Set = true - v, err := d.Bool() + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v uuid.UUID + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := json.DecodeUUID(d) if err != nil { return err } - o.Value = bool(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptBool) MarshalJSON() ([]byte, error) { +func (s NilUUID) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptBool) UnmarshalJSON(data []byte) error { +func (s *NilUUID) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { - if !o.Set { +// Encode encodes uint as json. +func (o NilUint) Encode(e *jx.Encoder) { + if o.Null { + e.Null() return } - format(e, o.Value) + e.UInt(uint(o.Value)) } -// Decode decodes time.Time from json. -func (o *OptDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes uint from json. +func (o *NilUint) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptDate to nil") + return errors.New("invalid: unable to decode NilUint to nil") } - o.Set = true - v, err := format(d) + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v uint + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := d.UInt() if err != nil { return err } - o.Value = v + o.Value = uint(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptDate) MarshalJSON() ([]byte, error) { +func (s NilUint) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeDate) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptDate) UnmarshalJSON(data []byte) error { +func (s *NilUint) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeDate) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { - if !o.Set { +// Encode encodes uint16 as json. +func (o NilUint16) Encode(e *jx.Encoder) { + if o.Null { + e.Null() return } - format(e, o.Value) + e.UInt16(uint16(o.Value)) } -// Decode decodes time.Time from json. -func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes uint16 from json. +func (o *NilUint16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptDateTime to nil") + return errors.New("invalid: unable to decode NilUint16 to nil") } - o.Set = true - v, err := format(d) + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v uint16 + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := d.UInt16() if err != nil { return err } - o.Value = v + o.Value = uint16(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptDateTime) MarshalJSON() ([]byte, error) { +func (s NilUint16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeDateTime) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptDateTime) UnmarshalJSON(data []byte) error { +func (s *NilUint16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeDateTime) + return s.Decode(d) } -// Encode encodes time.Duration as json. -func (o OptDuration) Encode(e *jx.Encoder) { - if !o.Set { +// Encode encodes uint32 as json. +func (o NilUint32) Encode(e *jx.Encoder) { + if o.Null { + e.Null() return } - json.EncodeDuration(e, o.Value) + e.UInt32(uint32(o.Value)) } -// Decode decodes time.Duration from json. -func (o *OptDuration) Decode(d *jx.Decoder) error { +// Decode decodes uint32 from json. +func (o *NilUint32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptDuration to nil") + return errors.New("invalid: unable to decode NilUint32 to nil") } - o.Set = true - v, err := json.DecodeDuration(d) + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v uint32 + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := d.UInt32() if err != nil { return err } - o.Value = v + o.Value = uint32(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptDuration) MarshalJSON() ([]byte, error) { +func (s NilUint32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptDuration) UnmarshalJSON(data []byte) error { +func (s *NilUint32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes float32 as json. -func (o OptFloat32) Encode(e *jx.Encoder) { - if !o.Set { +// Encode encodes uint64 as json. +func (o NilUint64) Encode(e *jx.Encoder) { + if o.Null { + e.Null() return } - json.EncodeStringFloat32(e, o.Value) + e.UInt64(uint64(o.Value)) } -// Decode decodes float32 from json. -func (o *OptFloat32) Decode(d *jx.Decoder) error { +// Decode decodes uint64 from json. +func (o *NilUint64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptFloat32 to nil") + return errors.New("invalid: unable to decode NilUint64 to nil") } - o.Set = true - v, err := json.DecodeStringFloat32(d) + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v uint64 + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := d.UInt64() if err != nil { return err } - o.Value = v + o.Value = uint64(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptFloat32) MarshalJSON() ([]byte, error) { +func (s NilUint64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptFloat32) UnmarshalJSON(data []byte) error { +func (s *NilUint64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes float64 as json. -func (o OptFloat64) Encode(e *jx.Encoder) { +// Encode encodes uint8 as json. +func (o NilUint8) Encode(e *jx.Encoder) { + if o.Null { + e.Null() + return + } + e.UInt8(uint8(o.Value)) +} + +// Decode decodes uint8 from json. +func (o *NilUint8) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode NilUint8 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v uint8 + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := d.UInt8() + if err != nil { + return err + } + o.Value = uint8(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s NilUint8) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *NilUint8) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes time.Time as json. +func (o NilUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if o.Null { + e.Null() + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *NilUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode NilUnixMicro to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v time.Time + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s NilUnixMicro) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeUnixMicro) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *NilUnixMicro) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeUnixMicro) +} + +// Encode encodes time.Time as json. +func (o NilUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if o.Null { + e.Null() + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *NilUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode NilUnixMilli to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v time.Time + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s NilUnixMilli) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeUnixMilli) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *NilUnixMilli) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeUnixMilli) +} + +// Encode encodes time.Time as json. +func (o NilUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if o.Null { + e.Null() + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *NilUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode NilUnixNano to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v time.Time + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s NilUnixNano) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeUnixNano) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *NilUnixNano) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeUnixNano) +} + +// Encode encodes time.Time as json. +func (o NilUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if o.Null { + e.Null() + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *NilUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode NilUnixSeconds to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v time.Time + o.Value = v + o.Null = true + return nil + } + o.Null = false + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s NilUnixSeconds) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeUnixSeconds) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *NilUnixSeconds) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeUnixSeconds) +} + +// Encode encodes bool as json. +func (o OptBool) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Bool(bool(o.Value)) +} + +// Decode decodes bool from json. +func (o *OptBool) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptBool to nil") + } + o.Set = true + v, err := d.Bool() + if err != nil { + return err + } + o.Value = bool(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptBool) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptBool) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes time.Time as json. +func (o OptDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if !o.Set { + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *OptDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode OptDate to nil") + } + o.Set = true + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptDate) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeDate) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptDate) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeDate) +} + +// Encode encodes time.Time as json. +func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if !o.Set { + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode OptDateTime to nil") + } + o.Set = true + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptDateTime) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeDateTime) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptDateTime) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeDateTime) +} + +// Encode encodes time.Duration as json. +func (o OptDuration) Encode(e *jx.Encoder) { + if !o.Set { + return + } + json.EncodeDuration(e, o.Value) +} + +// Decode decodes time.Duration from json. +func (o *OptDuration) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptDuration to nil") + } + o.Set = true + v, err := json.DecodeDuration(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptDuration) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptDuration) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes float32 as json. +func (o OptFloat32) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Float32(float32(o.Value)) +} + +// Decode decodes float32 from json. +func (o *OptFloat32) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptFloat32 to nil") + } + o.Set = true + v, err := d.Float32() + if err != nil { + return err + } + o.Value = float32(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptFloat32) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptFloat32) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes float64 as json. +func (o OptFloat64) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Float64(float64(o.Value)) +} + +// Decode decodes float64 from json. +func (o *OptFloat64) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptFloat64 to nil") + } + o.Set = true + v, err := d.Float64() + if err != nil { + return err + } + o.Value = float64(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptFloat64) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptFloat64) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes netip.Addr as json. +func (o OptIP) Encode(e *jx.Encoder) { + if !o.Set { + return + } + json.EncodeIP(e, o.Value) +} + +// Decode decodes netip.Addr from json. +func (o *OptIP) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptIP to nil") + } + o.Set = true + v, err := json.DecodeIP(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptIP) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptIP) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes netip.Addr as json. +func (o OptIPv4) Encode(e *jx.Encoder) { + if !o.Set { + return + } + json.EncodeIPv4(e, o.Value) +} + +// Decode decodes netip.Addr from json. +func (o *OptIPv4) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptIPv4 to nil") + } + o.Set = true + v, err := json.DecodeIPv4(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptIPv4) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptIPv4) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes netip.Addr as json. +func (o OptIPv6) Encode(e *jx.Encoder) { + if !o.Set { + return + } + json.EncodeIPv6(e, o.Value) +} + +// Decode decodes netip.Addr from json. +func (o *OptIPv6) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptIPv6 to nil") + } + o.Set = true + v, err := json.DecodeIPv6(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptIPv6) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptIPv6) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes int as json. +func (o OptInt) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Int(int(o.Value)) +} + +// Decode decodes int from json. +func (o *OptInt) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptInt to nil") + } + o.Set = true + v, err := d.Int() + if err != nil { + return err + } + o.Value = int(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptInt) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptInt) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes int16 as json. +func (o OptInt16) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Int16(int16(o.Value)) +} + +// Decode decodes int16 from json. +func (o *OptInt16) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptInt16 to nil") + } + o.Set = true + v, err := d.Int16() + if err != nil { + return err + } + o.Value = int16(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptInt16) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptInt16) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes int32 as json. +func (o OptInt32) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Int32(int32(o.Value)) +} + +// Decode decodes int32 from json. +func (o *OptInt32) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptInt32 to nil") + } + o.Set = true + v, err := d.Int32() + if err != nil { + return err + } + o.Value = int32(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptInt32) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptInt32) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes int64 as json. +func (o OptInt64) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Int64(int64(o.Value)) +} + +// Decode decodes int64 from json. +func (o *OptInt64) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptInt64 to nil") + } + o.Set = true + v, err := d.Int64() + if err != nil { + return err + } + o.Value = int64(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptInt64) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptInt64) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes int8 as json. +func (o OptInt8) Encode(e *jx.Encoder) { + if !o.Set { + return + } + e.Int8(int8(o.Value)) +} + +// Decode decodes int8 from json. +func (o *OptInt8) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptInt8 to nil") + } + o.Set = true + v, err := d.Int8() + if err != nil { + return err + } + o.Value = int8(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptInt8) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptInt8) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes bool as json. +func (o OptNilBool) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + e.Bool(bool(o.Value)) +} + +// Decode decodes bool from json. +func (o *OptNilBool) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilBool to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v bool + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := d.Bool() + if err != nil { + return err + } + o.Value = bool(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilBool) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilBool) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes []byte as json. +func (o OptNilByte) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + e.Base64([]byte(o.Value)) +} + +// Decode decodes []byte from json. +func (o *OptNilByte) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilByte to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v []byte + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := d.Base64() + if err != nil { + return err + } + o.Value = []byte(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilByte) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilByte) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes time.Time as json. +func (o OptNilDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *OptNilDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilDate to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v time.Time + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilDate) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeDate) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilDate) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeDate) +} + +// Encode encodes time.Time as json. +func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + format(e, o.Value) +} + +// Decode decodes time.Time from json. +func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilDateTime to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v time.Time + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := format(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilDateTime) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e, json.EncodeDateTime) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilDateTime) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d, json.DecodeDateTime) +} + +// Encode encodes time.Duration as json. +func (o OptNilDuration) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + json.EncodeDuration(e, o.Value) +} + +// Decode decodes time.Duration from json. +func (o *OptNilDuration) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilDuration to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v time.Duration + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := json.DecodeDuration(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilDuration) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilDuration) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes float32 as json. +func (o OptNilFloat32) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + e.Float32(float32(o.Value)) +} + +// Decode decodes float32 from json. +func (o *OptNilFloat32) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilFloat32 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v float32 + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := d.Float32() + if err != nil { + return err + } + o.Value = float32(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilFloat32) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilFloat32) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes float64 as json. +func (o OptNilFloat64) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + e.Float64(float64(o.Value)) +} + +// Decode decodes float64 from json. +func (o *OptNilFloat64) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilFloat64 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v float64 + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := d.Float64() + if err != nil { + return err + } + o.Value = float64(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilFloat64) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilFloat64) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes netip.Addr as json. +func (o OptNilIP) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + json.EncodeIP(e, o.Value) +} + +// Decode decodes netip.Addr from json. +func (o *OptNilIP) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilIP to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v netip.Addr + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := json.DecodeIP(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilIP) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilIP) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes netip.Addr as json. +func (o OptNilIPv4) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + json.EncodeIPv4(e, o.Value) +} + +// Decode decodes netip.Addr from json. +func (o *OptNilIPv4) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilIPv4 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v netip.Addr + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := json.DecodeIPv4(d) + if err != nil { + return err + } + o.Value = v + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilIPv4) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilIPv4) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes netip.Addr as json. +func (o OptNilIPv6) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringFloat64(e, o.Value) + if o.Null { + e.Null() + return + } + json.EncodeIPv6(e, o.Value) } -// Decode decodes float64 from json. -func (o *OptFloat64) Decode(d *jx.Decoder) error { +// Decode decodes netip.Addr from json. +func (o *OptNilIPv6) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptFloat64 to nil") + return errors.New("invalid: unable to decode OptNilIPv6 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v netip.Addr + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := json.DecodeStringFloat64(d) + o.Null = false + v, err := json.DecodeIPv6(d) if err != nil { return err } @@ -1813,173 +3063,355 @@ func (o *OptFloat64) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptFloat64) MarshalJSON() ([]byte, error) { +func (s OptNilIPv6) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptFloat64) UnmarshalJSON(data []byte) error { +func (s *OptNilIPv6) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes netip.Addr as json. -func (o OptIP) Encode(e *jx.Encoder) { +// Encode encodes int as json. +func (o OptNilInt) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeIP(e, o.Value) + if o.Null { + e.Null() + return + } + e.Int(int(o.Value)) } -// Decode decodes netip.Addr from json. -func (o *OptIP) Decode(d *jx.Decoder) error { +// Decode decodes int from json. +func (o *OptNilInt) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptIP to nil") + return errors.New("invalid: unable to decode OptNilInt to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v int + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := json.DecodeIP(d) + o.Null = false + v, err := d.Int() if err != nil { return err } - o.Value = v + o.Value = int(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptIP) MarshalJSON() ([]byte, error) { +func (s OptNilInt) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptIP) UnmarshalJSON(data []byte) error { +func (s *OptNilInt) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes netip.Addr as json. -func (o OptIPv4) Encode(e *jx.Encoder) { +// Encode encodes int16 as json. +func (o OptNilInt16) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeIPv4(e, o.Value) + if o.Null { + e.Null() + return + } + e.Int16(int16(o.Value)) } -// Decode decodes netip.Addr from json. -func (o *OptIPv4) Decode(d *jx.Decoder) error { +// Decode decodes int16 from json. +func (o *OptNilInt16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptIPv4 to nil") + return errors.New("invalid: unable to decode OptNilInt16 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v int16 + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := json.DecodeIPv4(d) + o.Null = false + v, err := d.Int16() if err != nil { return err } - o.Value = v + o.Value = int16(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptIPv4) MarshalJSON() ([]byte, error) { +func (s OptNilInt16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptIPv4) UnmarshalJSON(data []byte) error { +func (s *OptNilInt16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes netip.Addr as json. -func (o OptIPv6) Encode(e *jx.Encoder) { +// Encode encodes int32 as json. +func (o OptNilInt32) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeIPv6(e, o.Value) + if o.Null { + e.Null() + return + } + e.Int32(int32(o.Value)) } -// Decode decodes netip.Addr from json. -func (o *OptIPv6) Decode(d *jx.Decoder) error { +// Decode decodes int32 from json. +func (o *OptNilInt32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptIPv6 to nil") + return errors.New("invalid: unable to decode OptNilInt32 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v int32 + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := json.DecodeIPv6(d) + o.Null = false + v, err := d.Int32() if err != nil { return err } - o.Value = v + o.Value = int32(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptIPv6) MarshalJSON() ([]byte, error) { +func (s OptNilInt32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptIPv6) UnmarshalJSON(data []byte) error { +func (s *OptNilInt32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int as json. -func (o OptInt) Encode(e *jx.Encoder) { +// Encode encodes int64 as json. +func (o OptNilInt64) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + e.Int64(int64(o.Value)) +} + +// Decode decodes int64 from json. +func (o *OptNilInt64) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilInt64 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v int64 + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := d.Int64() + if err != nil { + return err + } + o.Value = int64(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilInt64) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilInt64) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes int8 as json. +func (o OptNilInt8) Encode(e *jx.Encoder) { + if !o.Set { + return + } + if o.Null { + e.Null() + return + } + e.Int8(int8(o.Value)) +} + +// Decode decodes int8 from json. +func (o *OptNilInt8) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilInt8 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v int8 + o.Value = v + o.Set = true + o.Null = true + return nil + } + o.Set = true + o.Null = false + v, err := d.Int8() + if err != nil { + return err + } + o.Value = int8(v) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s OptNilInt8) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *OptNilInt8) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + +// Encode encodes string as json. +func (o OptNilString) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringInt(e, o.Value) -} + if o.Null { + e.Null() + return + } + e.Str(string(o.Value)) +} + +// Decode decodes string from json. +func (o *OptNilString) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptNilString to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } -// Decode decodes int from json. -func (o *OptInt) Decode(d *jx.Decoder) error { - if o == nil { - return errors.New("invalid: unable to decode OptInt to nil") + var v string + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := json.DecodeStringInt(d) + o.Null = false + v, err := d.Str() if err != nil { return err } - o.Value = v + o.Value = string(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptInt) MarshalJSON() ([]byte, error) { +func (s OptNilString) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptInt) UnmarshalJSON(data []byte) error { +func (s *OptNilString) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int16 as json. -func (o OptInt16) Encode(e *jx.Encoder) { +// Encode encodes float32 as json. +func (o OptNilStringFloat32) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringInt16(e, o.Value) + if o.Null { + e.Null() + return + } + json.EncodeStringFloat32(e, o.Value) } -// Decode decodes int16 from json. -func (o *OptInt16) Decode(d *jx.Decoder) error { +// Decode decodes float32 from json. +func (o *OptNilStringFloat32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptInt16 to nil") + return errors.New("invalid: unable to decode OptNilStringFloat32 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v float32 + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := json.DecodeStringInt16(d) + o.Null = false + v, err := json.DecodeStringFloat32(d) if err != nil { return err } @@ -1988,103 +3420,151 @@ func (o *OptInt16) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptInt16) MarshalJSON() ([]byte, error) { +func (s OptNilStringFloat32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptInt16) UnmarshalJSON(data []byte) error { +func (s *OptNilStringFloat32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int32 as json. -func (o OptInt32) Encode(e *jx.Encoder) { +// Encode encodes float64 as json. +func (o OptNilStringFloat64) Encode(e *jx.Encoder) { if !o.Set { return } - e.Int32(int32(o.Value)) + if o.Null { + e.Null() + return + } + json.EncodeStringFloat64(e, o.Value) } -// Decode decodes int32 from json. -func (o *OptInt32) Decode(d *jx.Decoder) error { +// Decode decodes float64 from json. +func (o *OptNilStringFloat64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptInt32 to nil") + return errors.New("invalid: unable to decode OptNilStringFloat64 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v float64 + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := d.Int32() + o.Null = false + v, err := json.DecodeStringFloat64(d) if err != nil { return err } - o.Value = int32(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptInt32) MarshalJSON() ([]byte, error) { +func (s OptNilStringFloat64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptInt32) UnmarshalJSON(data []byte) error { +func (s *OptNilStringFloat64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int64 as json. -func (o OptInt64) Encode(e *jx.Encoder) { +// Encode encodes int as json. +func (o OptNilStringInt) Encode(e *jx.Encoder) { if !o.Set { return } - e.Int64(int64(o.Value)) + if o.Null { + e.Null() + return + } + json.EncodeStringInt(e, o.Value) } -// Decode decodes int64 from json. -func (o *OptInt64) Decode(d *jx.Decoder) error { +// Decode decodes int from json. +func (o *OptNilStringInt) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptInt64 to nil") + return errors.New("invalid: unable to decode OptNilStringInt to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v int + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := d.Int64() + o.Null = false + v, err := json.DecodeStringInt(d) if err != nil { return err } - o.Value = int64(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptInt64) MarshalJSON() ([]byte, error) { +func (s OptNilStringInt) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptInt64) UnmarshalJSON(data []byte) error { +func (s *OptNilStringInt) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int8 as json. -func (o OptInt8) Encode(e *jx.Encoder) { +// Encode encodes int16 as json. +func (o OptNilStringInt16) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringInt8(e, o.Value) + if o.Null { + e.Null() + return + } + json.EncodeStringInt16(e, o.Value) } -// Decode decodes int8 from json. -func (o *OptInt8) Decode(d *jx.Decoder) error { +// Decode decodes int16 from json. +func (o *OptNilStringInt16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptInt8 to nil") + return errors.New("invalid: unable to decode OptNilStringInt16 to nil") + } + if d.Next() == jx.Null { + if err := d.Null(); err != nil { + return err + } + + var v int16 + o.Value = v + o.Set = true + o.Null = true + return nil } o.Set = true - v, err := json.DecodeStringInt8(d) + o.Null = false + v, err := json.DecodeStringInt16(d) if err != nil { return err } @@ -2093,20 +3573,20 @@ func (o *OptInt8) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptInt8) MarshalJSON() ([]byte, error) { +func (s OptNilStringInt16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptInt8) UnmarshalJSON(data []byte) error { +func (s *OptNilStringInt16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes bool as json. -func (o OptNilBool) Encode(e *jx.Encoder) { +// Encode encodes int32 as json. +func (o OptNilStringInt32) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2114,20 +3594,20 @@ func (o OptNilBool) Encode(e *jx.Encoder) { e.Null() return } - e.Bool(bool(o.Value)) + json.EncodeStringInt32(e, o.Value) } -// Decode decodes bool from json. -func (o *OptNilBool) Decode(d *jx.Decoder) error { +// Decode decodes int32 from json. +func (o *OptNilStringInt32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilBool to nil") + return errors.New("invalid: unable to decode OptNilStringInt32 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v bool + var v int32 o.Value = v o.Set = true o.Null = true @@ -2135,29 +3615,29 @@ func (o *OptNilBool) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := d.Bool() + v, err := json.DecodeStringInt32(d) if err != nil { return err } - o.Value = bool(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilBool) MarshalJSON() ([]byte, error) { +func (s OptNilStringInt32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilBool) UnmarshalJSON(data []byte) error { +func (s *OptNilStringInt32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes []byte as json. -func (o OptNilByte) Encode(e *jx.Encoder) { +// Encode encodes int64 as json. +func (o OptNilStringInt64) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2165,20 +3645,20 @@ func (o OptNilByte) Encode(e *jx.Encoder) { e.Null() return } - e.Base64([]byte(o.Value)) + json.EncodeStringInt64(e, o.Value) } -// Decode decodes []byte from json. -func (o *OptNilByte) Decode(d *jx.Decoder) error { +// Decode decodes int64 from json. +func (o *OptNilStringInt64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilByte to nil") + return errors.New("invalid: unable to decode OptNilStringInt64 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v []byte + var v int64 o.Value = v o.Set = true o.Null = true @@ -2186,29 +3666,29 @@ func (o *OptNilByte) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := d.Base64() + v, err := json.DecodeStringInt64(d) if err != nil { return err } - o.Value = []byte(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilByte) MarshalJSON() ([]byte, error) { +func (s OptNilStringInt64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilByte) UnmarshalJSON(data []byte) error { +func (s *OptNilStringInt64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int8 as json. +func (o OptNilStringInt8) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2216,20 +3696,20 @@ func (o OptNilDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { e.Null() return } - format(e, o.Value) + json.EncodeStringInt8(e, o.Value) } -// Decode decodes time.Time from json. -func (o *OptNilDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int8 from json. +func (o *OptNilStringInt8) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilDate to nil") + return errors.New("invalid: unable to decode OptNilStringInt8 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v int8 o.Value = v o.Set = true o.Null = true @@ -2237,7 +3717,7 @@ func (o *OptNilDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, } o.Set = true o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt8(d) if err != nil { return err } @@ -2246,20 +3726,20 @@ func (o *OptNilDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilDate) MarshalJSON() ([]byte, error) { +func (s OptNilStringInt8) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeDate) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilDate) UnmarshalJSON(data []byte) error { +func (s *OptNilStringInt8) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeDate) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes uint as json. +func (o OptNilStringUint) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2267,20 +3747,20 @@ func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time e.Null() return } - format(e, o.Value) + json.EncodeStringUint(e, o.Value) } -// Decode decodes time.Time from json. -func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes uint from json. +func (o *OptNilStringUint) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilDateTime to nil") + return errors.New("invalid: unable to decode OptNilStringUint to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v uint o.Value = v o.Set = true o.Null = true @@ -2288,7 +3768,7 @@ func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Ti } o.Set = true o.Null = false - v, err := format(d) + v, err := json.DecodeStringUint(d) if err != nil { return err } @@ -2297,20 +3777,20 @@ func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Ti } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilDateTime) MarshalJSON() ([]byte, error) { +func (s OptNilStringUint) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeDateTime) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilDateTime) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUint) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeDateTime) + return s.Decode(d) } -// Encode encodes time.Duration as json. -func (o OptNilDuration) Encode(e *jx.Encoder) { +// Encode encodes uint16 as json. +func (o OptNilStringUint16) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2318,20 +3798,20 @@ func (o OptNilDuration) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeDuration(e, o.Value) + json.EncodeStringUint16(e, o.Value) } -// Decode decodes time.Duration from json. -func (o *OptNilDuration) Decode(d *jx.Decoder) error { +// Decode decodes uint16 from json. +func (o *OptNilStringUint16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilDuration to nil") + return errors.New("invalid: unable to decode OptNilStringUint16 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Duration + var v uint16 o.Value = v o.Set = true o.Null = true @@ -2339,7 +3819,7 @@ func (o *OptNilDuration) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeDuration(d) + v, err := json.DecodeStringUint16(d) if err != nil { return err } @@ -2348,20 +3828,20 @@ func (o *OptNilDuration) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilDuration) MarshalJSON() ([]byte, error) { +func (s OptNilStringUint16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilDuration) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUint16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes float32 as json. -func (o OptNilFloat32) Encode(e *jx.Encoder) { +// Encode encodes uint32 as json. +func (o OptNilStringUint32) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2369,20 +3849,20 @@ func (o OptNilFloat32) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringFloat32(e, o.Value) + json.EncodeStringUint32(e, o.Value) } -// Decode decodes float32 from json. -func (o *OptNilFloat32) Decode(d *jx.Decoder) error { +// Decode decodes uint32 from json. +func (o *OptNilStringUint32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilFloat32 to nil") + return errors.New("invalid: unable to decode OptNilStringUint32 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v float32 + var v uint32 o.Value = v o.Set = true o.Null = true @@ -2390,7 +3870,7 @@ func (o *OptNilFloat32) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeStringFloat32(d) + v, err := json.DecodeStringUint32(d) if err != nil { return err } @@ -2399,20 +3879,20 @@ func (o *OptNilFloat32) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilFloat32) MarshalJSON() ([]byte, error) { +func (s OptNilStringUint32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilFloat32) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUint32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes float64 as json. -func (o OptNilFloat64) Encode(e *jx.Encoder) { +// Encode encodes uint64 as json. +func (o OptNilStringUint64) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2420,20 +3900,20 @@ func (o OptNilFloat64) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringFloat64(e, o.Value) + json.EncodeStringUint64(e, o.Value) } -// Decode decodes float64 from json. -func (o *OptNilFloat64) Decode(d *jx.Decoder) error { +// Decode decodes uint64 from json. +func (o *OptNilStringUint64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilFloat64 to nil") + return errors.New("invalid: unable to decode OptNilStringUint64 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v float64 + var v uint64 o.Value = v o.Set = true o.Null = true @@ -2441,7 +3921,7 @@ func (o *OptNilFloat64) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeStringFloat64(d) + v, err := json.DecodeStringUint64(d) if err != nil { return err } @@ -2450,20 +3930,20 @@ func (o *OptNilFloat64) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilFloat64) MarshalJSON() ([]byte, error) { +func (s OptNilStringUint64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilFloat64) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUint64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes netip.Addr as json. -func (o OptNilIP) Encode(e *jx.Encoder) { +// Encode encodes uint8 as json. +func (o OptNilStringUint8) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2471,20 +3951,20 @@ func (o OptNilIP) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeIP(e, o.Value) + json.EncodeStringUint8(e, o.Value) } -// Decode decodes netip.Addr from json. -func (o *OptNilIP) Decode(d *jx.Decoder) error { +// Decode decodes uint8 from json. +func (o *OptNilStringUint8) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilIP to nil") + return errors.New("invalid: unable to decode OptNilStringUint8 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v netip.Addr + var v uint8 o.Value = v o.Set = true o.Null = true @@ -2492,7 +3972,7 @@ func (o *OptNilIP) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeIP(d) + v, err := json.DecodeStringUint8(d) if err != nil { return err } @@ -2501,20 +3981,20 @@ func (o *OptNilIP) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilIP) MarshalJSON() ([]byte, error) { +func (s OptNilStringUint8) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilIP) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUint8) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes netip.Addr as json. -func (o OptNilIPv4) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o OptNilStringUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -2522,20 +4002,20 @@ func (o OptNilIPv4) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeIPv4(e, o.Value) + format(e, o.Value) } -// Decode decodes netip.Addr from json. -func (o *OptNilIPv4) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *OptNilStringUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilIPv4 to nil") + return errors.New("invalid: unable to decode OptNilStringUnixMicro to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v netip.Addr + var v time.Time o.Value = v o.Set = true o.Null = true @@ -2543,7 +4023,7 @@ func (o *OptNilIPv4) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeIPv4(d) + v, err := format(d) if err != nil { return err } @@ -2552,20 +4032,20 @@ func (o *OptNilIPv4) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilIPv4) MarshalJSON() ([]byte, error) { +func (s OptNilStringUnixMicro) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeStringUnixMicro) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilIPv4) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUnixMicro) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeStringUnixMicro) } -// Encode encodes netip.Addr as json. -func (o OptNilIPv6) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o OptNilStringUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -2573,20 +4053,20 @@ func (o OptNilIPv6) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeIPv6(e, o.Value) + format(e, o.Value) } -// Decode decodes netip.Addr from json. -func (o *OptNilIPv6) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *OptNilStringUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilIPv6 to nil") + return errors.New("invalid: unable to decode OptNilStringUnixMilli to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v netip.Addr + var v time.Time o.Value = v o.Set = true o.Null = true @@ -2594,7 +4074,7 @@ func (o *OptNilIPv6) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeIPv6(d) + v, err := format(d) if err != nil { return err } @@ -2603,20 +4083,20 @@ func (o *OptNilIPv6) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilIPv6) MarshalJSON() ([]byte, error) { +func (s OptNilStringUnixMilli) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeStringUnixMilli) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilIPv6) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUnixMilli) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeStringUnixMilli) } -// Encode encodes int as json. -func (o OptNilInt) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o OptNilStringUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -2624,20 +4104,20 @@ func (o OptNilInt) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt(e, o.Value) + format(e, o.Value) } -// Decode decodes int from json. -func (o *OptNilInt) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *OptNilStringUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilInt to nil") + return errors.New("invalid: unable to decode OptNilStringUnixNano to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int + var v time.Time o.Value = v o.Set = true o.Null = true @@ -2645,7 +4125,7 @@ func (o *OptNilInt) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeStringInt(d) + v, err := format(d) if err != nil { return err } @@ -2654,20 +4134,20 @@ func (o *OptNilInt) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilInt) MarshalJSON() ([]byte, error) { +func (s OptNilStringUnixNano) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeStringUnixNano) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilInt) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUnixNano) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeStringUnixNano) } -// Encode encodes int16 as json. -func (o OptNilInt16) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o OptNilStringUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -2675,20 +4155,20 @@ func (o OptNilInt16) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt16(e, o.Value) + format(e, o.Value) } -// Decode decodes int16 from json. -func (o *OptNilInt16) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *OptNilStringUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilInt16 to nil") + return errors.New("invalid: unable to decode OptNilStringUnixSeconds to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int16 + var v time.Time o.Value = v o.Set = true o.Null = true @@ -2696,7 +4176,7 @@ func (o *OptNilInt16) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeStringInt16(d) + v, err := format(d) if err != nil { return err } @@ -2705,20 +4185,20 @@ func (o *OptNilInt16) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilInt16) MarshalJSON() ([]byte, error) { +func (s OptNilStringUnixSeconds) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeStringUnixSeconds) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilInt16) UnmarshalJSON(data []byte) error { +func (s *OptNilStringUnixSeconds) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeStringUnixSeconds) } -// Encode encodes int32 as json. -func (o OptNilInt32) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o OptNilTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -2726,20 +4206,20 @@ func (o OptNilInt32) Encode(e *jx.Encoder) { e.Null() return } - e.Int32(int32(o.Value)) + format(e, o.Value) } -// Decode decodes int32 from json. -func (o *OptNilInt32) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *OptNilTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilInt32 to nil") + return errors.New("invalid: unable to decode OptNilTime to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int32 + var v time.Time o.Value = v o.Set = true o.Null = true @@ -2747,29 +4227,29 @@ func (o *OptNilInt32) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := d.Int32() + v, err := format(d) if err != nil { return err } - o.Value = int32(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilInt32) MarshalJSON() ([]byte, error) { +func (s OptNilTime) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeTime) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilInt32) UnmarshalJSON(data []byte) error { +func (s *OptNilTime) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeTime) } -// Encode encodes int64 as json. -func (o OptNilInt64) Encode(e *jx.Encoder) { +// Encode encodes url.URL as json. +func (o OptNilURI) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2777,20 +4257,20 @@ func (o OptNilInt64) Encode(e *jx.Encoder) { e.Null() return } - e.Int64(int64(o.Value)) + json.EncodeURI(e, o.Value) } -// Decode decodes int64 from json. -func (o *OptNilInt64) Decode(d *jx.Decoder) error { +// Decode decodes url.URL from json. +func (o *OptNilURI) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilInt64 to nil") + return errors.New("invalid: unable to decode OptNilURI to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int64 + var v url.URL o.Value = v o.Set = true o.Null = true @@ -2798,29 +4278,29 @@ func (o *OptNilInt64) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := d.Int64() + v, err := json.DecodeURI(d) if err != nil { return err } - o.Value = int64(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilInt64) MarshalJSON() ([]byte, error) { +func (s OptNilURI) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilInt64) UnmarshalJSON(data []byte) error { +func (s *OptNilURI) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int8 as json. -func (o OptNilInt8) Encode(e *jx.Encoder) { +// Encode encodes uuid.UUID as json. +func (o OptNilUUID) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2828,20 +4308,20 @@ func (o OptNilInt8) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt8(e, o.Value) + json.EncodeUUID(e, o.Value) } -// Decode decodes int8 from json. -func (o *OptNilInt8) Decode(d *jx.Decoder) error { +// Decode decodes uuid.UUID from json. +func (o *OptNilUUID) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilInt8 to nil") + return errors.New("invalid: unable to decode OptNilUUID to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int8 + var v uuid.UUID o.Value = v o.Set = true o.Null = true @@ -2849,7 +4329,7 @@ func (o *OptNilInt8) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeStringInt8(d) + v, err := json.DecodeUUID(d) if err != nil { return err } @@ -2858,20 +4338,20 @@ func (o *OptNilInt8) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilInt8) MarshalJSON() ([]byte, error) { +func (s OptNilUUID) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilInt8) UnmarshalJSON(data []byte) error { +func (s *OptNilUUID) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes string as json. -func (o OptNilString) Encode(e *jx.Encoder) { +// Encode encodes uint as json. +func (o OptNilUint) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2879,20 +4359,20 @@ func (o OptNilString) Encode(e *jx.Encoder) { e.Null() return } - e.Str(string(o.Value)) + e.UInt(uint(o.Value)) } -// Decode decodes string from json. -func (o *OptNilString) Decode(d *jx.Decoder) error { +// Decode decodes uint from json. +func (o *OptNilUint) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilString to nil") + return errors.New("invalid: unable to decode OptNilUint to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v string + var v uint o.Value = v o.Set = true o.Null = true @@ -2900,29 +4380,29 @@ func (o *OptNilString) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := d.Str() + v, err := d.UInt() if err != nil { return err } - o.Value = string(v) + o.Value = uint(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilString) MarshalJSON() ([]byte, error) { +func (s OptNilUint) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilString) UnmarshalJSON(data []byte) error { +func (s *OptNilUint) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int32 as json. -func (o OptNilStringInt32) Encode(e *jx.Encoder) { +// Encode encodes uint16 as json. +func (o OptNilUint16) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2930,20 +4410,20 @@ func (o OptNilStringInt32) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt32(e, o.Value) + e.UInt16(uint16(o.Value)) } -// Decode decodes int32 from json. -func (o *OptNilStringInt32) Decode(d *jx.Decoder) error { +// Decode decodes uint16 from json. +func (o *OptNilUint16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilStringInt32 to nil") + return errors.New("invalid: unable to decode OptNilUint16 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int32 + var v uint16 o.Value = v o.Set = true o.Null = true @@ -2951,29 +4431,29 @@ func (o *OptNilStringInt32) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeStringInt32(d) + v, err := d.UInt16() if err != nil { return err } - o.Value = v + o.Value = uint16(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilStringInt32) MarshalJSON() ([]byte, error) { +func (s OptNilUint16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilStringInt32) UnmarshalJSON(data []byte) error { +func (s *OptNilUint16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int64 as json. -func (o OptNilStringInt64) Encode(e *jx.Encoder) { +// Encode encodes uint32 as json. +func (o OptNilUint32) Encode(e *jx.Encoder) { if !o.Set { return } @@ -2981,20 +4461,20 @@ func (o OptNilStringInt64) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeStringInt64(e, o.Value) + e.UInt32(uint32(o.Value)) } -// Decode decodes int64 from json. -func (o *OptNilStringInt64) Decode(d *jx.Decoder) error { +// Decode decodes uint32 from json. +func (o *OptNilUint32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilStringInt64 to nil") + return errors.New("invalid: unable to decode OptNilUint32 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v int64 + var v uint32 o.Value = v o.Set = true o.Null = true @@ -3002,29 +4482,29 @@ func (o *OptNilStringInt64) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeStringInt64(d) + v, err := d.UInt32() if err != nil { return err } - o.Value = v + o.Value = uint32(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilStringInt64) MarshalJSON() ([]byte, error) { +func (s OptNilUint32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilStringInt64) UnmarshalJSON(data []byte) error { +func (s *OptNilUint32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilStringUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes uint64 as json. +func (o OptNilUint64) Encode(e *jx.Encoder) { if !o.Set { return } @@ -3032,20 +4512,20 @@ func (o OptNilStringUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, ti e.Null() return } - format(e, o.Value) + e.UInt64(uint64(o.Value)) } -// Decode decodes time.Time from json. -func (o *OptNilStringUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes uint64 from json. +func (o *OptNilUint64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilStringUnixMicro to nil") + return errors.New("invalid: unable to decode OptNilUint64 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v uint64 o.Value = v o.Set = true o.Null = true @@ -3053,29 +4533,29 @@ func (o *OptNilStringUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) ( } o.Set = true o.Null = false - v, err := format(d) + v, err := d.UInt64() if err != nil { return err } - o.Value = v + o.Value = uint64(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilStringUnixMicro) MarshalJSON() ([]byte, error) { +func (s OptNilUint64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixMicro) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilStringUnixMicro) UnmarshalJSON(data []byte) error { +func (s *OptNilUint64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixMicro) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilStringUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes uint8 as json. +func (o OptNilUint8) Encode(e *jx.Encoder) { if !o.Set { return } @@ -3083,20 +4563,20 @@ func (o OptNilStringUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, ti e.Null() return } - format(e, o.Value) + e.UInt8(uint8(o.Value)) } -// Decode decodes time.Time from json. -func (o *OptNilStringUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes uint8 from json. +func (o *OptNilUint8) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilStringUnixMilli to nil") + return errors.New("invalid: unable to decode OptNilUint8 to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v time.Time + var v uint8 o.Value = v o.Set = true o.Null = true @@ -3104,29 +4584,29 @@ func (o *OptNilStringUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) ( } o.Set = true o.Null = false - v, err := format(d) + v, err := d.UInt8() if err != nil { return err } - o.Value = v + o.Value = uint8(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilStringUnixMilli) MarshalJSON() ([]byte, error) { +func (s OptNilUint8) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixMilli) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilStringUnixMilli) UnmarshalJSON(data []byte) error { +func (s *OptNilUint8) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixMilli) + return s.Decode(d) } // Encode encodes time.Time as json. -func (o OptNilStringUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +func (o OptNilUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -3138,9 +4618,9 @@ func (o OptNilStringUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, tim } // Decode decodes time.Time from json. -func (o *OptNilStringUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +func (o *OptNilUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilStringUnixNano to nil") + return errors.New("invalid: unable to decode OptNilUnixMicro to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { @@ -3164,20 +4644,20 @@ func (o *OptNilStringUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (t } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilStringUnixNano) MarshalJSON() ([]byte, error) { +func (s OptNilUnixMicro) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixNano) + s.Encode(&e, json.EncodeUnixMicro) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilStringUnixNano) UnmarshalJSON(data []byte) error { +func (s *OptNilUnixMicro) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixNano) + return s.Decode(d, json.DecodeUnixMicro) } // Encode encodes time.Time as json. -func (o OptNilStringUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +func (o OptNilUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -3189,9 +4669,9 @@ func (o OptNilStringUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, } // Decode decodes time.Time from json. -func (o *OptNilStringUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +func (o *OptNilUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilStringUnixSeconds to nil") + return errors.New("invalid: unable to decode OptNilUnixMilli to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { @@ -3215,20 +4695,20 @@ func (o *OptNilStringUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilStringUnixSeconds) MarshalJSON() ([]byte, error) { +func (s OptNilUnixMilli) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeStringUnixSeconds) + s.Encode(&e, json.EncodeUnixMilli) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilStringUnixSeconds) UnmarshalJSON(data []byte) error { +func (s *OptNilUnixMilli) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeStringUnixSeconds) + return s.Decode(d, json.DecodeUnixMilli) } // Encode encodes time.Time as json. -func (o OptNilTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +func (o OptNilUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -3240,9 +4720,9 @@ func (o OptNilTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { } // Decode decodes time.Time from json. -func (o *OptNilTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +func (o *OptNilUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilTime to nil") + return errors.New("invalid: unable to decode OptNilUnixNano to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { @@ -3266,20 +4746,20 @@ func (o *OptNilTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilTime) MarshalJSON() ([]byte, error) { +func (s OptNilUnixNano) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeTime) + s.Encode(&e, json.EncodeUnixNano) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilTime) UnmarshalJSON(data []byte) error { +func (s *OptNilUnixNano) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeTime) + return s.Decode(d, json.DecodeUnixNano) } -// Encode encodes url.URL as json. -func (o OptNilURI) Encode(e *jx.Encoder) { +// Encode encodes time.Time as json. +func (o OptNilUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { if !o.Set { return } @@ -3287,20 +4767,20 @@ func (o OptNilURI) Encode(e *jx.Encoder) { e.Null() return } - json.EncodeURI(e, o.Value) + format(e, o.Value) } -// Decode decodes url.URL from json. -func (o *OptNilURI) Decode(d *jx.Decoder) error { +// Decode decodes time.Time from json. +func (o *OptNilUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { if o == nil { - return errors.New("invalid: unable to decode OptNilURI to nil") + return errors.New("invalid: unable to decode OptNilUnixSeconds to nil") } if d.Next() == jx.Null { if err := d.Null(); err != nil { return err } - var v url.URL + var v time.Time o.Value = v o.Set = true o.Null = true @@ -3308,7 +4788,7 @@ func (o *OptNilURI) Decode(d *jx.Decoder) error { } o.Set = true o.Null = false - v, err := json.DecodeURI(d) + v, err := format(d) if err != nil { return err } @@ -3317,151 +4797,101 @@ func (o *OptNilURI) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilURI) MarshalJSON() ([]byte, error) { +func (s OptNilUnixSeconds) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e) + s.Encode(&e, json.EncodeUnixSeconds) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilURI) UnmarshalJSON(data []byte) error { +func (s *OptNilUnixSeconds) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d) + return s.Decode(d, json.DecodeUnixSeconds) } -// Encode encodes uuid.UUID as json. -func (o OptNilUUID) Encode(e *jx.Encoder) { +// Encode encodes struct{} as json. +func (o OptNull) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - json.EncodeUUID(e, o.Value) + e.Null() } -// Decode decodes uuid.UUID from json. -func (o *OptNilUUID) Decode(d *jx.Decoder) error { +// Decode decodes struct{} from json. +func (o *OptNull) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUUID to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v uuid.UUID - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptNull to nil") } o.Set = true - o.Null = false - v, err := json.DecodeUUID(d) - if err != nil { + if err := d.Null(); err != nil { return err } - o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUUID) MarshalJSON() ([]byte, error) { +func (s OptNull) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUUID) UnmarshalJSON(data []byte) error { +func (s *OptNull) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint as json. -func (o OptNilUint) Encode(e *jx.Encoder) { +// Encode encodes string as json. +func (o OptString) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - json.EncodeStringUint(e, o.Value) + e.Str(string(o.Value)) } -// Decode decodes uint from json. -func (o *OptNilUint) Decode(d *jx.Decoder) error { +// Decode decodes string from json. +func (o *OptString) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUint to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v uint - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptString to nil") } o.Set = true - o.Null = false - v, err := json.DecodeStringUint(d) + v, err := d.Str() if err != nil { return err } - o.Value = v + o.Value = string(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUint) MarshalJSON() ([]byte, error) { +func (s OptString) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUint) UnmarshalJSON(data []byte) error { +func (s *OptString) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint16 as json. -func (o OptNilUint16) Encode(e *jx.Encoder) { +// Encode encodes float32 as json. +func (o OptStringFloat32) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - json.EncodeStringUint16(e, o.Value) + json.EncodeStringFloat32(e, o.Value) } -// Decode decodes uint16 from json. -func (o *OptNilUint16) Decode(d *jx.Decoder) error { +// Decode decodes float32 from json. +func (o *OptStringFloat32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUint16 to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v uint16 - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptStringFloat32 to nil") } o.Set = true - o.Null = false - v, err := json.DecodeStringUint16(d) + v, err := json.DecodeStringFloat32(d) if err != nil { return err } @@ -3470,49 +4900,33 @@ func (o *OptNilUint16) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUint16) MarshalJSON() ([]byte, error) { +func (s OptStringFloat32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUint16) UnmarshalJSON(data []byte) error { +func (s *OptStringFloat32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint32 as json. -func (o OptNilUint32) Encode(e *jx.Encoder) { +// Encode encodes float64 as json. +func (o OptStringFloat64) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - json.EncodeStringUint32(e, o.Value) + json.EncodeStringFloat64(e, o.Value) } -// Decode decodes uint32 from json. -func (o *OptNilUint32) Decode(d *jx.Decoder) error { +// Decode decodes float64 from json. +func (o *OptStringFloat64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUint32 to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v uint32 - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptStringFloat64 to nil") } o.Set = true - o.Null = false - v, err := json.DecodeStringUint32(d) + v, err := json.DecodeStringFloat64(d) if err != nil { return err } @@ -3521,49 +4935,33 @@ func (o *OptNilUint32) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUint32) MarshalJSON() ([]byte, error) { +func (s OptStringFloat64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUint32) UnmarshalJSON(data []byte) error { +func (s *OptStringFloat64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint64 as json. -func (o OptNilUint64) Encode(e *jx.Encoder) { +// Encode encodes int as json. +func (o OptStringInt) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - json.EncodeStringUint64(e, o.Value) -} - -// Decode decodes uint64 from json. -func (o *OptNilUint64) Decode(d *jx.Decoder) error { - if o == nil { - return errors.New("invalid: unable to decode OptNilUint64 to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } + json.EncodeStringInt(e, o.Value) +} - var v uint64 - o.Value = v - o.Set = true - o.Null = true - return nil +// Decode decodes int from json. +func (o *OptStringInt) Decode(d *jx.Decoder) error { + if o == nil { + return errors.New("invalid: unable to decode OptStringInt to nil") } o.Set = true - o.Null = false - v, err := json.DecodeStringUint64(d) + v, err := json.DecodeStringInt(d) if err != nil { return err } @@ -3572,49 +4970,33 @@ func (o *OptNilUint64) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUint64) MarshalJSON() ([]byte, error) { +func (s OptStringInt) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUint64) UnmarshalJSON(data []byte) error { +func (s *OptStringInt) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes uint8 as json. -func (o OptNilUint8) Encode(e *jx.Encoder) { +// Encode encodes int16 as json. +func (o OptStringInt16) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - json.EncodeStringUint8(e, o.Value) + json.EncodeStringInt16(e, o.Value) } -// Decode decodes uint8 from json. -func (o *OptNilUint8) Decode(d *jx.Decoder) error { +// Decode decodes int16 from json. +func (o *OptStringInt16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUint8 to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v uint8 - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptStringInt16 to nil") } o.Set = true - o.Null = false - v, err := json.DecodeStringUint8(d) + v, err := json.DecodeStringInt16(d) if err != nil { return err } @@ -3623,49 +5005,33 @@ func (o *OptNilUint8) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUint8) MarshalJSON() ([]byte, error) { +func (s OptStringInt16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUint8) UnmarshalJSON(data []byte) error { +func (s *OptStringInt16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilUnixMicro) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int32 as json. +func (o OptStringInt32) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - format(e, o.Value) + json.EncodeStringInt32(e, o.Value) } -// Decode decodes time.Time from json. -func (o *OptNilUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int32 from json. +func (o *OptStringInt32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUnixMicro to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v time.Time - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptStringInt32 to nil") } o.Set = true - o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt32(d) if err != nil { return err } @@ -3674,49 +5040,33 @@ func (o *OptNilUnixMicro) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.T } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUnixMicro) MarshalJSON() ([]byte, error) { +func (s OptStringInt32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixMicro) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUnixMicro) UnmarshalJSON(data []byte) error { +func (s *OptStringInt32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixMicro) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilUnixMilli) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int64 as json. +func (o OptStringInt64) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - format(e, o.Value) + json.EncodeStringInt64(e, o.Value) } -// Decode decodes time.Time from json. -func (o *OptNilUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int64 from json. +func (o *OptStringInt64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUnixMilli to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v time.Time - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptStringInt64 to nil") } o.Set = true - o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt64(d) if err != nil { return err } @@ -3725,49 +5075,33 @@ func (o *OptNilUnixMilli) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.T } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUnixMilli) MarshalJSON() ([]byte, error) { +func (s OptStringInt64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixMilli) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUnixMilli) UnmarshalJSON(data []byte) error { +func (s *OptStringInt64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixMilli) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilUnixNano) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes int8 as json. +func (o OptStringInt8) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - format(e, o.Value) + json.EncodeStringInt8(e, o.Value) } -// Decode decodes time.Time from json. -func (o *OptNilUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes int8 from json. +func (o *OptStringInt8) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUnixNano to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v time.Time - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptStringInt8 to nil") } o.Set = true - o.Null = false - v, err := format(d) + v, err := json.DecodeStringInt8(d) if err != nil { return err } @@ -3776,49 +5110,33 @@ func (o *OptNilUnixNano) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Ti } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUnixNano) MarshalJSON() ([]byte, error) { +func (s OptStringInt8) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixNano) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUnixNano) UnmarshalJSON(data []byte) error { +func (s *OptStringInt8) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixNano) + return s.Decode(d) } -// Encode encodes time.Time as json. -func (o OptNilUnixSeconds) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) { +// Encode encodes uint as json. +func (o OptStringUint) Encode(e *jx.Encoder) { if !o.Set { return } - if o.Null { - e.Null() - return - } - format(e, o.Value) + json.EncodeStringUint(e, o.Value) } -// Decode decodes time.Time from json. -func (o *OptNilUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error { +// Decode decodes uint from json. +func (o *OptStringUint) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNilUnixSeconds to nil") - } - if d.Next() == jx.Null { - if err := d.Null(); err != nil { - return err - } - - var v time.Time - o.Value = v - o.Set = true - o.Null = true - return nil + return errors.New("invalid: unable to decode OptStringUint to nil") } o.Set = true - o.Null = false - v, err := format(d) + v, err := json.DecodeStringUint(d) if err != nil { return err } @@ -3827,101 +5145,103 @@ func (o *OptNilUnixSeconds) Decode(d *jx.Decoder, format func(*jx.Decoder) (time } // MarshalJSON implements stdjson.Marshaler. -func (s OptNilUnixSeconds) MarshalJSON() ([]byte, error) { +func (s OptStringUint) MarshalJSON() ([]byte, error) { e := jx.Encoder{} - s.Encode(&e, json.EncodeUnixSeconds) + s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNilUnixSeconds) UnmarshalJSON(data []byte) error { +func (s *OptStringUint) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) - return s.Decode(d, json.DecodeUnixSeconds) + return s.Decode(d) } -// Encode encodes struct{} as json. -func (o OptNull) Encode(e *jx.Encoder) { +// Encode encodes uint16 as json. +func (o OptStringUint16) Encode(e *jx.Encoder) { if !o.Set { return } - e.Null() + json.EncodeStringUint16(e, o.Value) } -// Decode decodes struct{} from json. -func (o *OptNull) Decode(d *jx.Decoder) error { +// Decode decodes uint16 from json. +func (o *OptStringUint16) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptNull to nil") + return errors.New("invalid: unable to decode OptStringUint16 to nil") } o.Set = true - if err := d.Null(); err != nil { + v, err := json.DecodeStringUint16(d) + if err != nil { return err } + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptNull) MarshalJSON() ([]byte, error) { +func (s OptStringUint16) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptNull) UnmarshalJSON(data []byte) error { +func (s *OptStringUint16) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes string as json. -func (o OptString) Encode(e *jx.Encoder) { +// Encode encodes uint32 as json. +func (o OptStringUint32) Encode(e *jx.Encoder) { if !o.Set { return } - e.Str(string(o.Value)) + json.EncodeStringUint32(e, o.Value) } -// Decode decodes string from json. -func (o *OptString) Decode(d *jx.Decoder) error { +// Decode decodes uint32 from json. +func (o *OptStringUint32) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptString to nil") + return errors.New("invalid: unable to decode OptStringUint32 to nil") } o.Set = true - v, err := d.Str() + v, err := json.DecodeStringUint32(d) if err != nil { return err } - o.Value = string(v) + o.Value = v return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptString) MarshalJSON() ([]byte, error) { +func (s OptStringUint32) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptString) UnmarshalJSON(data []byte) error { +func (s *OptStringUint32) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int32 as json. -func (o OptStringInt32) Encode(e *jx.Encoder) { +// Encode encodes uint64 as json. +func (o OptStringUint64) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringInt32(e, o.Value) + json.EncodeStringUint64(e, o.Value) } -// Decode decodes int32 from json. -func (o *OptStringInt32) Decode(d *jx.Decoder) error { +// Decode decodes uint64 from json. +func (o *OptStringUint64) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptStringInt32 to nil") + return errors.New("invalid: unable to decode OptStringUint64 to nil") } o.Set = true - v, err := json.DecodeStringInt32(d) + v, err := json.DecodeStringUint64(d) if err != nil { return err } @@ -3930,33 +5250,33 @@ func (o *OptStringInt32) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptStringInt32) MarshalJSON() ([]byte, error) { +func (s OptStringUint64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptStringInt32) UnmarshalJSON(data []byte) error { +func (s *OptStringUint64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } -// Encode encodes int64 as json. -func (o OptStringInt64) Encode(e *jx.Encoder) { +// Encode encodes uint8 as json. +func (o OptStringUint8) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringInt64(e, o.Value) + json.EncodeStringUint8(e, o.Value) } -// Decode decodes int64 from json. -func (o *OptStringInt64) Decode(d *jx.Decoder) error { +// Decode decodes uint8 from json. +func (o *OptStringUint8) Decode(d *jx.Decoder) error { if o == nil { - return errors.New("invalid: unable to decode OptStringInt64 to nil") + return errors.New("invalid: unable to decode OptStringUint8 to nil") } o.Set = true - v, err := json.DecodeStringInt64(d) + v, err := json.DecodeStringUint8(d) if err != nil { return err } @@ -3965,14 +5285,14 @@ func (o *OptStringInt64) Decode(d *jx.Decoder) error { } // MarshalJSON implements stdjson.Marshaler. -func (s OptStringInt64) MarshalJSON() ([]byte, error) { +func (s OptStringUint8) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptStringInt64) UnmarshalJSON(data []byte) error { +func (s *OptStringUint8) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } @@ -4260,7 +5580,7 @@ func (o OptUint) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringUint(e, o.Value) + e.UInt(uint(o.Value)) } // Decode decodes uint from json. @@ -4269,11 +5589,11 @@ func (o *OptUint) Decode(d *jx.Decoder) error { return errors.New("invalid: unable to decode OptUint to nil") } o.Set = true - v, err := json.DecodeStringUint(d) + v, err := d.UInt() if err != nil { return err } - o.Value = v + o.Value = uint(v) return nil } @@ -4295,7 +5615,7 @@ func (o OptUint16) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringUint16(e, o.Value) + e.UInt16(uint16(o.Value)) } // Decode decodes uint16 from json. @@ -4304,11 +5624,11 @@ func (o *OptUint16) Decode(d *jx.Decoder) error { return errors.New("invalid: unable to decode OptUint16 to nil") } o.Set = true - v, err := json.DecodeStringUint16(d) + v, err := d.UInt16() if err != nil { return err } - o.Value = v + o.Value = uint16(v) return nil } @@ -4330,7 +5650,7 @@ func (o OptUint32) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringUint32(e, o.Value) + e.UInt32(uint32(o.Value)) } // Decode decodes uint32 from json. @@ -4339,11 +5659,11 @@ func (o *OptUint32) Decode(d *jx.Decoder) error { return errors.New("invalid: unable to decode OptUint32 to nil") } o.Set = true - v, err := json.DecodeStringUint32(d) + v, err := d.UInt32() if err != nil { return err } - o.Value = v + o.Value = uint32(v) return nil } @@ -4365,7 +5685,7 @@ func (o OptUint64) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringUint64(e, o.Value) + e.UInt64(uint64(o.Value)) } // Decode decodes uint64 from json. @@ -4374,11 +5694,11 @@ func (o *OptUint64) Decode(d *jx.Decoder) error { return errors.New("invalid: unable to decode OptUint64 to nil") } o.Set = true - v, err := json.DecodeStringUint64(d) + v, err := d.UInt64() if err != nil { return err } - o.Value = v + o.Value = uint64(v) return nil } @@ -4400,7 +5720,7 @@ func (o OptUint8) Encode(e *jx.Encoder) { if !o.Set { return } - json.EncodeStringUint8(e, o.Value) + e.UInt8(uint8(o.Value)) } // Decode decodes uint8 from json. @@ -4409,11 +5729,11 @@ func (o *OptUint8) Decode(d *jx.Decoder) error { return errors.New("invalid: unable to decode OptUint8 to nil") } o.Set = true - v, err := json.DecodeStringUint8(d) + v, err := d.UInt8() if err != nil { return err } - o.Value = v + o.Value = uint8(v) return nil } diff --git a/examples/ex_test_format/oas_request_decoders_gen.go b/examples/ex_test_format/oas_request_decoders_gen.go index 6df98374c..81df8acfd 100644 --- a/examples/ex_test_format/oas_request_decoders_gen.go +++ b/examples/ex_test_format/oas_request_decoders_gen.go @@ -27197,7 +27197,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat32ArrayArrayRequest(r *http } func (s *Server) decodeTestRequestRequiredStringFloat32NullableRequest(r *http.Request) ( - req NilFloat32, + req NilStringFloat32, close func() error, rerr error, ) { @@ -27236,7 +27236,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat32NullableRequest(r *http.R d := jx.DecodeBytes(buf) - var request NilFloat32 + var request NilStringFloat32 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -27275,7 +27275,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat32NullableRequest(r *http.R } func (s *Server) decodeTestRequestRequiredStringFloat32NullableArrayRequest(r *http.Request) ( - req []NilFloat32, + req []NilStringFloat32, close func() error, rerr error, ) { @@ -27314,11 +27314,11 @@ func (s *Server) decodeTestRequestRequiredStringFloat32NullableArrayRequest(r *h d := jx.DecodeBytes(buf) - var request []NilFloat32 + var request []NilStringFloat32 if err := func() error { - request = make([]NilFloat32, 0) + request = make([]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilFloat32 + var elem NilStringFloat32 if err := elem.Decode(d); err != nil { return err } @@ -27378,7 +27378,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat32NullableArrayRequest(r *h } func (s *Server) decodeTestRequestRequiredStringFloat32NullableArrayArrayRequest(r *http.Request) ( - req [][]NilFloat32, + req [][]NilStringFloat32, close func() error, rerr error, ) { @@ -27417,14 +27417,14 @@ func (s *Server) decodeTestRequestRequiredStringFloat32NullableArrayArrayRequest d := jx.DecodeBytes(buf) - var request [][]NilFloat32 + var request [][]NilStringFloat32 if err := func() error { - request = make([][]NilFloat32, 0) + request = make([][]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilFloat32 - elem = make([]NilFloat32, 0) + var elem []NilStringFloat32 + elem = make([]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilFloat32 + var elemElem NilStringFloat32 if err := elemElem.Decode(d); err != nil { return err } @@ -27800,7 +27800,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat64ArrayArrayRequest(r *http } func (s *Server) decodeTestRequestRequiredStringFloat64NullableRequest(r *http.Request) ( - req NilFloat64, + req NilStringFloat64, close func() error, rerr error, ) { @@ -27839,7 +27839,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat64NullableRequest(r *http.R d := jx.DecodeBytes(buf) - var request NilFloat64 + var request NilStringFloat64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -27878,7 +27878,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat64NullableRequest(r *http.R } func (s *Server) decodeTestRequestRequiredStringFloat64NullableArrayRequest(r *http.Request) ( - req []NilFloat64, + req []NilStringFloat64, close func() error, rerr error, ) { @@ -27917,11 +27917,11 @@ func (s *Server) decodeTestRequestRequiredStringFloat64NullableArrayRequest(r *h d := jx.DecodeBytes(buf) - var request []NilFloat64 + var request []NilStringFloat64 if err := func() error { - request = make([]NilFloat64, 0) + request = make([]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilFloat64 + var elem NilStringFloat64 if err := elem.Decode(d); err != nil { return err } @@ -27981,7 +27981,7 @@ func (s *Server) decodeTestRequestRequiredStringFloat64NullableArrayRequest(r *h } func (s *Server) decodeTestRequestRequiredStringFloat64NullableArrayArrayRequest(r *http.Request) ( - req [][]NilFloat64, + req [][]NilStringFloat64, close func() error, rerr error, ) { @@ -28020,14 +28020,14 @@ func (s *Server) decodeTestRequestRequiredStringFloat64NullableArrayArrayRequest d := jx.DecodeBytes(buf) - var request [][]NilFloat64 + var request [][]NilStringFloat64 if err := func() error { - request = make([][]NilFloat64, 0) + request = make([][]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilFloat64 - elem = make([]NilFloat64, 0) + var elem []NilStringFloat64 + elem = make([]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilFloat64 + var elemElem NilStringFloat64 if err := elemElem.Decode(d); err != nil { return err } @@ -29575,7 +29575,7 @@ func (s *Server) decodeTestRequestRequiredStringInt16ArrayArrayRequest(r *http.R } func (s *Server) decodeTestRequestRequiredStringInt16NullableRequest(r *http.Request) ( - req NilInt16, + req NilStringInt16, close func() error, rerr error, ) { @@ -29614,7 +29614,7 @@ func (s *Server) decodeTestRequestRequiredStringInt16NullableRequest(r *http.Req d := jx.DecodeBytes(buf) - var request NilInt16 + var request NilStringInt16 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -29638,7 +29638,7 @@ func (s *Server) decodeTestRequestRequiredStringInt16NullableRequest(r *http.Req } func (s *Server) decodeTestRequestRequiredStringInt16NullableArrayRequest(r *http.Request) ( - req []NilInt16, + req []NilStringInt16, close func() error, rerr error, ) { @@ -29677,11 +29677,11 @@ func (s *Server) decodeTestRequestRequiredStringInt16NullableArrayRequest(r *htt d := jx.DecodeBytes(buf) - var request []NilInt16 + var request []NilStringInt16 if err := func() error { - request = make([]NilInt16, 0) + request = make([]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt16 + var elem NilStringInt16 if err := elem.Decode(d); err != nil { return err } @@ -29717,7 +29717,7 @@ func (s *Server) decodeTestRequestRequiredStringInt16NullableArrayRequest(r *htt } func (s *Server) decodeTestRequestRequiredStringInt16NullableArrayArrayRequest(r *http.Request) ( - req [][]NilInt16, + req [][]NilStringInt16, close func() error, rerr error, ) { @@ -29756,14 +29756,14 @@ func (s *Server) decodeTestRequestRequiredStringInt16NullableArrayArrayRequest(r d := jx.DecodeBytes(buf) - var request [][]NilInt16 + var request [][]NilStringInt16 if err := func() error { - request = make([][]NilInt16, 0) + request = make([][]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt16 - elem = make([]NilInt16, 0) + var elem []NilStringInt16 + elem = make([]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt16 + var elemElem NilStringInt16 if err := elemElem.Decode(d); err != nil { return err } @@ -31069,7 +31069,7 @@ func (s *Server) decodeTestRequestRequiredStringInt8ArrayArrayRequest(r *http.Re } func (s *Server) decodeTestRequestRequiredStringInt8NullableRequest(r *http.Request) ( - req NilInt8, + req NilStringInt8, close func() error, rerr error, ) { @@ -31108,7 +31108,7 @@ func (s *Server) decodeTestRequestRequiredStringInt8NullableRequest(r *http.Requ d := jx.DecodeBytes(buf) - var request NilInt8 + var request NilStringInt8 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -31132,7 +31132,7 @@ func (s *Server) decodeTestRequestRequiredStringInt8NullableRequest(r *http.Requ } func (s *Server) decodeTestRequestRequiredStringInt8NullableArrayRequest(r *http.Request) ( - req []NilInt8, + req []NilStringInt8, close func() error, rerr error, ) { @@ -31171,11 +31171,11 @@ func (s *Server) decodeTestRequestRequiredStringInt8NullableArrayRequest(r *http d := jx.DecodeBytes(buf) - var request []NilInt8 + var request []NilStringInt8 if err := func() error { - request = make([]NilInt8, 0) + request = make([]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt8 + var elem NilStringInt8 if err := elem.Decode(d); err != nil { return err } @@ -31211,7 +31211,7 @@ func (s *Server) decodeTestRequestRequiredStringInt8NullableArrayRequest(r *http } func (s *Server) decodeTestRequestRequiredStringInt8NullableArrayArrayRequest(r *http.Request) ( - req [][]NilInt8, + req [][]NilStringInt8, close func() error, rerr error, ) { @@ -31250,14 +31250,14 @@ func (s *Server) decodeTestRequestRequiredStringInt8NullableArrayArrayRequest(r d := jx.DecodeBytes(buf) - var request [][]NilInt8 + var request [][]NilStringInt8 if err := func() error { - request = make([][]NilInt8, 0) + request = make([][]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt8 - elem = make([]NilInt8, 0) + var elem []NilStringInt8 + elem = make([]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt8 + var elemElem NilStringInt8 if err := elemElem.Decode(d); err != nil { return err } @@ -31502,7 +31502,7 @@ func (s *Server) decodeTestRequestRequiredStringIntArrayArrayRequest(r *http.Req } func (s *Server) decodeTestRequestRequiredStringIntNullableRequest(r *http.Request) ( - req NilInt, + req NilStringInt, close func() error, rerr error, ) { @@ -31541,7 +31541,7 @@ func (s *Server) decodeTestRequestRequiredStringIntNullableRequest(r *http.Reque d := jx.DecodeBytes(buf) - var request NilInt + var request NilStringInt if err := func() error { if err := request.Decode(d); err != nil { return err @@ -31565,7 +31565,7 @@ func (s *Server) decodeTestRequestRequiredStringIntNullableRequest(r *http.Reque } func (s *Server) decodeTestRequestRequiredStringIntNullableArrayRequest(r *http.Request) ( - req []NilInt, + req []NilStringInt, close func() error, rerr error, ) { @@ -31604,11 +31604,11 @@ func (s *Server) decodeTestRequestRequiredStringIntNullableArrayRequest(r *http. d := jx.DecodeBytes(buf) - var request []NilInt + var request []NilStringInt if err := func() error { - request = make([]NilInt, 0) + request = make([]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt + var elem NilStringInt if err := elem.Decode(d); err != nil { return err } @@ -31644,7 +31644,7 @@ func (s *Server) decodeTestRequestRequiredStringIntNullableArrayRequest(r *http. } func (s *Server) decodeTestRequestRequiredStringIntNullableArrayArrayRequest(r *http.Request) ( - req [][]NilInt, + req [][]NilStringInt, close func() error, rerr error, ) { @@ -31683,14 +31683,14 @@ func (s *Server) decodeTestRequestRequiredStringIntNullableArrayArrayRequest(r * d := jx.DecodeBytes(buf) - var request [][]NilInt + var request [][]NilStringInt if err := func() error { - request = make([][]NilInt, 0) + request = make([][]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt - elem = make([]NilInt, 0) + var elem []NilStringInt + elem = make([]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt + var elemElem NilStringInt if err := elemElem.Decode(d); err != nil { return err } @@ -35299,7 +35299,7 @@ func (s *Server) decodeTestRequestRequiredStringUint16ArrayArrayRequest(r *http. } func (s *Server) decodeTestRequestRequiredStringUint16NullableRequest(r *http.Request) ( - req NilUint16, + req NilStringUint16, close func() error, rerr error, ) { @@ -35338,7 +35338,7 @@ func (s *Server) decodeTestRequestRequiredStringUint16NullableRequest(r *http.Re d := jx.DecodeBytes(buf) - var request NilUint16 + var request NilStringUint16 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -35362,7 +35362,7 @@ func (s *Server) decodeTestRequestRequiredStringUint16NullableRequest(r *http.Re } func (s *Server) decodeTestRequestRequiredStringUint16NullableArrayRequest(r *http.Request) ( - req []NilUint16, + req []NilStringUint16, close func() error, rerr error, ) { @@ -35401,11 +35401,11 @@ func (s *Server) decodeTestRequestRequiredStringUint16NullableArrayRequest(r *ht d := jx.DecodeBytes(buf) - var request []NilUint16 + var request []NilStringUint16 if err := func() error { - request = make([]NilUint16, 0) + request = make([]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint16 + var elem NilStringUint16 if err := elem.Decode(d); err != nil { return err } @@ -35441,7 +35441,7 @@ func (s *Server) decodeTestRequestRequiredStringUint16NullableArrayRequest(r *ht } func (s *Server) decodeTestRequestRequiredStringUint16NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint16, + req [][]NilStringUint16, close func() error, rerr error, ) { @@ -35480,14 +35480,14 @@ func (s *Server) decodeTestRequestRequiredStringUint16NullableArrayArrayRequest( d := jx.DecodeBytes(buf) - var request [][]NilUint16 + var request [][]NilStringUint16 if err := func() error { - request = make([][]NilUint16, 0) + request = make([][]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint16 - elem = make([]NilUint16, 0) + var elem []NilStringUint16 + elem = make([]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint16 + var elemElem NilStringUint16 if err := elemElem.Decode(d); err != nil { return err } @@ -35797,7 +35797,7 @@ func (s *Server) decodeTestRequestRequiredStringUint32ArrayArrayRequest(r *http. } func (s *Server) decodeTestRequestRequiredStringUint32NullableRequest(r *http.Request) ( - req NilUint32, + req NilStringUint32, close func() error, rerr error, ) { @@ -35836,7 +35836,7 @@ func (s *Server) decodeTestRequestRequiredStringUint32NullableRequest(r *http.Re d := jx.DecodeBytes(buf) - var request NilUint32 + var request NilStringUint32 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -35860,7 +35860,7 @@ func (s *Server) decodeTestRequestRequiredStringUint32NullableRequest(r *http.Re } func (s *Server) decodeTestRequestRequiredStringUint32NullableArrayRequest(r *http.Request) ( - req []NilUint32, + req []NilStringUint32, close func() error, rerr error, ) { @@ -35899,11 +35899,11 @@ func (s *Server) decodeTestRequestRequiredStringUint32NullableArrayRequest(r *ht d := jx.DecodeBytes(buf) - var request []NilUint32 + var request []NilStringUint32 if err := func() error { - request = make([]NilUint32, 0) + request = make([]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint32 + var elem NilStringUint32 if err := elem.Decode(d); err != nil { return err } @@ -35939,7 +35939,7 @@ func (s *Server) decodeTestRequestRequiredStringUint32NullableArrayRequest(r *ht } func (s *Server) decodeTestRequestRequiredStringUint32NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint32, + req [][]NilStringUint32, close func() error, rerr error, ) { @@ -35978,14 +35978,14 @@ func (s *Server) decodeTestRequestRequiredStringUint32NullableArrayArrayRequest( d := jx.DecodeBytes(buf) - var request [][]NilUint32 + var request [][]NilStringUint32 if err := func() error { - request = make([][]NilUint32, 0) + request = make([][]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint32 - elem = make([]NilUint32, 0) + var elem []NilStringUint32 + elem = make([]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint32 + var elemElem NilStringUint32 if err := elemElem.Decode(d); err != nil { return err } @@ -36295,7 +36295,7 @@ func (s *Server) decodeTestRequestRequiredStringUint64ArrayArrayRequest(r *http. } func (s *Server) decodeTestRequestRequiredStringUint64NullableRequest(r *http.Request) ( - req NilUint64, + req NilStringUint64, close func() error, rerr error, ) { @@ -36334,7 +36334,7 @@ func (s *Server) decodeTestRequestRequiredStringUint64NullableRequest(r *http.Re d := jx.DecodeBytes(buf) - var request NilUint64 + var request NilStringUint64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -36358,7 +36358,7 @@ func (s *Server) decodeTestRequestRequiredStringUint64NullableRequest(r *http.Re } func (s *Server) decodeTestRequestRequiredStringUint64NullableArrayRequest(r *http.Request) ( - req []NilUint64, + req []NilStringUint64, close func() error, rerr error, ) { @@ -36397,11 +36397,11 @@ func (s *Server) decodeTestRequestRequiredStringUint64NullableArrayRequest(r *ht d := jx.DecodeBytes(buf) - var request []NilUint64 + var request []NilStringUint64 if err := func() error { - request = make([]NilUint64, 0) + request = make([]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint64 + var elem NilStringUint64 if err := elem.Decode(d); err != nil { return err } @@ -36437,7 +36437,7 @@ func (s *Server) decodeTestRequestRequiredStringUint64NullableArrayRequest(r *ht } func (s *Server) decodeTestRequestRequiredStringUint64NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint64, + req [][]NilStringUint64, close func() error, rerr error, ) { @@ -36476,14 +36476,14 @@ func (s *Server) decodeTestRequestRequiredStringUint64NullableArrayArrayRequest( d := jx.DecodeBytes(buf) - var request [][]NilUint64 + var request [][]NilStringUint64 if err := func() error { - request = make([][]NilUint64, 0) + request = make([][]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint64 - elem = make([]NilUint64, 0) + var elem []NilStringUint64 + elem = make([]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint64 + var elemElem NilStringUint64 if err := elemElem.Decode(d); err != nil { return err } @@ -36793,7 +36793,7 @@ func (s *Server) decodeTestRequestRequiredStringUint8ArrayArrayRequest(r *http.R } func (s *Server) decodeTestRequestRequiredStringUint8NullableRequest(r *http.Request) ( - req NilUint8, + req NilStringUint8, close func() error, rerr error, ) { @@ -36832,7 +36832,7 @@ func (s *Server) decodeTestRequestRequiredStringUint8NullableRequest(r *http.Req d := jx.DecodeBytes(buf) - var request NilUint8 + var request NilStringUint8 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -36856,7 +36856,7 @@ func (s *Server) decodeTestRequestRequiredStringUint8NullableRequest(r *http.Req } func (s *Server) decodeTestRequestRequiredStringUint8NullableArrayRequest(r *http.Request) ( - req []NilUint8, + req []NilStringUint8, close func() error, rerr error, ) { @@ -36895,11 +36895,11 @@ func (s *Server) decodeTestRequestRequiredStringUint8NullableArrayRequest(r *htt d := jx.DecodeBytes(buf) - var request []NilUint8 + var request []NilStringUint8 if err := func() error { - request = make([]NilUint8, 0) + request = make([]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint8 + var elem NilStringUint8 if err := elem.Decode(d); err != nil { return err } @@ -36935,7 +36935,7 @@ func (s *Server) decodeTestRequestRequiredStringUint8NullableArrayRequest(r *htt } func (s *Server) decodeTestRequestRequiredStringUint8NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint8, + req [][]NilStringUint8, close func() error, rerr error, ) { @@ -36974,14 +36974,14 @@ func (s *Server) decodeTestRequestRequiredStringUint8NullableArrayArrayRequest(r d := jx.DecodeBytes(buf) - var request [][]NilUint8 + var request [][]NilStringUint8 if err := func() error { - request = make([][]NilUint8, 0) + request = make([][]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint8 - elem = make([]NilUint8, 0) + var elem []NilStringUint8 + elem = make([]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint8 + var elemElem NilStringUint8 if err := elemElem.Decode(d); err != nil { return err } @@ -37226,7 +37226,7 @@ func (s *Server) decodeTestRequestRequiredStringUintArrayArrayRequest(r *http.Re } func (s *Server) decodeTestRequestRequiredStringUintNullableRequest(r *http.Request) ( - req NilUint, + req NilStringUint, close func() error, rerr error, ) { @@ -37265,7 +37265,7 @@ func (s *Server) decodeTestRequestRequiredStringUintNullableRequest(r *http.Requ d := jx.DecodeBytes(buf) - var request NilUint + var request NilStringUint if err := func() error { if err := request.Decode(d); err != nil { return err @@ -37289,7 +37289,7 @@ func (s *Server) decodeTestRequestRequiredStringUintNullableRequest(r *http.Requ } func (s *Server) decodeTestRequestRequiredStringUintNullableArrayRequest(r *http.Request) ( - req []NilUint, + req []NilStringUint, close func() error, rerr error, ) { @@ -37328,11 +37328,11 @@ func (s *Server) decodeTestRequestRequiredStringUintNullableArrayRequest(r *http d := jx.DecodeBytes(buf) - var request []NilUint + var request []NilStringUint if err := func() error { - request = make([]NilUint, 0) + request = make([]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint + var elem NilStringUint if err := elem.Decode(d); err != nil { return err } @@ -37368,7 +37368,7 @@ func (s *Server) decodeTestRequestRequiredStringUintNullableArrayRequest(r *http } func (s *Server) decodeTestRequestRequiredStringUintNullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint, + req [][]NilStringUint, close func() error, rerr error, ) { @@ -37407,14 +37407,14 @@ func (s *Server) decodeTestRequestRequiredStringUintNullableArrayArrayRequest(r d := jx.DecodeBytes(buf) - var request [][]NilUint + var request [][]NilStringUint if err := func() error { - request = make([][]NilUint, 0) + request = make([][]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint - elem = make([]NilUint, 0) + var elem []NilStringUint + elem = make([]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint + var elemElem NilStringUint if err := elemElem.Decode(d); err != nil { return err } @@ -43849,7 +43849,7 @@ func (s *Server) decodeTestRequestStringEmailNullableArrayArrayRequest(r *http.R } func (s *Server) decodeTestRequestStringFloat32Request(r *http.Request) ( - req OptFloat32, + req OptStringFloat32, close func() error, rerr error, ) { @@ -43891,7 +43891,7 @@ func (s *Server) decodeTestRequestStringFloat32Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptFloat32 + var request OptStringFloat32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -44152,7 +44152,7 @@ func (s *Server) decodeTestRequestStringFloat32ArrayArrayRequest(r *http.Request } func (s *Server) decodeTestRequestStringFloat32NullableRequest(r *http.Request) ( - req OptNilFloat32, + req OptNilStringFloat32, close func() error, rerr error, ) { @@ -44194,7 +44194,7 @@ func (s *Server) decodeTestRequestStringFloat32NullableRequest(r *http.Request) d := jx.DecodeBytes(buf) - var request OptNilFloat32 + var request OptNilStringFloat32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -44234,7 +44234,7 @@ func (s *Server) decodeTestRequestStringFloat32NullableRequest(r *http.Request) } func (s *Server) decodeTestRequestStringFloat32NullableArrayRequest(r *http.Request) ( - req []NilFloat32, + req []NilStringFloat32, close func() error, rerr error, ) { @@ -44276,11 +44276,11 @@ func (s *Server) decodeTestRequestStringFloat32NullableArrayRequest(r *http.Requ d := jx.DecodeBytes(buf) - var request []NilFloat32 + var request []NilStringFloat32 if err := func() error { - request = make([]NilFloat32, 0) + request = make([]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilFloat32 + var elem NilStringFloat32 if err := elem.Decode(d); err != nil { return err } @@ -44337,7 +44337,7 @@ func (s *Server) decodeTestRequestStringFloat32NullableArrayRequest(r *http.Requ } func (s *Server) decodeTestRequestStringFloat32NullableArrayArrayRequest(r *http.Request) ( - req [][]NilFloat32, + req [][]NilStringFloat32, close func() error, rerr error, ) { @@ -44379,14 +44379,14 @@ func (s *Server) decodeTestRequestStringFloat32NullableArrayArrayRequest(r *http d := jx.DecodeBytes(buf) - var request [][]NilFloat32 + var request [][]NilStringFloat32 if err := func() error { - request = make([][]NilFloat32, 0) + request = make([][]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilFloat32 - elem = make([]NilFloat32, 0) + var elem []NilStringFloat32 + elem = make([]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilFloat32 + var elemElem NilStringFloat32 if err := elemElem.Decode(d); err != nil { return err } @@ -44465,7 +44465,7 @@ func (s *Server) decodeTestRequestStringFloat32NullableArrayArrayRequest(r *http } func (s *Server) decodeTestRequestStringFloat64Request(r *http.Request) ( - req OptFloat64, + req OptStringFloat64, close func() error, rerr error, ) { @@ -44507,7 +44507,7 @@ func (s *Server) decodeTestRequestStringFloat64Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptFloat64 + var request OptStringFloat64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -44768,7 +44768,7 @@ func (s *Server) decodeTestRequestStringFloat64ArrayArrayRequest(r *http.Request } func (s *Server) decodeTestRequestStringFloat64NullableRequest(r *http.Request) ( - req OptNilFloat64, + req OptNilStringFloat64, close func() error, rerr error, ) { @@ -44810,7 +44810,7 @@ func (s *Server) decodeTestRequestStringFloat64NullableRequest(r *http.Request) d := jx.DecodeBytes(buf) - var request OptNilFloat64 + var request OptNilStringFloat64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -44850,7 +44850,7 @@ func (s *Server) decodeTestRequestStringFloat64NullableRequest(r *http.Request) } func (s *Server) decodeTestRequestStringFloat64NullableArrayRequest(r *http.Request) ( - req []NilFloat64, + req []NilStringFloat64, close func() error, rerr error, ) { @@ -44892,11 +44892,11 @@ func (s *Server) decodeTestRequestStringFloat64NullableArrayRequest(r *http.Requ d := jx.DecodeBytes(buf) - var request []NilFloat64 + var request []NilStringFloat64 if err := func() error { - request = make([]NilFloat64, 0) + request = make([]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilFloat64 + var elem NilStringFloat64 if err := elem.Decode(d); err != nil { return err } @@ -44953,7 +44953,7 @@ func (s *Server) decodeTestRequestStringFloat64NullableArrayRequest(r *http.Requ } func (s *Server) decodeTestRequestStringFloat64NullableArrayArrayRequest(r *http.Request) ( - req [][]NilFloat64, + req [][]NilStringFloat64, close func() error, rerr error, ) { @@ -44995,14 +44995,14 @@ func (s *Server) decodeTestRequestStringFloat64NullableArrayArrayRequest(r *http d := jx.DecodeBytes(buf) - var request [][]NilFloat64 + var request [][]NilStringFloat64 if err := func() error { - request = make([][]NilFloat64, 0) + request = make([][]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilFloat64 - elem = make([]NilFloat64, 0) + var elem []NilStringFloat64 + elem = make([]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilFloat64 + var elemElem NilStringFloat64 if err := elemElem.Decode(d); err != nil { return err } @@ -46239,7 +46239,7 @@ func (s *Server) decodeTestRequestStringIPNullableArrayArrayRequest(r *http.Requ } func (s *Server) decodeTestRequestStringIntRequest(r *http.Request) ( - req OptInt, + req OptStringInt, close func() error, rerr error, ) { @@ -46281,7 +46281,7 @@ func (s *Server) decodeTestRequestStringIntRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptInt + var request OptStringInt if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -46306,7 +46306,7 @@ func (s *Server) decodeTestRequestStringIntRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringInt16Request(r *http.Request) ( - req OptInt16, + req OptStringInt16, close func() error, rerr error, ) { @@ -46348,7 +46348,7 @@ func (s *Server) decodeTestRequestStringInt16Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptInt16 + var request OptStringInt16 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -46555,7 +46555,7 @@ func (s *Server) decodeTestRequestStringInt16ArrayArrayRequest(r *http.Request) } func (s *Server) decodeTestRequestStringInt16NullableRequest(r *http.Request) ( - req OptNilInt16, + req OptNilStringInt16, close func() error, rerr error, ) { @@ -46597,7 +46597,7 @@ func (s *Server) decodeTestRequestStringInt16NullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilInt16 + var request OptNilStringInt16 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -46622,7 +46622,7 @@ func (s *Server) decodeTestRequestStringInt16NullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringInt16NullableArrayRequest(r *http.Request) ( - req []NilInt16, + req []NilStringInt16, close func() error, rerr error, ) { @@ -46664,11 +46664,11 @@ func (s *Server) decodeTestRequestStringInt16NullableArrayRequest(r *http.Reques d := jx.DecodeBytes(buf) - var request []NilInt16 + var request []NilStringInt16 if err := func() error { - request = make([]NilInt16, 0) + request = make([]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt16 + var elem NilStringInt16 if err := elem.Decode(d); err != nil { return err } @@ -46696,7 +46696,7 @@ func (s *Server) decodeTestRequestStringInt16NullableArrayRequest(r *http.Reques } func (s *Server) decodeTestRequestStringInt16NullableArrayArrayRequest(r *http.Request) ( - req [][]NilInt16, + req [][]NilStringInt16, close func() error, rerr error, ) { @@ -46738,14 +46738,14 @@ func (s *Server) decodeTestRequestStringInt16NullableArrayArrayRequest(r *http.R d := jx.DecodeBytes(buf) - var request [][]NilInt16 + var request [][]NilStringInt16 if err := func() error { - request = make([][]NilInt16, 0) + request = make([][]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt16 - elem = make([]NilInt16, 0) + var elem []NilStringInt16 + elem = make([]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt16 + var elemElem NilStringInt16 if err := elemElem.Decode(d); err != nil { return err } @@ -47788,7 +47788,7 @@ func (s *Server) decodeTestRequestStringInt64NullableArrayArrayRequest(r *http.R } func (s *Server) decodeTestRequestStringInt8Request(r *http.Request) ( - req OptInt8, + req OptStringInt8, close func() error, rerr error, ) { @@ -47830,7 +47830,7 @@ func (s *Server) decodeTestRequestStringInt8Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptInt8 + var request OptStringInt8 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -48037,7 +48037,7 @@ func (s *Server) decodeTestRequestStringInt8ArrayArrayRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringInt8NullableRequest(r *http.Request) ( - req OptNilInt8, + req OptNilStringInt8, close func() error, rerr error, ) { @@ -48079,7 +48079,7 @@ func (s *Server) decodeTestRequestStringInt8NullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilInt8 + var request OptNilStringInt8 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -48104,7 +48104,7 @@ func (s *Server) decodeTestRequestStringInt8NullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringInt8NullableArrayRequest(r *http.Request) ( - req []NilInt8, + req []NilStringInt8, close func() error, rerr error, ) { @@ -48146,11 +48146,11 @@ func (s *Server) decodeTestRequestStringInt8NullableArrayRequest(r *http.Request d := jx.DecodeBytes(buf) - var request []NilInt8 + var request []NilStringInt8 if err := func() error { - request = make([]NilInt8, 0) + request = make([]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt8 + var elem NilStringInt8 if err := elem.Decode(d); err != nil { return err } @@ -48178,7 +48178,7 @@ func (s *Server) decodeTestRequestStringInt8NullableArrayRequest(r *http.Request } func (s *Server) decodeTestRequestStringInt8NullableArrayArrayRequest(r *http.Request) ( - req [][]NilInt8, + req [][]NilStringInt8, close func() error, rerr error, ) { @@ -48220,14 +48220,14 @@ func (s *Server) decodeTestRequestStringInt8NullableArrayArrayRequest(r *http.Re d := jx.DecodeBytes(buf) - var request [][]NilInt8 + var request [][]NilStringInt8 if err := func() error { - request = make([][]NilInt8, 0) + request = make([][]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt8 - elem = make([]NilInt8, 0) + var elem []NilStringInt8 + elem = make([]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt8 + var elemElem NilStringInt8 if err := elemElem.Decode(d); err != nil { return err } @@ -48464,7 +48464,7 @@ func (s *Server) decodeTestRequestStringIntArrayArrayRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringIntNullableRequest(r *http.Request) ( - req OptNilInt, + req OptNilStringInt, close func() error, rerr error, ) { @@ -48506,7 +48506,7 @@ func (s *Server) decodeTestRequestStringIntNullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilInt + var request OptNilStringInt if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -48531,7 +48531,7 @@ func (s *Server) decodeTestRequestStringIntNullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringIntNullableArrayRequest(r *http.Request) ( - req []NilInt, + req []NilStringInt, close func() error, rerr error, ) { @@ -48573,11 +48573,11 @@ func (s *Server) decodeTestRequestStringIntNullableArrayRequest(r *http.Request) d := jx.DecodeBytes(buf) - var request []NilInt + var request []NilStringInt if err := func() error { - request = make([]NilInt, 0) + request = make([]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt + var elem NilStringInt if err := elem.Decode(d); err != nil { return err } @@ -48605,7 +48605,7 @@ func (s *Server) decodeTestRequestStringIntNullableArrayRequest(r *http.Request) } func (s *Server) decodeTestRequestStringIntNullableArrayArrayRequest(r *http.Request) ( - req [][]NilInt, + req [][]NilStringInt, close func() error, rerr error, ) { @@ -48647,14 +48647,14 @@ func (s *Server) decodeTestRequestStringIntNullableArrayArrayRequest(r *http.Req d := jx.DecodeBytes(buf) - var request [][]NilInt + var request [][]NilStringInt if err := func() error { - request = make([][]NilInt, 0) + request = make([][]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt - elem = make([]NilInt, 0) + var elem []NilStringInt + elem = make([]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt + var elemElem NilStringInt if err := elemElem.Decode(d); err != nil { return err } @@ -51918,7 +51918,7 @@ func (s *Server) decodeTestRequestStringUUIDNullableArrayArrayRequest(r *http.Re } func (s *Server) decodeTestRequestStringUintRequest(r *http.Request) ( - req OptUint, + req OptStringUint, close func() error, rerr error, ) { @@ -51960,7 +51960,7 @@ func (s *Server) decodeTestRequestStringUintRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptUint + var request OptStringUint if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -51985,7 +51985,7 @@ func (s *Server) decodeTestRequestStringUintRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringUint16Request(r *http.Request) ( - req OptUint16, + req OptStringUint16, close func() error, rerr error, ) { @@ -52027,7 +52027,7 @@ func (s *Server) decodeTestRequestStringUint16Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptUint16 + var request OptStringUint16 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -52234,7 +52234,7 @@ func (s *Server) decodeTestRequestStringUint16ArrayArrayRequest(r *http.Request) } func (s *Server) decodeTestRequestStringUint16NullableRequest(r *http.Request) ( - req OptNilUint16, + req OptNilStringUint16, close func() error, rerr error, ) { @@ -52276,7 +52276,7 @@ func (s *Server) decodeTestRequestStringUint16NullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilUint16 + var request OptNilStringUint16 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -52301,7 +52301,7 @@ func (s *Server) decodeTestRequestStringUint16NullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringUint16NullableArrayRequest(r *http.Request) ( - req []NilUint16, + req []NilStringUint16, close func() error, rerr error, ) { @@ -52343,11 +52343,11 @@ func (s *Server) decodeTestRequestStringUint16NullableArrayRequest(r *http.Reque d := jx.DecodeBytes(buf) - var request []NilUint16 + var request []NilStringUint16 if err := func() error { - request = make([]NilUint16, 0) + request = make([]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint16 + var elem NilStringUint16 if err := elem.Decode(d); err != nil { return err } @@ -52375,7 +52375,7 @@ func (s *Server) decodeTestRequestStringUint16NullableArrayRequest(r *http.Reque } func (s *Server) decodeTestRequestStringUint16NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint16, + req [][]NilStringUint16, close func() error, rerr error, ) { @@ -52417,14 +52417,14 @@ func (s *Server) decodeTestRequestStringUint16NullableArrayArrayRequest(r *http. d := jx.DecodeBytes(buf) - var request [][]NilUint16 + var request [][]NilStringUint16 if err := func() error { - request = make([][]NilUint16, 0) + request = make([][]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint16 - elem = make([]NilUint16, 0) + var elem []NilStringUint16 + elem = make([]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint16 + var elemElem NilStringUint16 if err := elemElem.Decode(d); err != nil { return err } @@ -52479,7 +52479,7 @@ func (s *Server) decodeTestRequestStringUint16NullableArrayArrayRequest(r *http. } func (s *Server) decodeTestRequestStringUint32Request(r *http.Request) ( - req OptUint32, + req OptStringUint32, close func() error, rerr error, ) { @@ -52521,7 +52521,7 @@ func (s *Server) decodeTestRequestStringUint32Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptUint32 + var request OptStringUint32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -52728,7 +52728,7 @@ func (s *Server) decodeTestRequestStringUint32ArrayArrayRequest(r *http.Request) } func (s *Server) decodeTestRequestStringUint32NullableRequest(r *http.Request) ( - req OptNilUint32, + req OptNilStringUint32, close func() error, rerr error, ) { @@ -52770,7 +52770,7 @@ func (s *Server) decodeTestRequestStringUint32NullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilUint32 + var request OptNilStringUint32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -52795,7 +52795,7 @@ func (s *Server) decodeTestRequestStringUint32NullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringUint32NullableArrayRequest(r *http.Request) ( - req []NilUint32, + req []NilStringUint32, close func() error, rerr error, ) { @@ -52837,11 +52837,11 @@ func (s *Server) decodeTestRequestStringUint32NullableArrayRequest(r *http.Reque d := jx.DecodeBytes(buf) - var request []NilUint32 + var request []NilStringUint32 if err := func() error { - request = make([]NilUint32, 0) + request = make([]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint32 + var elem NilStringUint32 if err := elem.Decode(d); err != nil { return err } @@ -52869,7 +52869,7 @@ func (s *Server) decodeTestRequestStringUint32NullableArrayRequest(r *http.Reque } func (s *Server) decodeTestRequestStringUint32NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint32, + req [][]NilStringUint32, close func() error, rerr error, ) { @@ -52911,14 +52911,14 @@ func (s *Server) decodeTestRequestStringUint32NullableArrayArrayRequest(r *http. d := jx.DecodeBytes(buf) - var request [][]NilUint32 + var request [][]NilStringUint32 if err := func() error { - request = make([][]NilUint32, 0) + request = make([][]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint32 - elem = make([]NilUint32, 0) + var elem []NilStringUint32 + elem = make([]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint32 + var elemElem NilStringUint32 if err := elemElem.Decode(d); err != nil { return err } @@ -52973,7 +52973,7 @@ func (s *Server) decodeTestRequestStringUint32NullableArrayArrayRequest(r *http. } func (s *Server) decodeTestRequestStringUint64Request(r *http.Request) ( - req OptUint64, + req OptStringUint64, close func() error, rerr error, ) { @@ -53015,7 +53015,7 @@ func (s *Server) decodeTestRequestStringUint64Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptUint64 + var request OptStringUint64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -53222,7 +53222,7 @@ func (s *Server) decodeTestRequestStringUint64ArrayArrayRequest(r *http.Request) } func (s *Server) decodeTestRequestStringUint64NullableRequest(r *http.Request) ( - req OptNilUint64, + req OptNilStringUint64, close func() error, rerr error, ) { @@ -53264,7 +53264,7 @@ func (s *Server) decodeTestRequestStringUint64NullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilUint64 + var request OptNilStringUint64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -53289,7 +53289,7 @@ func (s *Server) decodeTestRequestStringUint64NullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringUint64NullableArrayRequest(r *http.Request) ( - req []NilUint64, + req []NilStringUint64, close func() error, rerr error, ) { @@ -53331,11 +53331,11 @@ func (s *Server) decodeTestRequestStringUint64NullableArrayRequest(r *http.Reque d := jx.DecodeBytes(buf) - var request []NilUint64 + var request []NilStringUint64 if err := func() error { - request = make([]NilUint64, 0) + request = make([]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint64 + var elem NilStringUint64 if err := elem.Decode(d); err != nil { return err } @@ -53363,7 +53363,7 @@ func (s *Server) decodeTestRequestStringUint64NullableArrayRequest(r *http.Reque } func (s *Server) decodeTestRequestStringUint64NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint64, + req [][]NilStringUint64, close func() error, rerr error, ) { @@ -53405,14 +53405,14 @@ func (s *Server) decodeTestRequestStringUint64NullableArrayArrayRequest(r *http. d := jx.DecodeBytes(buf) - var request [][]NilUint64 + var request [][]NilStringUint64 if err := func() error { - request = make([][]NilUint64, 0) + request = make([][]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint64 - elem = make([]NilUint64, 0) + var elem []NilStringUint64 + elem = make([]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint64 + var elemElem NilStringUint64 if err := elemElem.Decode(d); err != nil { return err } @@ -53467,7 +53467,7 @@ func (s *Server) decodeTestRequestStringUint64NullableArrayArrayRequest(r *http. } func (s *Server) decodeTestRequestStringUint8Request(r *http.Request) ( - req OptUint8, + req OptStringUint8, close func() error, rerr error, ) { @@ -53509,7 +53509,7 @@ func (s *Server) decodeTestRequestStringUint8Request(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptUint8 + var request OptStringUint8 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -53716,7 +53716,7 @@ func (s *Server) decodeTestRequestStringUint8ArrayArrayRequest(r *http.Request) } func (s *Server) decodeTestRequestStringUint8NullableRequest(r *http.Request) ( - req OptNilUint8, + req OptNilStringUint8, close func() error, rerr error, ) { @@ -53758,7 +53758,7 @@ func (s *Server) decodeTestRequestStringUint8NullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilUint8 + var request OptNilStringUint8 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -53783,7 +53783,7 @@ func (s *Server) decodeTestRequestStringUint8NullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringUint8NullableArrayRequest(r *http.Request) ( - req []NilUint8, + req []NilStringUint8, close func() error, rerr error, ) { @@ -53825,11 +53825,11 @@ func (s *Server) decodeTestRequestStringUint8NullableArrayRequest(r *http.Reques d := jx.DecodeBytes(buf) - var request []NilUint8 + var request []NilStringUint8 if err := func() error { - request = make([]NilUint8, 0) + request = make([]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint8 + var elem NilStringUint8 if err := elem.Decode(d); err != nil { return err } @@ -53857,7 +53857,7 @@ func (s *Server) decodeTestRequestStringUint8NullableArrayRequest(r *http.Reques } func (s *Server) decodeTestRequestStringUint8NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint8, + req [][]NilStringUint8, close func() error, rerr error, ) { @@ -53899,14 +53899,14 @@ func (s *Server) decodeTestRequestStringUint8NullableArrayArrayRequest(r *http.R d := jx.DecodeBytes(buf) - var request [][]NilUint8 + var request [][]NilStringUint8 if err := func() error { - request = make([][]NilUint8, 0) + request = make([][]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint8 - elem = make([]NilUint8, 0) + var elem []NilStringUint8 + elem = make([]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint8 + var elemElem NilStringUint8 if err := elemElem.Decode(d); err != nil { return err } @@ -54143,7 +54143,7 @@ func (s *Server) decodeTestRequestStringUintArrayArrayRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringUintNullableRequest(r *http.Request) ( - req OptNilUint, + req OptNilStringUint, close func() error, rerr error, ) { @@ -54185,7 +54185,7 @@ func (s *Server) decodeTestRequestStringUintNullableRequest(r *http.Request) ( d := jx.DecodeBytes(buf) - var request OptNilUint + var request OptNilStringUint if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -54210,7 +54210,7 @@ func (s *Server) decodeTestRequestStringUintNullableRequest(r *http.Request) ( } func (s *Server) decodeTestRequestStringUintNullableArrayRequest(r *http.Request) ( - req []NilUint, + req []NilStringUint, close func() error, rerr error, ) { @@ -54252,11 +54252,11 @@ func (s *Server) decodeTestRequestStringUintNullableArrayRequest(r *http.Request d := jx.DecodeBytes(buf) - var request []NilUint + var request []NilStringUint if err := func() error { - request = make([]NilUint, 0) + request = make([]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint + var elem NilStringUint if err := elem.Decode(d); err != nil { return err } @@ -54284,7 +54284,7 @@ func (s *Server) decodeTestRequestStringUintNullableArrayRequest(r *http.Request } func (s *Server) decodeTestRequestStringUintNullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint, + req [][]NilStringUint, close func() error, rerr error, ) { @@ -54326,14 +54326,14 @@ func (s *Server) decodeTestRequestStringUintNullableArrayArrayRequest(r *http.Re d := jx.DecodeBytes(buf) - var request [][]NilUint + var request [][]NilStringUint if err := func() error { - request = make([][]NilUint, 0) + request = make([][]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint - elem = make([]NilUint, 0) + var elem []NilStringUint + elem = make([]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint + var elemElem NilStringUint if err := elemElem.Decode(d); err != nil { return err } diff --git a/examples/ex_test_format/oas_request_encoders_gen.go b/examples/ex_test_format/oas_request_encoders_gen.go index 39f04ddaf..8f0e6464a 100644 --- a/examples/ex_test_format/oas_request_encoders_gen.go +++ b/examples/ex_test_format/oas_request_encoders_gen.go @@ -6193,7 +6193,7 @@ func encodeTestRequestRequiredStringFloat32ArrayArrayRequest( } func encodeTestRequestRequiredStringFloat32NullableRequest( - req NilFloat32, + req NilStringFloat32, r *http.Request, ) error { const contentType = "application/json" @@ -6207,7 +6207,7 @@ func encodeTestRequestRequiredStringFloat32NullableRequest( } func encodeTestRequestRequiredStringFloat32NullableArrayRequest( - req []NilFloat32, + req []NilStringFloat32, r *http.Request, ) error { const contentType = "application/json" @@ -6225,7 +6225,7 @@ func encodeTestRequestRequiredStringFloat32NullableArrayRequest( } func encodeTestRequestRequiredStringFloat32NullableArrayArrayRequest( - req [][]NilFloat32, + req [][]NilStringFloat32, r *http.Request, ) error { const contentType = "application/json" @@ -6301,7 +6301,7 @@ func encodeTestRequestRequiredStringFloat64ArrayArrayRequest( } func encodeTestRequestRequiredStringFloat64NullableRequest( - req NilFloat64, + req NilStringFloat64, r *http.Request, ) error { const contentType = "application/json" @@ -6315,7 +6315,7 @@ func encodeTestRequestRequiredStringFloat64NullableRequest( } func encodeTestRequestRequiredStringFloat64NullableArrayRequest( - req []NilFloat64, + req []NilStringFloat64, r *http.Request, ) error { const contentType = "application/json" @@ -6333,7 +6333,7 @@ func encodeTestRequestRequiredStringFloat64NullableArrayRequest( } func encodeTestRequestRequiredStringFloat64NullableArrayArrayRequest( - req [][]NilFloat64, + req [][]NilStringFloat64, r *http.Request, ) error { const contentType = "application/json" @@ -6639,7 +6639,7 @@ func encodeTestRequestRequiredStringInt16ArrayArrayRequest( } func encodeTestRequestRequiredStringInt16NullableRequest( - req NilInt16, + req NilStringInt16, r *http.Request, ) error { const contentType = "application/json" @@ -6653,7 +6653,7 @@ func encodeTestRequestRequiredStringInt16NullableRequest( } func encodeTestRequestRequiredStringInt16NullableArrayRequest( - req []NilInt16, + req []NilStringInt16, r *http.Request, ) error { const contentType = "application/json" @@ -6671,7 +6671,7 @@ func encodeTestRequestRequiredStringInt16NullableArrayRequest( } func encodeTestRequestRequiredStringInt16NullableArrayArrayRequest( - req [][]NilInt16, + req [][]NilStringInt16, r *http.Request, ) error { const contentType = "application/json" @@ -6963,7 +6963,7 @@ func encodeTestRequestRequiredStringInt8ArrayArrayRequest( } func encodeTestRequestRequiredStringInt8NullableRequest( - req NilInt8, + req NilStringInt8, r *http.Request, ) error { const contentType = "application/json" @@ -6977,7 +6977,7 @@ func encodeTestRequestRequiredStringInt8NullableRequest( } func encodeTestRequestRequiredStringInt8NullableArrayRequest( - req []NilInt8, + req []NilStringInt8, r *http.Request, ) error { const contentType = "application/json" @@ -6995,7 +6995,7 @@ func encodeTestRequestRequiredStringInt8NullableArrayRequest( } func encodeTestRequestRequiredStringInt8NullableArrayArrayRequest( - req [][]NilInt8, + req [][]NilStringInt8, r *http.Request, ) error { const contentType = "application/json" @@ -7057,7 +7057,7 @@ func encodeTestRequestRequiredStringIntArrayArrayRequest( } func encodeTestRequestRequiredStringIntNullableRequest( - req NilInt, + req NilStringInt, r *http.Request, ) error { const contentType = "application/json" @@ -7071,7 +7071,7 @@ func encodeTestRequestRequiredStringIntNullableRequest( } func encodeTestRequestRequiredStringIntNullableArrayRequest( - req []NilInt, + req []NilStringInt, r *http.Request, ) error { const contentType = "application/json" @@ -7089,7 +7089,7 @@ func encodeTestRequestRequiredStringIntNullableArrayRequest( } func encodeTestRequestRequiredStringIntNullableArrayArrayRequest( - req [][]NilInt, + req [][]NilStringInt, r *http.Request, ) error { const contentType = "application/json" @@ -7881,7 +7881,7 @@ func encodeTestRequestRequiredStringUint16ArrayArrayRequest( } func encodeTestRequestRequiredStringUint16NullableRequest( - req NilUint16, + req NilStringUint16, r *http.Request, ) error { const contentType = "application/json" @@ -7895,7 +7895,7 @@ func encodeTestRequestRequiredStringUint16NullableRequest( } func encodeTestRequestRequiredStringUint16NullableArrayRequest( - req []NilUint16, + req []NilStringUint16, r *http.Request, ) error { const contentType = "application/json" @@ -7913,7 +7913,7 @@ func encodeTestRequestRequiredStringUint16NullableArrayRequest( } func encodeTestRequestRequiredStringUint16NullableArrayArrayRequest( - req [][]NilUint16, + req [][]NilStringUint16, r *http.Request, ) error { const contentType = "application/json" @@ -7989,7 +7989,7 @@ func encodeTestRequestRequiredStringUint32ArrayArrayRequest( } func encodeTestRequestRequiredStringUint32NullableRequest( - req NilUint32, + req NilStringUint32, r *http.Request, ) error { const contentType = "application/json" @@ -8003,7 +8003,7 @@ func encodeTestRequestRequiredStringUint32NullableRequest( } func encodeTestRequestRequiredStringUint32NullableArrayRequest( - req []NilUint32, + req []NilStringUint32, r *http.Request, ) error { const contentType = "application/json" @@ -8021,7 +8021,7 @@ func encodeTestRequestRequiredStringUint32NullableArrayRequest( } func encodeTestRequestRequiredStringUint32NullableArrayArrayRequest( - req [][]NilUint32, + req [][]NilStringUint32, r *http.Request, ) error { const contentType = "application/json" @@ -8097,7 +8097,7 @@ func encodeTestRequestRequiredStringUint64ArrayArrayRequest( } func encodeTestRequestRequiredStringUint64NullableRequest( - req NilUint64, + req NilStringUint64, r *http.Request, ) error { const contentType = "application/json" @@ -8111,7 +8111,7 @@ func encodeTestRequestRequiredStringUint64NullableRequest( } func encodeTestRequestRequiredStringUint64NullableArrayRequest( - req []NilUint64, + req []NilStringUint64, r *http.Request, ) error { const contentType = "application/json" @@ -8129,7 +8129,7 @@ func encodeTestRequestRequiredStringUint64NullableArrayRequest( } func encodeTestRequestRequiredStringUint64NullableArrayArrayRequest( - req [][]NilUint64, + req [][]NilStringUint64, r *http.Request, ) error { const contentType = "application/json" @@ -8205,7 +8205,7 @@ func encodeTestRequestRequiredStringUint8ArrayArrayRequest( } func encodeTestRequestRequiredStringUint8NullableRequest( - req NilUint8, + req NilStringUint8, r *http.Request, ) error { const contentType = "application/json" @@ -8219,7 +8219,7 @@ func encodeTestRequestRequiredStringUint8NullableRequest( } func encodeTestRequestRequiredStringUint8NullableArrayRequest( - req []NilUint8, + req []NilStringUint8, r *http.Request, ) error { const contentType = "application/json" @@ -8237,7 +8237,7 @@ func encodeTestRequestRequiredStringUint8NullableArrayRequest( } func encodeTestRequestRequiredStringUint8NullableArrayArrayRequest( - req [][]NilUint8, + req [][]NilStringUint8, r *http.Request, ) error { const contentType = "application/json" @@ -8299,7 +8299,7 @@ func encodeTestRequestRequiredStringUintArrayArrayRequest( } func encodeTestRequestRequiredStringUintNullableRequest( - req NilUint, + req NilStringUint, r *http.Request, ) error { const contentType = "application/json" @@ -8313,7 +8313,7 @@ func encodeTestRequestRequiredStringUintNullableRequest( } func encodeTestRequestRequiredStringUintNullableArrayRequest( - req []NilUint, + req []NilStringUint, r *http.Request, ) error { const contentType = "application/json" @@ -8331,7 +8331,7 @@ func encodeTestRequestRequiredStringUintNullableArrayRequest( } func encodeTestRequestRequiredStringUintNullableArrayArrayRequest( - req [][]NilUint, + req [][]NilStringUint, r *http.Request, ) error { const contentType = "application/json" @@ -9841,7 +9841,7 @@ func encodeTestRequestStringEmailNullableArrayArrayRequest( } func encodeTestRequestStringFloat32Request( - req OptFloat32, + req OptStringFloat32, r *http.Request, ) error { const contentType = "application/json" @@ -9905,7 +9905,7 @@ func encodeTestRequestStringFloat32ArrayArrayRequest( } func encodeTestRequestStringFloat32NullableRequest( - req OptNilFloat32, + req OptNilStringFloat32, r *http.Request, ) error { const contentType = "application/json" @@ -9925,7 +9925,7 @@ func encodeTestRequestStringFloat32NullableRequest( } func encodeTestRequestStringFloat32NullableArrayRequest( - req []NilFloat32, + req []NilStringFloat32, r *http.Request, ) error { const contentType = "application/json" @@ -9945,7 +9945,7 @@ func encodeTestRequestStringFloat32NullableArrayRequest( } func encodeTestRequestStringFloat32NullableArrayArrayRequest( - req [][]NilFloat32, + req [][]NilStringFloat32, r *http.Request, ) error { const contentType = "application/json" @@ -9969,7 +9969,7 @@ func encodeTestRequestStringFloat32NullableArrayArrayRequest( } func encodeTestRequestStringFloat64Request( - req OptFloat64, + req OptStringFloat64, r *http.Request, ) error { const contentType = "application/json" @@ -10033,7 +10033,7 @@ func encodeTestRequestStringFloat64ArrayArrayRequest( } func encodeTestRequestStringFloat64NullableRequest( - req OptNilFloat64, + req OptNilStringFloat64, r *http.Request, ) error { const contentType = "application/json" @@ -10053,7 +10053,7 @@ func encodeTestRequestStringFloat64NullableRequest( } func encodeTestRequestStringFloat64NullableArrayRequest( - req []NilFloat64, + req []NilStringFloat64, r *http.Request, ) error { const contentType = "application/json" @@ -10073,7 +10073,7 @@ func encodeTestRequestStringFloat64NullableArrayRequest( } func encodeTestRequestStringFloat64NullableArrayArrayRequest( - req [][]NilFloat64, + req [][]NilStringFloat64, r *http.Request, ) error { const contentType = "application/json" @@ -10353,7 +10353,7 @@ func encodeTestRequestStringIPNullableArrayArrayRequest( } func encodeTestRequestStringIntRequest( - req OptInt, + req OptStringInt, r *http.Request, ) error { const contentType = "application/json" @@ -10373,7 +10373,7 @@ func encodeTestRequestStringIntRequest( } func encodeTestRequestStringInt16Request( - req OptInt16, + req OptStringInt16, r *http.Request, ) error { const contentType = "application/json" @@ -10437,7 +10437,7 @@ func encodeTestRequestStringInt16ArrayArrayRequest( } func encodeTestRequestStringInt16NullableRequest( - req OptNilInt16, + req OptNilStringInt16, r *http.Request, ) error { const contentType = "application/json" @@ -10457,7 +10457,7 @@ func encodeTestRequestStringInt16NullableRequest( } func encodeTestRequestStringInt16NullableArrayRequest( - req []NilInt16, + req []NilStringInt16, r *http.Request, ) error { const contentType = "application/json" @@ -10477,7 +10477,7 @@ func encodeTestRequestStringInt16NullableArrayRequest( } func encodeTestRequestStringInt16NullableArrayArrayRequest( - req [][]NilInt16, + req [][]NilStringInt16, r *http.Request, ) error { const contentType = "application/json" @@ -10757,7 +10757,7 @@ func encodeTestRequestStringInt64NullableArrayArrayRequest( } func encodeTestRequestStringInt8Request( - req OptInt8, + req OptStringInt8, r *http.Request, ) error { const contentType = "application/json" @@ -10821,7 +10821,7 @@ func encodeTestRequestStringInt8ArrayArrayRequest( } func encodeTestRequestStringInt8NullableRequest( - req OptNilInt8, + req OptNilStringInt8, r *http.Request, ) error { const contentType = "application/json" @@ -10841,7 +10841,7 @@ func encodeTestRequestStringInt8NullableRequest( } func encodeTestRequestStringInt8NullableArrayRequest( - req []NilInt8, + req []NilStringInt8, r *http.Request, ) error { const contentType = "application/json" @@ -10861,7 +10861,7 @@ func encodeTestRequestStringInt8NullableArrayRequest( } func encodeTestRequestStringInt8NullableArrayArrayRequest( - req [][]NilInt8, + req [][]NilStringInt8, r *http.Request, ) error { const contentType = "application/json" @@ -10929,7 +10929,7 @@ func encodeTestRequestStringIntArrayArrayRequest( } func encodeTestRequestStringIntNullableRequest( - req OptNilInt, + req OptNilStringInt, r *http.Request, ) error { const contentType = "application/json" @@ -10949,7 +10949,7 @@ func encodeTestRequestStringIntNullableRequest( } func encodeTestRequestStringIntNullableArrayRequest( - req []NilInt, + req []NilStringInt, r *http.Request, ) error { const contentType = "application/json" @@ -10969,7 +10969,7 @@ func encodeTestRequestStringIntNullableArrayRequest( } func encodeTestRequestStringIntNullableArrayArrayRequest( - req [][]NilInt, + req [][]NilStringInt, r *http.Request, ) error { const contentType = "application/json" @@ -11825,7 +11825,7 @@ func encodeTestRequestStringUUIDNullableArrayArrayRequest( } func encodeTestRequestStringUintRequest( - req OptUint, + req OptStringUint, r *http.Request, ) error { const contentType = "application/json" @@ -11845,7 +11845,7 @@ func encodeTestRequestStringUintRequest( } func encodeTestRequestStringUint16Request( - req OptUint16, + req OptStringUint16, r *http.Request, ) error { const contentType = "application/json" @@ -11909,7 +11909,7 @@ func encodeTestRequestStringUint16ArrayArrayRequest( } func encodeTestRequestStringUint16NullableRequest( - req OptNilUint16, + req OptNilStringUint16, r *http.Request, ) error { const contentType = "application/json" @@ -11929,7 +11929,7 @@ func encodeTestRequestStringUint16NullableRequest( } func encodeTestRequestStringUint16NullableArrayRequest( - req []NilUint16, + req []NilStringUint16, r *http.Request, ) error { const contentType = "application/json" @@ -11949,7 +11949,7 @@ func encodeTestRequestStringUint16NullableArrayRequest( } func encodeTestRequestStringUint16NullableArrayArrayRequest( - req [][]NilUint16, + req [][]NilStringUint16, r *http.Request, ) error { const contentType = "application/json" @@ -11973,7 +11973,7 @@ func encodeTestRequestStringUint16NullableArrayArrayRequest( } func encodeTestRequestStringUint32Request( - req OptUint32, + req OptStringUint32, r *http.Request, ) error { const contentType = "application/json" @@ -12037,7 +12037,7 @@ func encodeTestRequestStringUint32ArrayArrayRequest( } func encodeTestRequestStringUint32NullableRequest( - req OptNilUint32, + req OptNilStringUint32, r *http.Request, ) error { const contentType = "application/json" @@ -12057,7 +12057,7 @@ func encodeTestRequestStringUint32NullableRequest( } func encodeTestRequestStringUint32NullableArrayRequest( - req []NilUint32, + req []NilStringUint32, r *http.Request, ) error { const contentType = "application/json" @@ -12077,7 +12077,7 @@ func encodeTestRequestStringUint32NullableArrayRequest( } func encodeTestRequestStringUint32NullableArrayArrayRequest( - req [][]NilUint32, + req [][]NilStringUint32, r *http.Request, ) error { const contentType = "application/json" @@ -12101,7 +12101,7 @@ func encodeTestRequestStringUint32NullableArrayArrayRequest( } func encodeTestRequestStringUint64Request( - req OptUint64, + req OptStringUint64, r *http.Request, ) error { const contentType = "application/json" @@ -12165,7 +12165,7 @@ func encodeTestRequestStringUint64ArrayArrayRequest( } func encodeTestRequestStringUint64NullableRequest( - req OptNilUint64, + req OptNilStringUint64, r *http.Request, ) error { const contentType = "application/json" @@ -12185,7 +12185,7 @@ func encodeTestRequestStringUint64NullableRequest( } func encodeTestRequestStringUint64NullableArrayRequest( - req []NilUint64, + req []NilStringUint64, r *http.Request, ) error { const contentType = "application/json" @@ -12205,7 +12205,7 @@ func encodeTestRequestStringUint64NullableArrayRequest( } func encodeTestRequestStringUint64NullableArrayArrayRequest( - req [][]NilUint64, + req [][]NilStringUint64, r *http.Request, ) error { const contentType = "application/json" @@ -12229,7 +12229,7 @@ func encodeTestRequestStringUint64NullableArrayArrayRequest( } func encodeTestRequestStringUint8Request( - req OptUint8, + req OptStringUint8, r *http.Request, ) error { const contentType = "application/json" @@ -12293,7 +12293,7 @@ func encodeTestRequestStringUint8ArrayArrayRequest( } func encodeTestRequestStringUint8NullableRequest( - req OptNilUint8, + req OptNilStringUint8, r *http.Request, ) error { const contentType = "application/json" @@ -12313,7 +12313,7 @@ func encodeTestRequestStringUint8NullableRequest( } func encodeTestRequestStringUint8NullableArrayRequest( - req []NilUint8, + req []NilStringUint8, r *http.Request, ) error { const contentType = "application/json" @@ -12333,7 +12333,7 @@ func encodeTestRequestStringUint8NullableArrayRequest( } func encodeTestRequestStringUint8NullableArrayArrayRequest( - req [][]NilUint8, + req [][]NilStringUint8, r *http.Request, ) error { const contentType = "application/json" @@ -12401,7 +12401,7 @@ func encodeTestRequestStringUintArrayArrayRequest( } func encodeTestRequestStringUintNullableRequest( - req OptNilUint, + req OptNilStringUint, r *http.Request, ) error { const contentType = "application/json" @@ -12421,7 +12421,7 @@ func encodeTestRequestStringUintNullableRequest( } func encodeTestRequestStringUintNullableArrayRequest( - req []NilUint, + req []NilStringUint, r *http.Request, ) error { const contentType = "application/json" @@ -12441,7 +12441,7 @@ func encodeTestRequestStringUintNullableArrayRequest( } func encodeTestRequestStringUintNullableArrayArrayRequest( - req [][]NilUint, + req [][]NilStringUint, r *http.Request, ) error { const contentType = "application/json" diff --git a/examples/ex_test_format/oas_response_decoders_gen.go b/examples/ex_test_format/oas_response_decoders_gen.go index 28455d34e..4fab4d1df 100644 --- a/examples/ex_test_format/oas_response_decoders_gen.go +++ b/examples/ex_test_format/oas_response_decoders_gen.go @@ -39132,7 +39132,7 @@ func decodeTestResponseStringFloat32ArrayArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringFloat32NullableResponse(resp *http.Response) (res NilFloat32, _ error) { +func decodeTestResponseStringFloat32NullableResponse(resp *http.Response) (res NilStringFloat32, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -39148,7 +39148,7 @@ func decodeTestResponseStringFloat32NullableResponse(resp *http.Response) (res N } d := jx.DecodeBytes(buf) - var response NilFloat32 + var response NilStringFloat32 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -39189,7 +39189,7 @@ func decodeTestResponseStringFloat32NullableResponse(resp *http.Response) (res N return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringFloat32NullableArrayResponse(resp *http.Response) (res []NilFloat32, _ error) { +func decodeTestResponseStringFloat32NullableArrayResponse(resp *http.Response) (res []NilStringFloat32, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -39205,11 +39205,11 @@ func decodeTestResponseStringFloat32NullableArrayResponse(resp *http.Response) ( } d := jx.DecodeBytes(buf) - var response []NilFloat32 + var response []NilStringFloat32 if err := func() error { - response = make([]NilFloat32, 0) + response = make([]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilFloat32 + var elem NilStringFloat32 if err := elem.Decode(d); err != nil { return err } @@ -39271,7 +39271,7 @@ func decodeTestResponseStringFloat32NullableArrayResponse(resp *http.Response) ( return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringFloat32NullableArrayArrayResponse(resp *http.Response) (res [][]NilFloat32, _ error) { +func decodeTestResponseStringFloat32NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringFloat32, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -39287,14 +39287,14 @@ func decodeTestResponseStringFloat32NullableArrayArrayResponse(resp *http.Respon } d := jx.DecodeBytes(buf) - var response [][]NilFloat32 + var response [][]NilStringFloat32 if err := func() error { - response = make([][]NilFloat32, 0) + response = make([][]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilFloat32 - elem = make([]NilFloat32, 0) + var elem []NilStringFloat32 + elem = make([]NilStringFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilFloat32 + var elemElem NilStringFloat32 if err := elemElem.Decode(d); err != nil { return err } @@ -39609,7 +39609,7 @@ func decodeTestResponseStringFloat64ArrayArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringFloat64NullableResponse(resp *http.Response) (res NilFloat64, _ error) { +func decodeTestResponseStringFloat64NullableResponse(resp *http.Response) (res NilStringFloat64, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -39625,7 +39625,7 @@ func decodeTestResponseStringFloat64NullableResponse(resp *http.Response) (res N } d := jx.DecodeBytes(buf) - var response NilFloat64 + var response NilStringFloat64 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -39666,7 +39666,7 @@ func decodeTestResponseStringFloat64NullableResponse(resp *http.Response) (res N return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringFloat64NullableArrayResponse(resp *http.Response) (res []NilFloat64, _ error) { +func decodeTestResponseStringFloat64NullableArrayResponse(resp *http.Response) (res []NilStringFloat64, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -39682,11 +39682,11 @@ func decodeTestResponseStringFloat64NullableArrayResponse(resp *http.Response) ( } d := jx.DecodeBytes(buf) - var response []NilFloat64 + var response []NilStringFloat64 if err := func() error { - response = make([]NilFloat64, 0) + response = make([]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilFloat64 + var elem NilStringFloat64 if err := elem.Decode(d); err != nil { return err } @@ -39748,7 +39748,7 @@ func decodeTestResponseStringFloat64NullableArrayResponse(resp *http.Response) ( return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringFloat64NullableArrayArrayResponse(resp *http.Response) (res [][]NilFloat64, _ error) { +func decodeTestResponseStringFloat64NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringFloat64, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -39764,14 +39764,14 @@ func decodeTestResponseStringFloat64NullableArrayArrayResponse(resp *http.Respon } d := jx.DecodeBytes(buf) - var response [][]NilFloat64 + var response [][]NilStringFloat64 if err := func() error { - response = make([][]NilFloat64, 0) + response = make([][]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilFloat64 - elem = make([]NilFloat64, 0) + var elem []NilStringFloat64 + elem = make([]NilStringFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilFloat64 + var elemElem NilStringFloat64 if err := elemElem.Decode(d); err != nil { return err } @@ -40981,7 +40981,7 @@ func decodeTestResponseStringInt16ArrayArrayResponse(resp *http.Response) (res [ return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringInt16NullableResponse(resp *http.Response) (res NilInt16, _ error) { +func decodeTestResponseStringInt16NullableResponse(resp *http.Response) (res NilStringInt16, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -40997,7 +40997,7 @@ func decodeTestResponseStringInt16NullableResponse(resp *http.Response) (res Nil } d := jx.DecodeBytes(buf) - var response NilInt16 + var response NilStringInt16 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -41022,7 +41022,7 @@ func decodeTestResponseStringInt16NullableResponse(resp *http.Response) (res Nil return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringInt16NullableArrayResponse(resp *http.Response) (res []NilInt16, _ error) { +func decodeTestResponseStringInt16NullableArrayResponse(resp *http.Response) (res []NilStringInt16, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -41038,11 +41038,11 @@ func decodeTestResponseStringInt16NullableArrayResponse(resp *http.Response) (re } d := jx.DecodeBytes(buf) - var response []NilInt16 + var response []NilStringInt16 if err := func() error { - response = make([]NilInt16, 0) + response = make([]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt16 + var elem NilStringInt16 if err := elem.Decode(d); err != nil { return err } @@ -41080,7 +41080,7 @@ func decodeTestResponseStringInt16NullableArrayResponse(resp *http.Response) (re return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringInt16NullableArrayArrayResponse(resp *http.Response) (res [][]NilInt16, _ error) { +func decodeTestResponseStringInt16NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringInt16, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -41096,14 +41096,14 @@ func decodeTestResponseStringInt16NullableArrayArrayResponse(resp *http.Response } d := jx.DecodeBytes(buf) - var response [][]NilInt16 + var response [][]NilStringInt16 if err := func() error { - response = make([][]NilInt16, 0) + response = make([][]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt16 - elem = make([]NilInt16, 0) + var elem []NilStringInt16 + elem = make([]NilStringInt16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt16 + var elemElem NilStringInt16 if err := elemElem.Decode(d); err != nil { return err } @@ -42091,7 +42091,7 @@ func decodeTestResponseStringInt8ArrayArrayResponse(resp *http.Response) (res [] return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringInt8NullableResponse(resp *http.Response) (res NilInt8, _ error) { +func decodeTestResponseStringInt8NullableResponse(resp *http.Response) (res NilStringInt8, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -42107,7 +42107,7 @@ func decodeTestResponseStringInt8NullableResponse(resp *http.Response) (res NilI } d := jx.DecodeBytes(buf) - var response NilInt8 + var response NilStringInt8 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -42132,7 +42132,7 @@ func decodeTestResponseStringInt8NullableResponse(resp *http.Response) (res NilI return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringInt8NullableArrayResponse(resp *http.Response) (res []NilInt8, _ error) { +func decodeTestResponseStringInt8NullableArrayResponse(resp *http.Response) (res []NilStringInt8, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -42148,11 +42148,11 @@ func decodeTestResponseStringInt8NullableArrayResponse(resp *http.Response) (res } d := jx.DecodeBytes(buf) - var response []NilInt8 + var response []NilStringInt8 if err := func() error { - response = make([]NilInt8, 0) + response = make([]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt8 + var elem NilStringInt8 if err := elem.Decode(d); err != nil { return err } @@ -42190,7 +42190,7 @@ func decodeTestResponseStringInt8NullableArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringInt8NullableArrayArrayResponse(resp *http.Response) (res [][]NilInt8, _ error) { +func decodeTestResponseStringInt8NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringInt8, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -42206,14 +42206,14 @@ func decodeTestResponseStringInt8NullableArrayArrayResponse(resp *http.Response) } d := jx.DecodeBytes(buf) - var response [][]NilInt8 + var response [][]NilStringInt8 if err := func() error { - response = make([][]NilInt8, 0) + response = make([][]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt8 - elem = make([]NilInt8, 0) + var elem []NilStringInt8 + elem = make([]NilStringInt8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt8 + var elemElem NilStringInt8 if err := elemElem.Decode(d); err != nil { return err } @@ -42418,7 +42418,7 @@ func decodeTestResponseStringIntArrayArrayResponse(resp *http.Response) (res [][ return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringIntNullableResponse(resp *http.Response) (res NilInt, _ error) { +func decodeTestResponseStringIntNullableResponse(resp *http.Response) (res NilStringInt, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -42434,7 +42434,7 @@ func decodeTestResponseStringIntNullableResponse(resp *http.Response) (res NilIn } d := jx.DecodeBytes(buf) - var response NilInt + var response NilStringInt if err := func() error { if err := response.Decode(d); err != nil { return err @@ -42459,7 +42459,7 @@ func decodeTestResponseStringIntNullableResponse(resp *http.Response) (res NilIn return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringIntNullableArrayResponse(resp *http.Response) (res []NilInt, _ error) { +func decodeTestResponseStringIntNullableArrayResponse(resp *http.Response) (res []NilStringInt, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -42475,11 +42475,11 @@ func decodeTestResponseStringIntNullableArrayResponse(resp *http.Response) (res } d := jx.DecodeBytes(buf) - var response []NilInt + var response []NilStringInt if err := func() error { - response = make([]NilInt, 0) + response = make([]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilInt + var elem NilStringInt if err := elem.Decode(d); err != nil { return err } @@ -42517,7 +42517,7 @@ func decodeTestResponseStringIntNullableArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringIntNullableArrayArrayResponse(resp *http.Response) (res [][]NilInt, _ error) { +func decodeTestResponseStringIntNullableArrayArrayResponse(resp *http.Response) (res [][]NilStringInt, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -42533,14 +42533,14 @@ func decodeTestResponseStringIntNullableArrayArrayResponse(resp *http.Response) } d := jx.DecodeBytes(buf) - var response [][]NilInt + var response [][]NilStringInt if err := func() error { - response = make([][]NilInt, 0) + response = make([][]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilInt - elem = make([]NilInt, 0) + var elem []NilStringInt + elem = make([]NilStringInt, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilInt + var elemElem NilStringInt if err := elemElem.Decode(d); err != nil { return err } @@ -45233,7 +45233,7 @@ func decodeTestResponseStringUint16ArrayArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint16NullableResponse(resp *http.Response) (res NilUint16, _ error) { +func decodeTestResponseStringUint16NullableResponse(resp *http.Response) (res NilStringUint16, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -45249,7 +45249,7 @@ func decodeTestResponseStringUint16NullableResponse(resp *http.Response) (res Ni } d := jx.DecodeBytes(buf) - var response NilUint16 + var response NilStringUint16 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -45274,7 +45274,7 @@ func decodeTestResponseStringUint16NullableResponse(resp *http.Response) (res Ni return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint16NullableArrayResponse(resp *http.Response) (res []NilUint16, _ error) { +func decodeTestResponseStringUint16NullableArrayResponse(resp *http.Response) (res []NilStringUint16, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -45290,11 +45290,11 @@ func decodeTestResponseStringUint16NullableArrayResponse(resp *http.Response) (r } d := jx.DecodeBytes(buf) - var response []NilUint16 + var response []NilStringUint16 if err := func() error { - response = make([]NilUint16, 0) + response = make([]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint16 + var elem NilStringUint16 if err := elem.Decode(d); err != nil { return err } @@ -45332,7 +45332,7 @@ func decodeTestResponseStringUint16NullableArrayResponse(resp *http.Response) (r return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint16NullableArrayArrayResponse(resp *http.Response) (res [][]NilUint16, _ error) { +func decodeTestResponseStringUint16NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringUint16, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -45348,14 +45348,14 @@ func decodeTestResponseStringUint16NullableArrayArrayResponse(resp *http.Respons } d := jx.DecodeBytes(buf) - var response [][]NilUint16 + var response [][]NilStringUint16 if err := func() error { - response = make([][]NilUint16, 0) + response = make([][]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint16 - elem = make([]NilUint16, 0) + var elem []NilStringUint16 + elem = make([]NilStringUint16, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint16 + var elemElem NilStringUint16 if err := elemElem.Decode(d); err != nil { return err } @@ -45603,7 +45603,7 @@ func decodeTestResponseStringUint32ArrayArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint32NullableResponse(resp *http.Response) (res NilUint32, _ error) { +func decodeTestResponseStringUint32NullableResponse(resp *http.Response) (res NilStringUint32, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -45619,7 +45619,7 @@ func decodeTestResponseStringUint32NullableResponse(resp *http.Response) (res Ni } d := jx.DecodeBytes(buf) - var response NilUint32 + var response NilStringUint32 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -45644,7 +45644,7 @@ func decodeTestResponseStringUint32NullableResponse(resp *http.Response) (res Ni return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint32NullableArrayResponse(resp *http.Response) (res []NilUint32, _ error) { +func decodeTestResponseStringUint32NullableArrayResponse(resp *http.Response) (res []NilStringUint32, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -45660,11 +45660,11 @@ func decodeTestResponseStringUint32NullableArrayResponse(resp *http.Response) (r } d := jx.DecodeBytes(buf) - var response []NilUint32 + var response []NilStringUint32 if err := func() error { - response = make([]NilUint32, 0) + response = make([]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint32 + var elem NilStringUint32 if err := elem.Decode(d); err != nil { return err } @@ -45702,7 +45702,7 @@ func decodeTestResponseStringUint32NullableArrayResponse(resp *http.Response) (r return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint32NullableArrayArrayResponse(resp *http.Response) (res [][]NilUint32, _ error) { +func decodeTestResponseStringUint32NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringUint32, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -45718,14 +45718,14 @@ func decodeTestResponseStringUint32NullableArrayArrayResponse(resp *http.Respons } d := jx.DecodeBytes(buf) - var response [][]NilUint32 + var response [][]NilStringUint32 if err := func() error { - response = make([][]NilUint32, 0) + response = make([][]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint32 - elem = make([]NilUint32, 0) + var elem []NilStringUint32 + elem = make([]NilStringUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint32 + var elemElem NilStringUint32 if err := elemElem.Decode(d); err != nil { return err } @@ -45973,7 +45973,7 @@ func decodeTestResponseStringUint64ArrayArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint64NullableResponse(resp *http.Response) (res NilUint64, _ error) { +func decodeTestResponseStringUint64NullableResponse(resp *http.Response) (res NilStringUint64, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -45989,7 +45989,7 @@ func decodeTestResponseStringUint64NullableResponse(resp *http.Response) (res Ni } d := jx.DecodeBytes(buf) - var response NilUint64 + var response NilStringUint64 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -46014,7 +46014,7 @@ func decodeTestResponseStringUint64NullableResponse(resp *http.Response) (res Ni return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint64NullableArrayResponse(resp *http.Response) (res []NilUint64, _ error) { +func decodeTestResponseStringUint64NullableArrayResponse(resp *http.Response) (res []NilStringUint64, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46030,11 +46030,11 @@ func decodeTestResponseStringUint64NullableArrayResponse(resp *http.Response) (r } d := jx.DecodeBytes(buf) - var response []NilUint64 + var response []NilStringUint64 if err := func() error { - response = make([]NilUint64, 0) + response = make([]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint64 + var elem NilStringUint64 if err := elem.Decode(d); err != nil { return err } @@ -46072,7 +46072,7 @@ func decodeTestResponseStringUint64NullableArrayResponse(resp *http.Response) (r return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint64NullableArrayArrayResponse(resp *http.Response) (res [][]NilUint64, _ error) { +func decodeTestResponseStringUint64NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringUint64, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46088,14 +46088,14 @@ func decodeTestResponseStringUint64NullableArrayArrayResponse(resp *http.Respons } d := jx.DecodeBytes(buf) - var response [][]NilUint64 + var response [][]NilStringUint64 if err := func() error { - response = make([][]NilUint64, 0) + response = make([][]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint64 - elem = make([]NilUint64, 0) + var elem []NilStringUint64 + elem = make([]NilStringUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint64 + var elemElem NilStringUint64 if err := elemElem.Decode(d); err != nil { return err } @@ -46343,7 +46343,7 @@ func decodeTestResponseStringUint8ArrayArrayResponse(resp *http.Response) (res [ return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint8NullableResponse(resp *http.Response) (res NilUint8, _ error) { +func decodeTestResponseStringUint8NullableResponse(resp *http.Response) (res NilStringUint8, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46359,7 +46359,7 @@ func decodeTestResponseStringUint8NullableResponse(resp *http.Response) (res Nil } d := jx.DecodeBytes(buf) - var response NilUint8 + var response NilStringUint8 if err := func() error { if err := response.Decode(d); err != nil { return err @@ -46384,7 +46384,7 @@ func decodeTestResponseStringUint8NullableResponse(resp *http.Response) (res Nil return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint8NullableArrayResponse(resp *http.Response) (res []NilUint8, _ error) { +func decodeTestResponseStringUint8NullableArrayResponse(resp *http.Response) (res []NilStringUint8, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46400,11 +46400,11 @@ func decodeTestResponseStringUint8NullableArrayResponse(resp *http.Response) (re } d := jx.DecodeBytes(buf) - var response []NilUint8 + var response []NilStringUint8 if err := func() error { - response = make([]NilUint8, 0) + response = make([]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint8 + var elem NilStringUint8 if err := elem.Decode(d); err != nil { return err } @@ -46442,7 +46442,7 @@ func decodeTestResponseStringUint8NullableArrayResponse(resp *http.Response) (re return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUint8NullableArrayArrayResponse(resp *http.Response) (res [][]NilUint8, _ error) { +func decodeTestResponseStringUint8NullableArrayArrayResponse(resp *http.Response) (res [][]NilStringUint8, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46458,14 +46458,14 @@ func decodeTestResponseStringUint8NullableArrayArrayResponse(resp *http.Response } d := jx.DecodeBytes(buf) - var response [][]NilUint8 + var response [][]NilStringUint8 if err := func() error { - response = make([][]NilUint8, 0) + response = make([][]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint8 - elem = make([]NilUint8, 0) + var elem []NilStringUint8 + elem = make([]NilStringUint8, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint8 + var elemElem NilStringUint8 if err := elemElem.Decode(d); err != nil { return err } @@ -46670,7 +46670,7 @@ func decodeTestResponseStringUintArrayArrayResponse(resp *http.Response) (res [] return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUintNullableResponse(resp *http.Response) (res NilUint, _ error) { +func decodeTestResponseStringUintNullableResponse(resp *http.Response) (res NilStringUint, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46686,7 +46686,7 @@ func decodeTestResponseStringUintNullableResponse(resp *http.Response) (res NilU } d := jx.DecodeBytes(buf) - var response NilUint + var response NilStringUint if err := func() error { if err := response.Decode(d); err != nil { return err @@ -46711,7 +46711,7 @@ func decodeTestResponseStringUintNullableResponse(resp *http.Response) (res NilU return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUintNullableArrayResponse(resp *http.Response) (res []NilUint, _ error) { +func decodeTestResponseStringUintNullableArrayResponse(resp *http.Response) (res []NilStringUint, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46727,11 +46727,11 @@ func decodeTestResponseStringUintNullableArrayResponse(resp *http.Response) (res } d := jx.DecodeBytes(buf) - var response []NilUint + var response []NilStringUint if err := func() error { - response = make([]NilUint, 0) + response = make([]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint + var elem NilStringUint if err := elem.Decode(d); err != nil { return err } @@ -46769,7 +46769,7 @@ func decodeTestResponseStringUintNullableArrayResponse(resp *http.Response) (res return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestResponseStringUintNullableArrayArrayResponse(resp *http.Response) (res [][]NilUint, _ error) { +func decodeTestResponseStringUintNullableArrayArrayResponse(resp *http.Response) (res [][]NilStringUint, _ error) { switch resp.StatusCode { case 200: // Code 200. @@ -46785,14 +46785,14 @@ func decodeTestResponseStringUintNullableArrayArrayResponse(resp *http.Response) } d := jx.DecodeBytes(buf) - var response [][]NilUint + var response [][]NilStringUint if err := func() error { - response = make([][]NilUint, 0) + response = make([][]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint - elem = make([]NilUint, 0) + var elem []NilStringUint + elem = make([]NilStringUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint + var elemElem NilStringUint if err := elemElem.Decode(d); err != nil { return err } diff --git a/examples/ex_test_format/oas_response_encoders_gen.go b/examples/ex_test_format/oas_response_encoders_gen.go index 8444a53c2..aadece55b 100644 --- a/examples/ex_test_format/oas_response_encoders_gen.go +++ b/examples/ex_test_format/oas_response_encoders_gen.go @@ -12645,7 +12645,7 @@ func encodeTestResponseStringFloat32ArrayArrayResponse(response [][]float32, w h return nil } -func encodeTestResponseStringFloat32NullableResponse(response NilFloat32, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringFloat32NullableResponse(response NilStringFloat32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -12659,7 +12659,7 @@ func encodeTestResponseStringFloat32NullableResponse(response NilFloat32, w http return nil } -func encodeTestResponseStringFloat32NullableArrayResponse(response []NilFloat32, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringFloat32NullableArrayResponse(response []NilStringFloat32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -12677,7 +12677,7 @@ func encodeTestResponseStringFloat32NullableArrayResponse(response []NilFloat32, return nil } -func encodeTestResponseStringFloat32NullableArrayArrayResponse(response [][]NilFloat32, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringFloat32NullableArrayArrayResponse(response [][]NilStringFloat32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -12753,7 +12753,7 @@ func encodeTestResponseStringFloat64ArrayArrayResponse(response [][]float64, w h return nil } -func encodeTestResponseStringFloat64NullableResponse(response NilFloat64, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringFloat64NullableResponse(response NilStringFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -12767,7 +12767,7 @@ func encodeTestResponseStringFloat64NullableResponse(response NilFloat64, w http return nil } -func encodeTestResponseStringFloat64NullableArrayResponse(response []NilFloat64, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringFloat64NullableArrayResponse(response []NilStringFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -12785,7 +12785,7 @@ func encodeTestResponseStringFloat64NullableArrayResponse(response []NilFloat64, return nil } -func encodeTestResponseStringFloat64NullableArrayArrayResponse(response [][]NilFloat64, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringFloat64NullableArrayArrayResponse(response [][]NilStringFloat64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13091,7 +13091,7 @@ func encodeTestResponseStringInt16ArrayArrayResponse(response [][]int16, w http. return nil } -func encodeTestResponseStringInt16NullableResponse(response NilInt16, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringInt16NullableResponse(response NilStringInt16, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13105,7 +13105,7 @@ func encodeTestResponseStringInt16NullableResponse(response NilInt16, w http.Res return nil } -func encodeTestResponseStringInt16NullableArrayResponse(response []NilInt16, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringInt16NullableArrayResponse(response []NilStringInt16, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13123,7 +13123,7 @@ func encodeTestResponseStringInt16NullableArrayResponse(response []NilInt16, w h return nil } -func encodeTestResponseStringInt16NullableArrayArrayResponse(response [][]NilInt16, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringInt16NullableArrayArrayResponse(response [][]NilStringInt16, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13415,7 +13415,7 @@ func encodeTestResponseStringInt8ArrayArrayResponse(response [][]int8, w http.Re return nil } -func encodeTestResponseStringInt8NullableResponse(response NilInt8, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringInt8NullableResponse(response NilStringInt8, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13429,7 +13429,7 @@ func encodeTestResponseStringInt8NullableResponse(response NilInt8, w http.Respo return nil } -func encodeTestResponseStringInt8NullableArrayResponse(response []NilInt8, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringInt8NullableArrayResponse(response []NilStringInt8, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13447,7 +13447,7 @@ func encodeTestResponseStringInt8NullableArrayResponse(response []NilInt8, w htt return nil } -func encodeTestResponseStringInt8NullableArrayArrayResponse(response [][]NilInt8, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringInt8NullableArrayArrayResponse(response [][]NilStringInt8, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13509,7 +13509,7 @@ func encodeTestResponseStringIntArrayArrayResponse(response [][]int, w http.Resp return nil } -func encodeTestResponseStringIntNullableResponse(response NilInt, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringIntNullableResponse(response NilStringInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13523,7 +13523,7 @@ func encodeTestResponseStringIntNullableResponse(response NilInt, w http.Respons return nil } -func encodeTestResponseStringIntNullableArrayResponse(response []NilInt, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringIntNullableArrayResponse(response []NilStringInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -13541,7 +13541,7 @@ func encodeTestResponseStringIntNullableArrayResponse(response []NilInt, w http. return nil } -func encodeTestResponseStringIntNullableArrayArrayResponse(response [][]NilInt, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringIntNullableArrayArrayResponse(response [][]NilStringInt, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14333,7 +14333,7 @@ func encodeTestResponseStringUint16ArrayArrayResponse(response [][]uint16, w htt return nil } -func encodeTestResponseStringUint16NullableResponse(response NilUint16, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint16NullableResponse(response NilStringUint16, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14347,7 +14347,7 @@ func encodeTestResponseStringUint16NullableResponse(response NilUint16, w http.R return nil } -func encodeTestResponseStringUint16NullableArrayResponse(response []NilUint16, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint16NullableArrayResponse(response []NilStringUint16, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14365,7 +14365,7 @@ func encodeTestResponseStringUint16NullableArrayResponse(response []NilUint16, w return nil } -func encodeTestResponseStringUint16NullableArrayArrayResponse(response [][]NilUint16, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint16NullableArrayArrayResponse(response [][]NilStringUint16, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14441,7 +14441,7 @@ func encodeTestResponseStringUint32ArrayArrayResponse(response [][]uint32, w htt return nil } -func encodeTestResponseStringUint32NullableResponse(response NilUint32, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint32NullableResponse(response NilStringUint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14455,7 +14455,7 @@ func encodeTestResponseStringUint32NullableResponse(response NilUint32, w http.R return nil } -func encodeTestResponseStringUint32NullableArrayResponse(response []NilUint32, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint32NullableArrayResponse(response []NilStringUint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14473,7 +14473,7 @@ func encodeTestResponseStringUint32NullableArrayResponse(response []NilUint32, w return nil } -func encodeTestResponseStringUint32NullableArrayArrayResponse(response [][]NilUint32, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint32NullableArrayArrayResponse(response [][]NilStringUint32, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14549,7 +14549,7 @@ func encodeTestResponseStringUint64ArrayArrayResponse(response [][]uint64, w htt return nil } -func encodeTestResponseStringUint64NullableResponse(response NilUint64, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint64NullableResponse(response NilStringUint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14563,7 +14563,7 @@ func encodeTestResponseStringUint64NullableResponse(response NilUint64, w http.R return nil } -func encodeTestResponseStringUint64NullableArrayResponse(response []NilUint64, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint64NullableArrayResponse(response []NilStringUint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14581,7 +14581,7 @@ func encodeTestResponseStringUint64NullableArrayResponse(response []NilUint64, w return nil } -func encodeTestResponseStringUint64NullableArrayArrayResponse(response [][]NilUint64, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint64NullableArrayArrayResponse(response [][]NilStringUint64, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14657,7 +14657,7 @@ func encodeTestResponseStringUint8ArrayArrayResponse(response [][]uint8, w http. return nil } -func encodeTestResponseStringUint8NullableResponse(response NilUint8, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint8NullableResponse(response NilStringUint8, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14671,7 +14671,7 @@ func encodeTestResponseStringUint8NullableResponse(response NilUint8, w http.Res return nil } -func encodeTestResponseStringUint8NullableArrayResponse(response []NilUint8, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint8NullableArrayResponse(response []NilStringUint8, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14689,7 +14689,7 @@ func encodeTestResponseStringUint8NullableArrayResponse(response []NilUint8, w h return nil } -func encodeTestResponseStringUint8NullableArrayArrayResponse(response [][]NilUint8, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUint8NullableArrayArrayResponse(response [][]NilStringUint8, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14751,7 +14751,7 @@ func encodeTestResponseStringUintArrayArrayResponse(response [][]uint, w http.Re return nil } -func encodeTestResponseStringUintNullableResponse(response NilUint, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUintNullableResponse(response NilStringUint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14765,7 +14765,7 @@ func encodeTestResponseStringUintNullableResponse(response NilUint, w http.Respo return nil } -func encodeTestResponseStringUintNullableArrayResponse(response []NilUint, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUintNullableArrayResponse(response []NilStringUint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) @@ -14783,7 +14783,7 @@ func encodeTestResponseStringUintNullableArrayResponse(response []NilUint, w htt return nil } -func encodeTestResponseStringUintNullableArrayArrayResponse(response [][]NilUint, w http.ResponseWriter, span trace.Span) error { +func encodeTestResponseStringUintNullableArrayArrayResponse(response [][]NilStringUint, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200)) diff --git a/examples/ex_test_format/oas_schemas_gen.go b/examples/ex_test_format/oas_schemas_gen.go index 7eef6562b..19e1bdf32 100644 --- a/examples/ex_test_format/oas_schemas_gen.go +++ b/examples/ex_test_format/oas_schemas_gen.go @@ -712,37 +712,37 @@ func (o NilString) Or(d string) string { return d } -// NewNilStringInt32 returns new NilStringInt32 with value set to v. -func NewNilStringInt32(v int32) NilStringInt32 { - return NilStringInt32{ +// NewNilStringFloat32 returns new NilStringFloat32 with value set to v. +func NewNilStringFloat32(v float32) NilStringFloat32 { + return NilStringFloat32{ Value: v, } } -// NilStringInt32 is nullable int32. -type NilStringInt32 struct { - Value int32 +// NilStringFloat32 is nullable float32. +type NilStringFloat32 struct { + Value float32 Null bool } // SetTo sets value to v. -func (o *NilStringInt32) SetTo(v int32) { +func (o *NilStringFloat32) SetTo(v float32) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilStringInt32) IsNull() bool { return o.Null } +func (o NilStringFloat32) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilStringInt32) SetToNull() { +func (o *NilStringFloat32) SetToNull() { o.Null = true - var v int32 + var v float32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilStringInt32) Get() (v int32, ok bool) { +func (o NilStringFloat32) Get() (v float32, ok bool) { if o.Null { return v, false } @@ -750,44 +750,44 @@ func (o NilStringInt32) Get() (v int32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilStringInt32) Or(d int32) int32 { +func (o NilStringFloat32) Or(d float32) float32 { if v, ok := o.Get(); ok { return v } return d } -// NewNilStringInt64 returns new NilStringInt64 with value set to v. -func NewNilStringInt64(v int64) NilStringInt64 { - return NilStringInt64{ +// NewNilStringFloat64 returns new NilStringFloat64 with value set to v. +func NewNilStringFloat64(v float64) NilStringFloat64 { + return NilStringFloat64{ Value: v, } } -// NilStringInt64 is nullable int64. -type NilStringInt64 struct { - Value int64 +// NilStringFloat64 is nullable float64. +type NilStringFloat64 struct { + Value float64 Null bool } // SetTo sets value to v. -func (o *NilStringInt64) SetTo(v int64) { +func (o *NilStringFloat64) SetTo(v float64) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilStringInt64) IsNull() bool { return o.Null } +func (o NilStringFloat64) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilStringInt64) SetToNull() { +func (o *NilStringFloat64) SetToNull() { o.Null = true - var v int64 + var v float64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilStringInt64) Get() (v int64, ok bool) { +func (o NilStringFloat64) Get() (v float64, ok bool) { if o.Null { return v, false } @@ -795,44 +795,44 @@ func (o NilStringInt64) Get() (v int64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilStringInt64) Or(d int64) int64 { +func (o NilStringFloat64) Or(d float64) float64 { if v, ok := o.Get(); ok { return v } return d } -// NewNilStringUnixMicro returns new NilStringUnixMicro with value set to v. -func NewNilStringUnixMicro(v time.Time) NilStringUnixMicro { - return NilStringUnixMicro{ +// NewNilStringInt returns new NilStringInt with value set to v. +func NewNilStringInt(v int) NilStringInt { + return NilStringInt{ Value: v, } } -// NilStringUnixMicro is nullable time.Time. -type NilStringUnixMicro struct { - Value time.Time +// NilStringInt is nullable int. +type NilStringInt struct { + Value int Null bool } // SetTo sets value to v. -func (o *NilStringUnixMicro) SetTo(v time.Time) { +func (o *NilStringInt) SetTo(v int) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilStringUnixMicro) IsNull() bool { return o.Null } +func (o NilStringInt) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilStringUnixMicro) SetToNull() { +func (o *NilStringInt) SetToNull() { o.Null = true - var v time.Time + var v int o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilStringUnixMicro) Get() (v time.Time, ok bool) { +func (o NilStringInt) Get() (v int, ok bool) { if o.Null { return v, false } @@ -840,44 +840,44 @@ func (o NilStringUnixMicro) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilStringUnixMicro) Or(d time.Time) time.Time { +func (o NilStringInt) Or(d int) int { if v, ok := o.Get(); ok { return v } return d } -// NewNilStringUnixMilli returns new NilStringUnixMilli with value set to v. -func NewNilStringUnixMilli(v time.Time) NilStringUnixMilli { - return NilStringUnixMilli{ +// NewNilStringInt16 returns new NilStringInt16 with value set to v. +func NewNilStringInt16(v int16) NilStringInt16 { + return NilStringInt16{ Value: v, } } -// NilStringUnixMilli is nullable time.Time. -type NilStringUnixMilli struct { - Value time.Time +// NilStringInt16 is nullable int16. +type NilStringInt16 struct { + Value int16 Null bool } // SetTo sets value to v. -func (o *NilStringUnixMilli) SetTo(v time.Time) { +func (o *NilStringInt16) SetTo(v int16) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilStringUnixMilli) IsNull() bool { return o.Null } +func (o NilStringInt16) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilStringUnixMilli) SetToNull() { +func (o *NilStringInt16) SetToNull() { o.Null = true - var v time.Time + var v int16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilStringUnixMilli) Get() (v time.Time, ok bool) { +func (o NilStringInt16) Get() (v int16, ok bool) { if o.Null { return v, false } @@ -885,44 +885,44 @@ func (o NilStringUnixMilli) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilStringUnixMilli) Or(d time.Time) time.Time { +func (o NilStringInt16) Or(d int16) int16 { if v, ok := o.Get(); ok { return v } return d } -// NewNilStringUnixNano returns new NilStringUnixNano with value set to v. -func NewNilStringUnixNano(v time.Time) NilStringUnixNano { - return NilStringUnixNano{ +// NewNilStringInt32 returns new NilStringInt32 with value set to v. +func NewNilStringInt32(v int32) NilStringInt32 { + return NilStringInt32{ Value: v, } } -// NilStringUnixNano is nullable time.Time. -type NilStringUnixNano struct { - Value time.Time +// NilStringInt32 is nullable int32. +type NilStringInt32 struct { + Value int32 Null bool } // SetTo sets value to v. -func (o *NilStringUnixNano) SetTo(v time.Time) { +func (o *NilStringInt32) SetTo(v int32) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilStringUnixNano) IsNull() bool { return o.Null } +func (o NilStringInt32) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilStringUnixNano) SetToNull() { +func (o *NilStringInt32) SetToNull() { o.Null = true - var v time.Time + var v int32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilStringUnixNano) Get() (v time.Time, ok bool) { +func (o NilStringInt32) Get() (v int32, ok bool) { if o.Null { return v, false } @@ -930,44 +930,44 @@ func (o NilStringUnixNano) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilStringUnixNano) Or(d time.Time) time.Time { +func (o NilStringInt32) Or(d int32) int32 { if v, ok := o.Get(); ok { return v } return d } -// NewNilStringUnixSeconds returns new NilStringUnixSeconds with value set to v. -func NewNilStringUnixSeconds(v time.Time) NilStringUnixSeconds { - return NilStringUnixSeconds{ +// NewNilStringInt64 returns new NilStringInt64 with value set to v. +func NewNilStringInt64(v int64) NilStringInt64 { + return NilStringInt64{ Value: v, } } -// NilStringUnixSeconds is nullable time.Time. -type NilStringUnixSeconds struct { - Value time.Time +// NilStringInt64 is nullable int64. +type NilStringInt64 struct { + Value int64 Null bool } // SetTo sets value to v. -func (o *NilStringUnixSeconds) SetTo(v time.Time) { +func (o *NilStringInt64) SetTo(v int64) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilStringUnixSeconds) IsNull() bool { return o.Null } +func (o NilStringInt64) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilStringUnixSeconds) SetToNull() { +func (o *NilStringInt64) SetToNull() { o.Null = true - var v time.Time + var v int64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilStringUnixSeconds) Get() (v time.Time, ok bool) { +func (o NilStringInt64) Get() (v int64, ok bool) { if o.Null { return v, false } @@ -975,44 +975,44 @@ func (o NilStringUnixSeconds) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilStringUnixSeconds) Or(d time.Time) time.Time { +func (o NilStringInt64) Or(d int64) int64 { if v, ok := o.Get(); ok { return v } return d } -// NewNilTime returns new NilTime with value set to v. -func NewNilTime(v time.Time) NilTime { - return NilTime{ +// NewNilStringInt8 returns new NilStringInt8 with value set to v. +func NewNilStringInt8(v int8) NilStringInt8 { + return NilStringInt8{ Value: v, } } -// NilTime is nullable time.Time. -type NilTime struct { - Value time.Time +// NilStringInt8 is nullable int8. +type NilStringInt8 struct { + Value int8 Null bool } // SetTo sets value to v. -func (o *NilTime) SetTo(v time.Time) { +func (o *NilStringInt8) SetTo(v int8) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilTime) IsNull() bool { return o.Null } +func (o NilStringInt8) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilTime) SetToNull() { +func (o *NilStringInt8) SetToNull() { o.Null = true - var v time.Time + var v int8 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilTime) Get() (v time.Time, ok bool) { +func (o NilStringInt8) Get() (v int8, ok bool) { if o.Null { return v, false } @@ -1020,44 +1020,44 @@ func (o NilTime) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilTime) Or(d time.Time) time.Time { +func (o NilStringInt8) Or(d int8) int8 { if v, ok := o.Get(); ok { return v } return d } -// NewNilURI returns new NilURI with value set to v. -func NewNilURI(v url.URL) NilURI { - return NilURI{ +// NewNilStringUint returns new NilStringUint with value set to v. +func NewNilStringUint(v uint) NilStringUint { + return NilStringUint{ Value: v, } } -// NilURI is nullable url.URL. -type NilURI struct { - Value url.URL +// NilStringUint is nullable uint. +type NilStringUint struct { + Value uint Null bool } // SetTo sets value to v. -func (o *NilURI) SetTo(v url.URL) { +func (o *NilStringUint) SetTo(v uint) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilURI) IsNull() bool { return o.Null } +func (o NilStringUint) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilURI) SetToNull() { +func (o *NilStringUint) SetToNull() { o.Null = true - var v url.URL + var v uint o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilURI) Get() (v url.URL, ok bool) { +func (o NilStringUint) Get() (v uint, ok bool) { if o.Null { return v, false } @@ -1065,44 +1065,44 @@ func (o NilURI) Get() (v url.URL, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilURI) Or(d url.URL) url.URL { +func (o NilStringUint) Or(d uint) uint { if v, ok := o.Get(); ok { return v } return d } -// NewNilUUID returns new NilUUID with value set to v. -func NewNilUUID(v uuid.UUID) NilUUID { - return NilUUID{ +// NewNilStringUint16 returns new NilStringUint16 with value set to v. +func NewNilStringUint16(v uint16) NilStringUint16 { + return NilStringUint16{ Value: v, } } -// NilUUID is nullable uuid.UUID. -type NilUUID struct { - Value uuid.UUID +// NilStringUint16 is nullable uint16. +type NilStringUint16 struct { + Value uint16 Null bool } // SetTo sets value to v. -func (o *NilUUID) SetTo(v uuid.UUID) { +func (o *NilStringUint16) SetTo(v uint16) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUUID) IsNull() bool { return o.Null } +func (o NilStringUint16) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUUID) SetToNull() { +func (o *NilStringUint16) SetToNull() { o.Null = true - var v uuid.UUID + var v uint16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUUID) Get() (v uuid.UUID, ok bool) { +func (o NilStringUint16) Get() (v uint16, ok bool) { if o.Null { return v, false } @@ -1110,44 +1110,44 @@ func (o NilUUID) Get() (v uuid.UUID, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUUID) Or(d uuid.UUID) uuid.UUID { +func (o NilStringUint16) Or(d uint16) uint16 { if v, ok := o.Get(); ok { return v } return d } -// NewNilUint returns new NilUint with value set to v. -func NewNilUint(v uint) NilUint { - return NilUint{ +// NewNilStringUint32 returns new NilStringUint32 with value set to v. +func NewNilStringUint32(v uint32) NilStringUint32 { + return NilStringUint32{ Value: v, } } -// NilUint is nullable uint. -type NilUint struct { - Value uint +// NilStringUint32 is nullable uint32. +type NilStringUint32 struct { + Value uint32 Null bool } // SetTo sets value to v. -func (o *NilUint) SetTo(v uint) { +func (o *NilStringUint32) SetTo(v uint32) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUint) IsNull() bool { return o.Null } +func (o NilStringUint32) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUint) SetToNull() { +func (o *NilStringUint32) SetToNull() { o.Null = true - var v uint + var v uint32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUint) Get() (v uint, ok bool) { +func (o NilStringUint32) Get() (v uint32, ok bool) { if o.Null { return v, false } @@ -1155,44 +1155,44 @@ func (o NilUint) Get() (v uint, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUint) Or(d uint) uint { +func (o NilStringUint32) Or(d uint32) uint32 { if v, ok := o.Get(); ok { return v } return d } -// NewNilUint16 returns new NilUint16 with value set to v. -func NewNilUint16(v uint16) NilUint16 { - return NilUint16{ +// NewNilStringUint64 returns new NilStringUint64 with value set to v. +func NewNilStringUint64(v uint64) NilStringUint64 { + return NilStringUint64{ Value: v, } } -// NilUint16 is nullable uint16. -type NilUint16 struct { - Value uint16 +// NilStringUint64 is nullable uint64. +type NilStringUint64 struct { + Value uint64 Null bool } // SetTo sets value to v. -func (o *NilUint16) SetTo(v uint16) { +func (o *NilStringUint64) SetTo(v uint64) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUint16) IsNull() bool { return o.Null } +func (o NilStringUint64) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUint16) SetToNull() { +func (o *NilStringUint64) SetToNull() { o.Null = true - var v uint16 + var v uint64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUint16) Get() (v uint16, ok bool) { +func (o NilStringUint64) Get() (v uint64, ok bool) { if o.Null { return v, false } @@ -1200,44 +1200,44 @@ func (o NilUint16) Get() (v uint16, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUint16) Or(d uint16) uint16 { +func (o NilStringUint64) Or(d uint64) uint64 { if v, ok := o.Get(); ok { return v } return d } -// NewNilUint32 returns new NilUint32 with value set to v. -func NewNilUint32(v uint32) NilUint32 { - return NilUint32{ +// NewNilStringUint8 returns new NilStringUint8 with value set to v. +func NewNilStringUint8(v uint8) NilStringUint8 { + return NilStringUint8{ Value: v, } } -// NilUint32 is nullable uint32. -type NilUint32 struct { - Value uint32 +// NilStringUint8 is nullable uint8. +type NilStringUint8 struct { + Value uint8 Null bool } // SetTo sets value to v. -func (o *NilUint32) SetTo(v uint32) { +func (o *NilStringUint8) SetTo(v uint8) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUint32) IsNull() bool { return o.Null } +func (o NilStringUint8) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUint32) SetToNull() { +func (o *NilStringUint8) SetToNull() { o.Null = true - var v uint32 + var v uint8 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUint32) Get() (v uint32, ok bool) { +func (o NilStringUint8) Get() (v uint8, ok bool) { if o.Null { return v, false } @@ -1245,44 +1245,44 @@ func (o NilUint32) Get() (v uint32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUint32) Or(d uint32) uint32 { +func (o NilStringUint8) Or(d uint8) uint8 { if v, ok := o.Get(); ok { return v } return d } -// NewNilUint64 returns new NilUint64 with value set to v. -func NewNilUint64(v uint64) NilUint64 { - return NilUint64{ +// NewNilStringUnixMicro returns new NilStringUnixMicro with value set to v. +func NewNilStringUnixMicro(v time.Time) NilStringUnixMicro { + return NilStringUnixMicro{ Value: v, } } -// NilUint64 is nullable uint64. -type NilUint64 struct { - Value uint64 +// NilStringUnixMicro is nullable time.Time. +type NilStringUnixMicro struct { + Value time.Time Null bool } // SetTo sets value to v. -func (o *NilUint64) SetTo(v uint64) { +func (o *NilStringUnixMicro) SetTo(v time.Time) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUint64) IsNull() bool { return o.Null } +func (o NilStringUnixMicro) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUint64) SetToNull() { +func (o *NilStringUnixMicro) SetToNull() { o.Null = true - var v uint64 + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUint64) Get() (v uint64, ok bool) { +func (o NilStringUnixMicro) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -1290,44 +1290,44 @@ func (o NilUint64) Get() (v uint64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUint64) Or(d uint64) uint64 { +func (o NilStringUnixMicro) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewNilUint8 returns new NilUint8 with value set to v. -func NewNilUint8(v uint8) NilUint8 { - return NilUint8{ +// NewNilStringUnixMilli returns new NilStringUnixMilli with value set to v. +func NewNilStringUnixMilli(v time.Time) NilStringUnixMilli { + return NilStringUnixMilli{ Value: v, } } -// NilUint8 is nullable uint8. -type NilUint8 struct { - Value uint8 +// NilStringUnixMilli is nullable time.Time. +type NilStringUnixMilli struct { + Value time.Time Null bool } // SetTo sets value to v. -func (o *NilUint8) SetTo(v uint8) { +func (o *NilStringUnixMilli) SetTo(v time.Time) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUint8) IsNull() bool { return o.Null } +func (o NilStringUnixMilli) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUint8) SetToNull() { +func (o *NilStringUnixMilli) SetToNull() { o.Null = true - var v uint8 + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUint8) Get() (v uint8, ok bool) { +func (o NilStringUnixMilli) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -1335,44 +1335,44 @@ func (o NilUint8) Get() (v uint8, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUint8) Or(d uint8) uint8 { +func (o NilStringUnixMilli) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewNilUnixMicro returns new NilUnixMicro with value set to v. -func NewNilUnixMicro(v time.Time) NilUnixMicro { - return NilUnixMicro{ +// NewNilStringUnixNano returns new NilStringUnixNano with value set to v. +func NewNilStringUnixNano(v time.Time) NilStringUnixNano { + return NilStringUnixNano{ Value: v, } } -// NilUnixMicro is nullable time.Time. -type NilUnixMicro struct { +// NilStringUnixNano is nullable time.Time. +type NilStringUnixNano struct { Value time.Time Null bool } // SetTo sets value to v. -func (o *NilUnixMicro) SetTo(v time.Time) { +func (o *NilStringUnixNano) SetTo(v time.Time) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUnixMicro) IsNull() bool { return o.Null } +func (o NilStringUnixNano) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUnixMicro) SetToNull() { +func (o *NilStringUnixNano) SetToNull() { o.Null = true var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUnixMicro) Get() (v time.Time, ok bool) { +func (o NilStringUnixNano) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -1380,44 +1380,44 @@ func (o NilUnixMicro) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUnixMicro) Or(d time.Time) time.Time { +func (o NilStringUnixNano) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewNilUnixMilli returns new NilUnixMilli with value set to v. -func NewNilUnixMilli(v time.Time) NilUnixMilli { - return NilUnixMilli{ +// NewNilStringUnixSeconds returns new NilStringUnixSeconds with value set to v. +func NewNilStringUnixSeconds(v time.Time) NilStringUnixSeconds { + return NilStringUnixSeconds{ Value: v, } } -// NilUnixMilli is nullable time.Time. -type NilUnixMilli struct { +// NilStringUnixSeconds is nullable time.Time. +type NilStringUnixSeconds struct { Value time.Time Null bool } // SetTo sets value to v. -func (o *NilUnixMilli) SetTo(v time.Time) { +func (o *NilStringUnixSeconds) SetTo(v time.Time) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUnixMilli) IsNull() bool { return o.Null } +func (o NilStringUnixSeconds) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUnixMilli) SetToNull() { +func (o *NilStringUnixSeconds) SetToNull() { o.Null = true var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUnixMilli) Get() (v time.Time, ok bool) { +func (o NilStringUnixSeconds) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -1425,44 +1425,44 @@ func (o NilUnixMilli) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUnixMilli) Or(d time.Time) time.Time { +func (o NilStringUnixSeconds) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewNilUnixNano returns new NilUnixNano with value set to v. -func NewNilUnixNano(v time.Time) NilUnixNano { - return NilUnixNano{ +// NewNilTime returns new NilTime with value set to v. +func NewNilTime(v time.Time) NilTime { + return NilTime{ Value: v, } } -// NilUnixNano is nullable time.Time. -type NilUnixNano struct { +// NilTime is nullable time.Time. +type NilTime struct { Value time.Time Null bool } // SetTo sets value to v. -func (o *NilUnixNano) SetTo(v time.Time) { +func (o *NilTime) SetTo(v time.Time) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUnixNano) IsNull() bool { return o.Null } +func (o NilTime) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUnixNano) SetToNull() { +func (o *NilTime) SetToNull() { o.Null = true var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUnixNano) Get() (v time.Time, ok bool) { +func (o NilTime) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -1470,44 +1470,44 @@ func (o NilUnixNano) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUnixNano) Or(d time.Time) time.Time { +func (o NilTime) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewNilUnixSeconds returns new NilUnixSeconds with value set to v. -func NewNilUnixSeconds(v time.Time) NilUnixSeconds { - return NilUnixSeconds{ +// NewNilURI returns new NilURI with value set to v. +func NewNilURI(v url.URL) NilURI { + return NilURI{ Value: v, } } -// NilUnixSeconds is nullable time.Time. -type NilUnixSeconds struct { - Value time.Time +// NilURI is nullable url.URL. +type NilURI struct { + Value url.URL Null bool } // SetTo sets value to v. -func (o *NilUnixSeconds) SetTo(v time.Time) { +func (o *NilURI) SetTo(v url.URL) { o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o NilUnixSeconds) IsNull() bool { return o.Null } +func (o NilURI) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *NilUnixSeconds) SetToNull() { +func (o *NilURI) SetToNull() { o.Null = true - var v time.Time + var v url.URL o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o NilUnixSeconds) Get() (v time.Time, ok bool) { +func (o NilURI) Get() (v url.URL, ok bool) { if o.Null { return v, false } @@ -1515,229 +1515,1723 @@ func (o NilUnixSeconds) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o NilUnixSeconds) Or(d time.Time) time.Time { +func (o NilURI) Or(d url.URL) url.URL { if v, ok := o.Get(); ok { return v } return d } -// NewOptBool returns new OptBool with value set to v. -func NewOptBool(v bool) OptBool { - return OptBool{ +// NewNilUUID returns new NilUUID with value set to v. +func NewNilUUID(v uuid.UUID) NilUUID { + return NilUUID{ Value: v, - Set: true, } } -// OptBool is optional bool. -type OptBool struct { - Value bool - Set bool +// NilUUID is nullable uuid.UUID. +type NilUUID struct { + Value uuid.UUID + Null bool } -// IsSet returns true if OptBool was set. -func (o OptBool) IsSet() bool { return o.Set } - -// Reset unsets value. -func (o *OptBool) Reset() { - var v bool +// SetTo sets value to v. +func (o *NilUUID) SetTo(v uuid.UUID) { + o.Null = false o.Value = v - o.Set = false } -// SetTo sets value to v. -func (o *OptBool) SetTo(v bool) { - o.Set = true +// IsSet returns true if value is Null. +func (o NilUUID) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUUID) SetToNull() { + o.Null = true + var v uuid.UUID o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptBool) Get() (v bool, ok bool) { - if !o.Set { +func (o NilUUID) Get() (v uuid.UUID, ok bool) { + if o.Null { return v, false } return o.Value, true } // Or returns value if set, or given parameter if does not. -func (o OptBool) Or(d bool) bool { +func (o NilUUID) Or(d uuid.UUID) uuid.UUID { if v, ok := o.Get(); ok { return v } return d } -// NewOptDate returns new OptDate with value set to v. -func NewOptDate(v time.Time) OptDate { - return OptDate{ +// NewNilUint returns new NilUint with value set to v. +func NewNilUint(v uint) NilUint { + return NilUint{ Value: v, - Set: true, } } -// OptDate is optional time.Time. -type OptDate struct { - Value time.Time - Set bool +// NilUint is nullable uint. +type NilUint struct { + Value uint + Null bool } -// IsSet returns true if OptDate was set. -func (o OptDate) IsSet() bool { return o.Set } - -// Reset unsets value. -func (o *OptDate) Reset() { - var v time.Time +// SetTo sets value to v. +func (o *NilUint) SetTo(v uint) { + o.Null = false o.Value = v - o.Set = false } -// SetTo sets value to v. -func (o *OptDate) SetTo(v time.Time) { - o.Set = true +// IsSet returns true if value is Null. +func (o NilUint) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUint) SetToNull() { + o.Null = true + var v uint o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptDate) Get() (v time.Time, ok bool) { - if !o.Set { +func (o NilUint) Get() (v uint, ok bool) { + if o.Null { return v, false } return o.Value, true } // Or returns value if set, or given parameter if does not. -func (o OptDate) Or(d time.Time) time.Time { +func (o NilUint) Or(d uint) uint { if v, ok := o.Get(); ok { return v } return d } -// NewOptDateTime returns new OptDateTime with value set to v. -func NewOptDateTime(v time.Time) OptDateTime { - return OptDateTime{ +// NewNilUint16 returns new NilUint16 with value set to v. +func NewNilUint16(v uint16) NilUint16 { + return NilUint16{ Value: v, - Set: true, } } -// OptDateTime is optional time.Time. -type OptDateTime struct { - Value time.Time - Set bool +// NilUint16 is nullable uint16. +type NilUint16 struct { + Value uint16 + Null bool } -// IsSet returns true if OptDateTime was set. -func (o OptDateTime) IsSet() bool { return o.Set } - -// Reset unsets value. -func (o *OptDateTime) Reset() { - var v time.Time +// SetTo sets value to v. +func (o *NilUint16) SetTo(v uint16) { + o.Null = false o.Value = v - o.Set = false } -// SetTo sets value to v. -func (o *OptDateTime) SetTo(v time.Time) { - o.Set = true +// IsSet returns true if value is Null. +func (o NilUint16) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUint16) SetToNull() { + o.Null = true + var v uint16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptDateTime) Get() (v time.Time, ok bool) { - if !o.Set { +func (o NilUint16) Get() (v uint16, ok bool) { + if o.Null { return v, false } return o.Value, true } // Or returns value if set, or given parameter if does not. -func (o OptDateTime) Or(d time.Time) time.Time { +func (o NilUint16) Or(d uint16) uint16 { if v, ok := o.Get(); ok { return v } return d } -// NewOptDuration returns new OptDuration with value set to v. -func NewOptDuration(v time.Duration) OptDuration { - return OptDuration{ +// NewNilUint32 returns new NilUint32 with value set to v. +func NewNilUint32(v uint32) NilUint32 { + return NilUint32{ Value: v, - Set: true, } } -// OptDuration is optional time.Duration. -type OptDuration struct { - Value time.Duration - Set bool +// NilUint32 is nullable uint32. +type NilUint32 struct { + Value uint32 + Null bool } -// IsSet returns true if OptDuration was set. -func (o OptDuration) IsSet() bool { return o.Set } - -// Reset unsets value. -func (o *OptDuration) Reset() { - var v time.Duration +// SetTo sets value to v. +func (o *NilUint32) SetTo(v uint32) { + o.Null = false o.Value = v - o.Set = false } -// SetTo sets value to v. -func (o *OptDuration) SetTo(v time.Duration) { - o.Set = true +// IsSet returns true if value is Null. +func (o NilUint32) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUint32) SetToNull() { + o.Null = true + var v uint32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptDuration) Get() (v time.Duration, ok bool) { - if !o.Set { +func (o NilUint32) Get() (v uint32, ok bool) { + if o.Null { return v, false } return o.Value, true } // Or returns value if set, or given parameter if does not. -func (o OptDuration) Or(d time.Duration) time.Duration { +func (o NilUint32) Or(d uint32) uint32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptFloat32 returns new OptFloat32 with value set to v. -func NewOptFloat32(v float32) OptFloat32 { - return OptFloat32{ +// NewNilUint64 returns new NilUint64 with value set to v. +func NewNilUint64(v uint64) NilUint64 { + return NilUint64{ Value: v, - Set: true, } } -// OptFloat32 is optional float32. -type OptFloat32 struct { - Value float32 - Set bool +// NilUint64 is nullable uint64. +type NilUint64 struct { + Value uint64 + Null bool } -// IsSet returns true if OptFloat32 was set. -func (o OptFloat32) IsSet() bool { return o.Set } - -// Reset unsets value. -func (o *OptFloat32) Reset() { - var v float32 +// SetTo sets value to v. +func (o *NilUint64) SetTo(v uint64) { + o.Null = false o.Value = v - o.Set = false } -// SetTo sets value to v. -func (o *OptFloat32) SetTo(v float32) { - o.Set = true +// IsSet returns true if value is Null. +func (o NilUint64) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUint64) SetToNull() { + o.Null = true + var v uint64 + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o NilUint64) Get() (v uint64, ok bool) { + if o.Null { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o NilUint64) Or(d uint64) uint64 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewNilUint8 returns new NilUint8 with value set to v. +func NewNilUint8(v uint8) NilUint8 { + return NilUint8{ + Value: v, + } +} + +// NilUint8 is nullable uint8. +type NilUint8 struct { + Value uint8 + Null bool +} + +// SetTo sets value to v. +func (o *NilUint8) SetTo(v uint8) { + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o NilUint8) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUint8) SetToNull() { + o.Null = true + var v uint8 + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o NilUint8) Get() (v uint8, ok bool) { + if o.Null { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o NilUint8) Or(d uint8) uint8 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewNilUnixMicro returns new NilUnixMicro with value set to v. +func NewNilUnixMicro(v time.Time) NilUnixMicro { + return NilUnixMicro{ + Value: v, + } +} + +// NilUnixMicro is nullable time.Time. +type NilUnixMicro struct { + Value time.Time + Null bool +} + +// SetTo sets value to v. +func (o *NilUnixMicro) SetTo(v time.Time) { + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o NilUnixMicro) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUnixMicro) SetToNull() { + o.Null = true + var v time.Time + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o NilUnixMicro) Get() (v time.Time, ok bool) { + if o.Null { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o NilUnixMicro) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewNilUnixMilli returns new NilUnixMilli with value set to v. +func NewNilUnixMilli(v time.Time) NilUnixMilli { + return NilUnixMilli{ + Value: v, + } +} + +// NilUnixMilli is nullable time.Time. +type NilUnixMilli struct { + Value time.Time + Null bool +} + +// SetTo sets value to v. +func (o *NilUnixMilli) SetTo(v time.Time) { + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o NilUnixMilli) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUnixMilli) SetToNull() { + o.Null = true + var v time.Time + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o NilUnixMilli) Get() (v time.Time, ok bool) { + if o.Null { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o NilUnixMilli) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewNilUnixNano returns new NilUnixNano with value set to v. +func NewNilUnixNano(v time.Time) NilUnixNano { + return NilUnixNano{ + Value: v, + } +} + +// NilUnixNano is nullable time.Time. +type NilUnixNano struct { + Value time.Time + Null bool +} + +// SetTo sets value to v. +func (o *NilUnixNano) SetTo(v time.Time) { + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o NilUnixNano) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUnixNano) SetToNull() { + o.Null = true + var v time.Time + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o NilUnixNano) Get() (v time.Time, ok bool) { + if o.Null { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o NilUnixNano) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewNilUnixSeconds returns new NilUnixSeconds with value set to v. +func NewNilUnixSeconds(v time.Time) NilUnixSeconds { + return NilUnixSeconds{ + Value: v, + } +} + +// NilUnixSeconds is nullable time.Time. +type NilUnixSeconds struct { + Value time.Time + Null bool +} + +// SetTo sets value to v. +func (o *NilUnixSeconds) SetTo(v time.Time) { + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o NilUnixSeconds) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *NilUnixSeconds) SetToNull() { + o.Null = true + var v time.Time + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o NilUnixSeconds) Get() (v time.Time, ok bool) { + if o.Null { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o NilUnixSeconds) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptBool returns new OptBool with value set to v. +func NewOptBool(v bool) OptBool { + return OptBool{ + Value: v, + Set: true, + } +} + +// OptBool is optional bool. +type OptBool struct { + Value bool + Set bool +} + +// IsSet returns true if OptBool was set. +func (o OptBool) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptBool) Reset() { + var v bool + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptBool) SetTo(v bool) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptBool) Get() (v bool, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptBool) Or(d bool) bool { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptDate returns new OptDate with value set to v. +func NewOptDate(v time.Time) OptDate { + return OptDate{ + Value: v, + Set: true, + } +} + +// OptDate is optional time.Time. +type OptDate struct { + Value time.Time + Set bool +} + +// IsSet returns true if OptDate was set. +func (o OptDate) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptDate) Reset() { + var v time.Time + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptDate) SetTo(v time.Time) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptDate) Get() (v time.Time, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptDate) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptDateTime returns new OptDateTime with value set to v. +func NewOptDateTime(v time.Time) OptDateTime { + return OptDateTime{ + Value: v, + Set: true, + } +} + +// OptDateTime is optional time.Time. +type OptDateTime struct { + Value time.Time + Set bool +} + +// IsSet returns true if OptDateTime was set. +func (o OptDateTime) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptDateTime) Reset() { + var v time.Time + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptDateTime) SetTo(v time.Time) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptDateTime) Get() (v time.Time, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptDateTime) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptDuration returns new OptDuration with value set to v. +func NewOptDuration(v time.Duration) OptDuration { + return OptDuration{ + Value: v, + Set: true, + } +} + +// OptDuration is optional time.Duration. +type OptDuration struct { + Value time.Duration + Set bool +} + +// IsSet returns true if OptDuration was set. +func (o OptDuration) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptDuration) Reset() { + var v time.Duration + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptDuration) SetTo(v time.Duration) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptDuration) Get() (v time.Duration, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptDuration) Or(d time.Duration) time.Duration { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptFloat32 returns new OptFloat32 with value set to v. +func NewOptFloat32(v float32) OptFloat32 { + return OptFloat32{ + Value: v, + Set: true, + } +} + +// OptFloat32 is optional float32. +type OptFloat32 struct { + Value float32 + Set bool +} + +// IsSet returns true if OptFloat32 was set. +func (o OptFloat32) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptFloat32) Reset() { + var v float32 + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptFloat32) SetTo(v float32) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptFloat32) Get() (v float32, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptFloat32) Or(d float32) float32 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptFloat64 returns new OptFloat64 with value set to v. +func NewOptFloat64(v float64) OptFloat64 { + return OptFloat64{ + Value: v, + Set: true, + } +} + +// OptFloat64 is optional float64. +type OptFloat64 struct { + Value float64 + Set bool +} + +// IsSet returns true if OptFloat64 was set. +func (o OptFloat64) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptFloat64) Reset() { + var v float64 + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptFloat64) SetTo(v float64) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptFloat64) Get() (v float64, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptFloat64) Or(d float64) float64 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptIP returns new OptIP with value set to v. +func NewOptIP(v netip.Addr) OptIP { + return OptIP{ + Value: v, + Set: true, + } +} + +// OptIP is optional netip.Addr. +type OptIP struct { + Value netip.Addr + Set bool +} + +// IsSet returns true if OptIP was set. +func (o OptIP) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptIP) Reset() { + var v netip.Addr + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptIP) SetTo(v netip.Addr) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptIP) Get() (v netip.Addr, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptIP) Or(d netip.Addr) netip.Addr { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptIPv4 returns new OptIPv4 with value set to v. +func NewOptIPv4(v netip.Addr) OptIPv4 { + return OptIPv4{ + Value: v, + Set: true, + } +} + +// OptIPv4 is optional netip.Addr. +type OptIPv4 struct { + Value netip.Addr + Set bool +} + +// IsSet returns true if OptIPv4 was set. +func (o OptIPv4) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptIPv4) Reset() { + var v netip.Addr + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptIPv4) SetTo(v netip.Addr) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptIPv4) Get() (v netip.Addr, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptIPv4) Or(d netip.Addr) netip.Addr { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptIPv6 returns new OptIPv6 with value set to v. +func NewOptIPv6(v netip.Addr) OptIPv6 { + return OptIPv6{ + Value: v, + Set: true, + } +} + +// OptIPv6 is optional netip.Addr. +type OptIPv6 struct { + Value netip.Addr + Set bool +} + +// IsSet returns true if OptIPv6 was set. +func (o OptIPv6) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptIPv6) Reset() { + var v netip.Addr + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptIPv6) SetTo(v netip.Addr) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptIPv6) Get() (v netip.Addr, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptIPv6) Or(d netip.Addr) netip.Addr { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptInt returns new OptInt with value set to v. +func NewOptInt(v int) OptInt { + return OptInt{ + Value: v, + Set: true, + } +} + +// OptInt is optional int. +type OptInt struct { + Value int + Set bool +} + +// IsSet returns true if OptInt was set. +func (o OptInt) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptInt) Reset() { + var v int + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptInt) SetTo(v int) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptInt) Get() (v int, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptInt) Or(d int) int { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptInt16 returns new OptInt16 with value set to v. +func NewOptInt16(v int16) OptInt16 { + return OptInt16{ + Value: v, + Set: true, + } +} + +// OptInt16 is optional int16. +type OptInt16 struct { + Value int16 + Set bool +} + +// IsSet returns true if OptInt16 was set. +func (o OptInt16) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptInt16) Reset() { + var v int16 + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptInt16) SetTo(v int16) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptInt16) Get() (v int16, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptInt16) Or(d int16) int16 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptInt32 returns new OptInt32 with value set to v. +func NewOptInt32(v int32) OptInt32 { + return OptInt32{ + Value: v, + Set: true, + } +} + +// OptInt32 is optional int32. +type OptInt32 struct { + Value int32 + Set bool +} + +// IsSet returns true if OptInt32 was set. +func (o OptInt32) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptInt32) Reset() { + var v int32 + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptInt32) SetTo(v int32) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptInt32) Get() (v int32, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptInt32) Or(d int32) int32 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptInt64 returns new OptInt64 with value set to v. +func NewOptInt64(v int64) OptInt64 { + return OptInt64{ + Value: v, + Set: true, + } +} + +// OptInt64 is optional int64. +type OptInt64 struct { + Value int64 + Set bool +} + +// IsSet returns true if OptInt64 was set. +func (o OptInt64) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptInt64) Reset() { + var v int64 + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptInt64) SetTo(v int64) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptInt64) Get() (v int64, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptInt64) Or(d int64) int64 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptInt8 returns new OptInt8 with value set to v. +func NewOptInt8(v int8) OptInt8 { + return OptInt8{ + Value: v, + Set: true, + } +} + +// OptInt8 is optional int8. +type OptInt8 struct { + Value int8 + Set bool +} + +// IsSet returns true if OptInt8 was set. +func (o OptInt8) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptInt8) Reset() { + var v int8 + o.Value = v + o.Set = false +} + +// SetTo sets value to v. +func (o *OptInt8) SetTo(v int8) { + o.Set = true + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptInt8) Get() (v int8, ok bool) { + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptInt8) Or(d int8) int8 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilBool returns new OptNilBool with value set to v. +func NewOptNilBool(v bool) OptNilBool { + return OptNilBool{ + Value: v, + Set: true, + } +} + +// OptNilBool is optional nullable bool. +type OptNilBool struct { + Value bool + Set bool + Null bool +} + +// IsSet returns true if OptNilBool was set. +func (o OptNilBool) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilBool) Reset() { + var v bool + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilBool) SetTo(v bool) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilBool) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilBool) SetToNull() { + o.Set = true + o.Null = true + var v bool + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilBool) Get() (v bool, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilBool) Or(d bool) bool { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilByte returns new OptNilByte with value set to v. +func NewOptNilByte(v []byte) OptNilByte { + return OptNilByte{ + Value: v, + Set: true, + } +} + +// OptNilByte is optional nullable []byte. +type OptNilByte struct { + Value []byte + Set bool + Null bool +} + +// IsSet returns true if OptNilByte was set. +func (o OptNilByte) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilByte) Reset() { + var v []byte + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilByte) SetTo(v []byte) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilByte) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilByte) SetToNull() { + o.Set = true + o.Null = true + var v []byte + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilByte) Get() (v []byte, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilByte) Or(d []byte) []byte { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilDate returns new OptNilDate with value set to v. +func NewOptNilDate(v time.Time) OptNilDate { + return OptNilDate{ + Value: v, + Set: true, + } +} + +// OptNilDate is optional nullable time.Time. +type OptNilDate struct { + Value time.Time + Set bool + Null bool +} + +// IsSet returns true if OptNilDate was set. +func (o OptNilDate) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilDate) Reset() { + var v time.Time + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilDate) SetTo(v time.Time) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilDate) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilDate) SetToNull() { + o.Set = true + o.Null = true + var v time.Time + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilDate) Get() (v time.Time, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilDate) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilDateTime returns new OptNilDateTime with value set to v. +func NewOptNilDateTime(v time.Time) OptNilDateTime { + return OptNilDateTime{ + Value: v, + Set: true, + } +} + +// OptNilDateTime is optional nullable time.Time. +type OptNilDateTime struct { + Value time.Time + Set bool + Null bool +} + +// IsSet returns true if OptNilDateTime was set. +func (o OptNilDateTime) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilDateTime) Reset() { + var v time.Time + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilDateTime) SetTo(v time.Time) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilDateTime) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilDateTime) SetToNull() { + o.Set = true + o.Null = true + var v time.Time + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilDateTime) Get() (v time.Time, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilDateTime) Or(d time.Time) time.Time { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilDuration returns new OptNilDuration with value set to v. +func NewOptNilDuration(v time.Duration) OptNilDuration { + return OptNilDuration{ + Value: v, + Set: true, + } +} + +// OptNilDuration is optional nullable time.Duration. +type OptNilDuration struct { + Value time.Duration + Set bool + Null bool +} + +// IsSet returns true if OptNilDuration was set. +func (o OptNilDuration) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilDuration) Reset() { + var v time.Duration + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilDuration) SetTo(v time.Duration) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilDuration) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilDuration) SetToNull() { + o.Set = true + o.Null = true + var v time.Duration + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilDuration) Get() (v time.Duration, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilDuration) Or(d time.Duration) time.Duration { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilFloat32 returns new OptNilFloat32 with value set to v. +func NewOptNilFloat32(v float32) OptNilFloat32 { + return OptNilFloat32{ + Value: v, + Set: true, + } +} + +// OptNilFloat32 is optional nullable float32. +type OptNilFloat32 struct { + Value float32 + Set bool + Null bool +} + +// IsSet returns true if OptNilFloat32 was set. +func (o OptNilFloat32) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilFloat32) Reset() { + var v float32 + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilFloat32) SetTo(v float32) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilFloat32) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilFloat32) SetToNull() { + o.Set = true + o.Null = true + var v float32 + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilFloat32) Get() (v float32, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilFloat32) Or(d float32) float32 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilFloat64 returns new OptNilFloat64 with value set to v. +func NewOptNilFloat64(v float64) OptNilFloat64 { + return OptNilFloat64{ + Value: v, + Set: true, + } +} + +// OptNilFloat64 is optional nullable float64. +type OptNilFloat64 struct { + Value float64 + Set bool + Null bool +} + +// IsSet returns true if OptNilFloat64 was set. +func (o OptNilFloat64) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilFloat64) Reset() { + var v float64 + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilFloat64) SetTo(v float64) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilFloat64) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilFloat64) SetToNull() { + o.Set = true + o.Null = true + var v float64 + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilFloat64) Get() (v float64, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilFloat64) Or(d float64) float64 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilIP returns new OptNilIP with value set to v. +func NewOptNilIP(v netip.Addr) OptNilIP { + return OptNilIP{ + Value: v, + Set: true, + } +} + +// OptNilIP is optional nullable netip.Addr. +type OptNilIP struct { + Value netip.Addr + Set bool + Null bool +} + +// IsSet returns true if OptNilIP was set. +func (o OptNilIP) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilIP) Reset() { + var v netip.Addr + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilIP) SetTo(v netip.Addr) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilIP) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilIP) SetToNull() { + o.Set = true + o.Null = true + var v netip.Addr + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilIP) Get() (v netip.Addr, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilIP) Or(d netip.Addr) netip.Addr { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilIPv4 returns new OptNilIPv4 with value set to v. +func NewOptNilIPv4(v netip.Addr) OptNilIPv4 { + return OptNilIPv4{ + Value: v, + Set: true, + } +} + +// OptNilIPv4 is optional nullable netip.Addr. +type OptNilIPv4 struct { + Value netip.Addr + Set bool + Null bool +} + +// IsSet returns true if OptNilIPv4 was set. +func (o OptNilIPv4) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilIPv4) Reset() { + var v netip.Addr + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilIPv4) SetTo(v netip.Addr) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilIPv4) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilIPv4) SetToNull() { + o.Set = true + o.Null = true + var v netip.Addr + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilIPv4) Get() (v netip.Addr, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilIPv4) Or(d netip.Addr) netip.Addr { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilIPv6 returns new OptNilIPv6 with value set to v. +func NewOptNilIPv6(v netip.Addr) OptNilIPv6 { + return OptNilIPv6{ + Value: v, + Set: true, + } +} + +// OptNilIPv6 is optional nullable netip.Addr. +type OptNilIPv6 struct { + Value netip.Addr + Set bool + Null bool +} + +// IsSet returns true if OptNilIPv6 was set. +func (o OptNilIPv6) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilIPv6) Reset() { + var v netip.Addr + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilIPv6) SetTo(v netip.Addr) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilIPv6) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilIPv6) SetToNull() { + o.Set = true + o.Null = true + var v netip.Addr o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptFloat32) Get() (v float32, ok bool) { +func (o OptNilIPv6) Get() (v netip.Addr, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -1745,45 +3239,62 @@ func (o OptFloat32) Get() (v float32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptFloat32) Or(d float32) float32 { +func (o OptNilIPv6) Or(d netip.Addr) netip.Addr { if v, ok := o.Get(); ok { return v } return d } -// NewOptFloat64 returns new OptFloat64 with value set to v. -func NewOptFloat64(v float64) OptFloat64 { - return OptFloat64{ +// NewOptNilInt returns new OptNilInt with value set to v. +func NewOptNilInt(v int) OptNilInt { + return OptNilInt{ Value: v, Set: true, } } -// OptFloat64 is optional float64. -type OptFloat64 struct { - Value float64 +// OptNilInt is optional nullable int. +type OptNilInt struct { + Value int Set bool + Null bool } -// IsSet returns true if OptFloat64 was set. -func (o OptFloat64) IsSet() bool { return o.Set } +// IsSet returns true if OptNilInt was set. +func (o OptNilInt) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptFloat64) Reset() { - var v float64 +func (o *OptNilInt) Reset() { + var v int o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptFloat64) SetTo(v float64) { +func (o *OptNilInt) SetTo(v int) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilInt) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilInt) SetToNull() { o.Set = true + o.Null = true + var v int o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptFloat64) Get() (v float64, ok bool) { +func (o OptNilInt) Get() (v int, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -1791,45 +3302,62 @@ func (o OptFloat64) Get() (v float64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptFloat64) Or(d float64) float64 { +func (o OptNilInt) Or(d int) int { if v, ok := o.Get(); ok { return v } return d } -// NewOptIP returns new OptIP with value set to v. -func NewOptIP(v netip.Addr) OptIP { - return OptIP{ +// NewOptNilInt16 returns new OptNilInt16 with value set to v. +func NewOptNilInt16(v int16) OptNilInt16 { + return OptNilInt16{ Value: v, Set: true, } } -// OptIP is optional netip.Addr. -type OptIP struct { - Value netip.Addr +// OptNilInt16 is optional nullable int16. +type OptNilInt16 struct { + Value int16 Set bool + Null bool } -// IsSet returns true if OptIP was set. -func (o OptIP) IsSet() bool { return o.Set } +// IsSet returns true if OptNilInt16 was set. +func (o OptNilInt16) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptIP) Reset() { - var v netip.Addr +func (o *OptNilInt16) Reset() { + var v int16 o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptIP) SetTo(v netip.Addr) { +func (o *OptNilInt16) SetTo(v int16) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilInt16) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilInt16) SetToNull() { o.Set = true + o.Null = true + var v int16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptIP) Get() (v netip.Addr, ok bool) { +func (o OptNilInt16) Get() (v int16, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -1837,45 +3365,62 @@ func (o OptIP) Get() (v netip.Addr, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptIP) Or(d netip.Addr) netip.Addr { +func (o OptNilInt16) Or(d int16) int16 { if v, ok := o.Get(); ok { return v } return d } -// NewOptIPv4 returns new OptIPv4 with value set to v. -func NewOptIPv4(v netip.Addr) OptIPv4 { - return OptIPv4{ +// NewOptNilInt32 returns new OptNilInt32 with value set to v. +func NewOptNilInt32(v int32) OptNilInt32 { + return OptNilInt32{ Value: v, Set: true, } } -// OptIPv4 is optional netip.Addr. -type OptIPv4 struct { - Value netip.Addr +// OptNilInt32 is optional nullable int32. +type OptNilInt32 struct { + Value int32 Set bool + Null bool } -// IsSet returns true if OptIPv4 was set. -func (o OptIPv4) IsSet() bool { return o.Set } +// IsSet returns true if OptNilInt32 was set. +func (o OptNilInt32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptIPv4) Reset() { - var v netip.Addr +func (o *OptNilInt32) Reset() { + var v int32 o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptIPv4) SetTo(v netip.Addr) { +func (o *OptNilInt32) SetTo(v int32) { o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilInt32) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilInt32) SetToNull() { + o.Set = true + o.Null = true + var v int32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptIPv4) Get() (v netip.Addr, ok bool) { +func (o OptNilInt32) Get() (v int32, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -1883,45 +3428,125 @@ func (o OptIPv4) Get() (v netip.Addr, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptIPv4) Or(d netip.Addr) netip.Addr { +func (o OptNilInt32) Or(d int32) int32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptIPv6 returns new OptIPv6 with value set to v. -func NewOptIPv6(v netip.Addr) OptIPv6 { - return OptIPv6{ +// NewOptNilInt64 returns new OptNilInt64 with value set to v. +func NewOptNilInt64(v int64) OptNilInt64 { + return OptNilInt64{ Value: v, Set: true, } } -// OptIPv6 is optional netip.Addr. -type OptIPv6 struct { - Value netip.Addr +// OptNilInt64 is optional nullable int64. +type OptNilInt64 struct { + Value int64 Set bool + Null bool } -// IsSet returns true if OptIPv6 was set. -func (o OptIPv6) IsSet() bool { return o.Set } +// IsSet returns true if OptNilInt64 was set. +func (o OptNilInt64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptIPv6) Reset() { - var v netip.Addr +func (o *OptNilInt64) Reset() { + var v int64 + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilInt64) SetTo(v int64) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilInt64) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilInt64) SetToNull() { + o.Set = true + o.Null = true + var v int64 + o.Value = v +} + +// Get returns value and boolean that denotes whether value was set. +func (o OptNilInt64) Get() (v int64, ok bool) { + if o.Null { + return v, false + } + if !o.Set { + return v, false + } + return o.Value, true +} + +// Or returns value if set, or given parameter if does not. +func (o OptNilInt64) Or(d int64) int64 { + if v, ok := o.Get(); ok { + return v + } + return d +} + +// NewOptNilInt8 returns new OptNilInt8 with value set to v. +func NewOptNilInt8(v int8) OptNilInt8 { + return OptNilInt8{ + Value: v, + Set: true, + } +} + +// OptNilInt8 is optional nullable int8. +type OptNilInt8 struct { + Value int8 + Set bool + Null bool +} + +// IsSet returns true if OptNilInt8 was set. +func (o OptNilInt8) IsSet() bool { return o.Set } + +// Reset unsets value. +func (o *OptNilInt8) Reset() { + var v int8 + o.Value = v + o.Set = false + o.Null = false +} + +// SetTo sets value to v. +func (o *OptNilInt8) SetTo(v int8) { + o.Set = true + o.Null = false o.Value = v - o.Set = false } -// SetTo sets value to v. -func (o *OptIPv6) SetTo(v netip.Addr) { +// IsSet returns true if value is Null. +func (o OptNilInt8) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilInt8) SetToNull() { o.Set = true + o.Null = true + var v int8 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptIPv6) Get() (v netip.Addr, ok bool) { +func (o OptNilInt8) Get() (v int8, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -1929,45 +3554,62 @@ func (o OptIPv6) Get() (v netip.Addr, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptIPv6) Or(d netip.Addr) netip.Addr { +func (o OptNilInt8) Or(d int8) int8 { if v, ok := o.Get(); ok { return v } return d } -// NewOptInt returns new OptInt with value set to v. -func NewOptInt(v int) OptInt { - return OptInt{ +// NewOptNilString returns new OptNilString with value set to v. +func NewOptNilString(v string) OptNilString { + return OptNilString{ Value: v, Set: true, } } -// OptInt is optional int. -type OptInt struct { - Value int +// OptNilString is optional nullable string. +type OptNilString struct { + Value string Set bool + Null bool } -// IsSet returns true if OptInt was set. -func (o OptInt) IsSet() bool { return o.Set } +// IsSet returns true if OptNilString was set. +func (o OptNilString) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptInt) Reset() { - var v int +func (o *OptNilString) Reset() { + var v string o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptInt) SetTo(v int) { +func (o *OptNilString) SetTo(v string) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilString) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilString) SetToNull() { o.Set = true + o.Null = true + var v string o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptInt) Get() (v int, ok bool) { +func (o OptNilString) Get() (v string, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -1975,45 +3617,62 @@ func (o OptInt) Get() (v int, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptInt) Or(d int) int { +func (o OptNilString) Or(d string) string { if v, ok := o.Get(); ok { return v } return d } -// NewOptInt16 returns new OptInt16 with value set to v. -func NewOptInt16(v int16) OptInt16 { - return OptInt16{ +// NewOptNilStringFloat32 returns new OptNilStringFloat32 with value set to v. +func NewOptNilStringFloat32(v float32) OptNilStringFloat32 { + return OptNilStringFloat32{ Value: v, Set: true, } } -// OptInt16 is optional int16. -type OptInt16 struct { - Value int16 +// OptNilStringFloat32 is optional nullable float32. +type OptNilStringFloat32 struct { + Value float32 Set bool + Null bool } -// IsSet returns true if OptInt16 was set. -func (o OptInt16) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringFloat32 was set. +func (o OptNilStringFloat32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptInt16) Reset() { - var v int16 +func (o *OptNilStringFloat32) Reset() { + var v float32 o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptInt16) SetTo(v int16) { +func (o *OptNilStringFloat32) SetTo(v float32) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilStringFloat32) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilStringFloat32) SetToNull() { o.Set = true + o.Null = true + var v float32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptInt16) Get() (v int16, ok bool) { +func (o OptNilStringFloat32) Get() (v float32, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -2021,45 +3680,62 @@ func (o OptInt16) Get() (v int16, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptInt16) Or(d int16) int16 { +func (o OptNilStringFloat32) Or(d float32) float32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptInt32 returns new OptInt32 with value set to v. -func NewOptInt32(v int32) OptInt32 { - return OptInt32{ +// NewOptNilStringFloat64 returns new OptNilStringFloat64 with value set to v. +func NewOptNilStringFloat64(v float64) OptNilStringFloat64 { + return OptNilStringFloat64{ Value: v, Set: true, } } -// OptInt32 is optional int32. -type OptInt32 struct { - Value int32 +// OptNilStringFloat64 is optional nullable float64. +type OptNilStringFloat64 struct { + Value float64 Set bool + Null bool } -// IsSet returns true if OptInt32 was set. -func (o OptInt32) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringFloat64 was set. +func (o OptNilStringFloat64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptInt32) Reset() { - var v int32 +func (o *OptNilStringFloat64) Reset() { + var v float64 o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptInt32) SetTo(v int32) { +func (o *OptNilStringFloat64) SetTo(v float64) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilStringFloat64) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilStringFloat64) SetToNull() { o.Set = true + o.Null = true + var v float64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptInt32) Get() (v int32, ok bool) { +func (o OptNilStringFloat64) Get() (v float64, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -2067,45 +3743,62 @@ func (o OptInt32) Get() (v int32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptInt32) Or(d int32) int32 { +func (o OptNilStringFloat64) Or(d float64) float64 { if v, ok := o.Get(); ok { return v } return d } -// NewOptInt64 returns new OptInt64 with value set to v. -func NewOptInt64(v int64) OptInt64 { - return OptInt64{ +// NewOptNilStringInt returns new OptNilStringInt with value set to v. +func NewOptNilStringInt(v int) OptNilStringInt { + return OptNilStringInt{ Value: v, Set: true, } } -// OptInt64 is optional int64. -type OptInt64 struct { - Value int64 +// OptNilStringInt is optional nullable int. +type OptNilStringInt struct { + Value int Set bool + Null bool } -// IsSet returns true if OptInt64 was set. -func (o OptInt64) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringInt was set. +func (o OptNilStringInt) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptInt64) Reset() { - var v int64 +func (o *OptNilStringInt) Reset() { + var v int o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptInt64) SetTo(v int64) { +func (o *OptNilStringInt) SetTo(v int) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilStringInt) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilStringInt) SetToNull() { o.Set = true + o.Null = true + var v int o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptInt64) Get() (v int64, ok bool) { +func (o OptNilStringInt) Get() (v int, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -2113,45 +3806,62 @@ func (o OptInt64) Get() (v int64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptInt64) Or(d int64) int64 { +func (o OptNilStringInt) Or(d int) int { if v, ok := o.Get(); ok { return v } return d } -// NewOptInt8 returns new OptInt8 with value set to v. -func NewOptInt8(v int8) OptInt8 { - return OptInt8{ +// NewOptNilStringInt16 returns new OptNilStringInt16 with value set to v. +func NewOptNilStringInt16(v int16) OptNilStringInt16 { + return OptNilStringInt16{ Value: v, Set: true, } } -// OptInt8 is optional int8. -type OptInt8 struct { - Value int8 +// OptNilStringInt16 is optional nullable int16. +type OptNilStringInt16 struct { + Value int16 Set bool + Null bool } -// IsSet returns true if OptInt8 was set. -func (o OptInt8) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringInt16 was set. +func (o OptNilStringInt16) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptInt8) Reset() { - var v int8 +func (o *OptNilStringInt16) Reset() { + var v int16 o.Value = v o.Set = false + o.Null = false } // SetTo sets value to v. -func (o *OptInt8) SetTo(v int8) { +func (o *OptNilStringInt16) SetTo(v int16) { + o.Set = true + o.Null = false + o.Value = v +} + +// IsSet returns true if value is Null. +func (o OptNilStringInt16) IsNull() bool { return o.Null } + +// SetNull sets value to null. +func (o *OptNilStringInt16) SetToNull() { o.Set = true + o.Null = true + var v int16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptInt8) Get() (v int8, ok bool) { +func (o OptNilStringInt16) Get() (v int16, ok bool) { + if o.Null { + return v, false + } if !o.Set { return v, false } @@ -2159,59 +3869,59 @@ func (o OptInt8) Get() (v int8, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptInt8) Or(d int8) int8 { +func (o OptNilStringInt16) Or(d int16) int16 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilBool returns new OptNilBool with value set to v. -func NewOptNilBool(v bool) OptNilBool { - return OptNilBool{ +// NewOptNilStringInt32 returns new OptNilStringInt32 with value set to v. +func NewOptNilStringInt32(v int32) OptNilStringInt32 { + return OptNilStringInt32{ Value: v, Set: true, } } -// OptNilBool is optional nullable bool. -type OptNilBool struct { - Value bool +// OptNilStringInt32 is optional nullable int32. +type OptNilStringInt32 struct { + Value int32 Set bool Null bool } -// IsSet returns true if OptNilBool was set. -func (o OptNilBool) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringInt32 was set. +func (o OptNilStringInt32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilBool) Reset() { - var v bool +func (o *OptNilStringInt32) Reset() { + var v int32 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilBool) SetTo(v bool) { +func (o *OptNilStringInt32) SetTo(v int32) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilBool) IsNull() bool { return o.Null } +func (o OptNilStringInt32) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilBool) SetToNull() { +func (o *OptNilStringInt32) SetToNull() { o.Set = true o.Null = true - var v bool + var v int32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilBool) Get() (v bool, ok bool) { +func (o OptNilStringInt32) Get() (v int32, ok bool) { if o.Null { return v, false } @@ -2222,59 +3932,59 @@ func (o OptNilBool) Get() (v bool, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilBool) Or(d bool) bool { +func (o OptNilStringInt32) Or(d int32) int32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilByte returns new OptNilByte with value set to v. -func NewOptNilByte(v []byte) OptNilByte { - return OptNilByte{ +// NewOptNilStringInt64 returns new OptNilStringInt64 with value set to v. +func NewOptNilStringInt64(v int64) OptNilStringInt64 { + return OptNilStringInt64{ Value: v, Set: true, } } -// OptNilByte is optional nullable []byte. -type OptNilByte struct { - Value []byte +// OptNilStringInt64 is optional nullable int64. +type OptNilStringInt64 struct { + Value int64 Set bool Null bool } -// IsSet returns true if OptNilByte was set. -func (o OptNilByte) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringInt64 was set. +func (o OptNilStringInt64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilByte) Reset() { - var v []byte +func (o *OptNilStringInt64) Reset() { + var v int64 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilByte) SetTo(v []byte) { +func (o *OptNilStringInt64) SetTo(v int64) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilByte) IsNull() bool { return o.Null } +func (o OptNilStringInt64) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilByte) SetToNull() { +func (o *OptNilStringInt64) SetToNull() { o.Set = true o.Null = true - var v []byte + var v int64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilByte) Get() (v []byte, ok bool) { +func (o OptNilStringInt64) Get() (v int64, ok bool) { if o.Null { return v, false } @@ -2285,59 +3995,59 @@ func (o OptNilByte) Get() (v []byte, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilByte) Or(d []byte) []byte { +func (o OptNilStringInt64) Or(d int64) int64 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilDate returns new OptNilDate with value set to v. -func NewOptNilDate(v time.Time) OptNilDate { - return OptNilDate{ +// NewOptNilStringInt8 returns new OptNilStringInt8 with value set to v. +func NewOptNilStringInt8(v int8) OptNilStringInt8 { + return OptNilStringInt8{ Value: v, Set: true, } } -// OptNilDate is optional nullable time.Time. -type OptNilDate struct { - Value time.Time +// OptNilStringInt8 is optional nullable int8. +type OptNilStringInt8 struct { + Value int8 Set bool Null bool } -// IsSet returns true if OptNilDate was set. -func (o OptNilDate) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringInt8 was set. +func (o OptNilStringInt8) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilDate) Reset() { - var v time.Time +func (o *OptNilStringInt8) Reset() { + var v int8 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilDate) SetTo(v time.Time) { +func (o *OptNilStringInt8) SetTo(v int8) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilDate) IsNull() bool { return o.Null } +func (o OptNilStringInt8) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilDate) SetToNull() { +func (o *OptNilStringInt8) SetToNull() { o.Set = true o.Null = true - var v time.Time + var v int8 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilDate) Get() (v time.Time, ok bool) { +func (o OptNilStringInt8) Get() (v int8, ok bool) { if o.Null { return v, false } @@ -2348,59 +4058,59 @@ func (o OptNilDate) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilDate) Or(d time.Time) time.Time { +func (o OptNilStringInt8) Or(d int8) int8 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilDateTime returns new OptNilDateTime with value set to v. -func NewOptNilDateTime(v time.Time) OptNilDateTime { - return OptNilDateTime{ +// NewOptNilStringUint returns new OptNilStringUint with value set to v. +func NewOptNilStringUint(v uint) OptNilStringUint { + return OptNilStringUint{ Value: v, Set: true, } } -// OptNilDateTime is optional nullable time.Time. -type OptNilDateTime struct { - Value time.Time +// OptNilStringUint is optional nullable uint. +type OptNilStringUint struct { + Value uint Set bool Null bool } -// IsSet returns true if OptNilDateTime was set. -func (o OptNilDateTime) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUint was set. +func (o OptNilStringUint) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilDateTime) Reset() { - var v time.Time +func (o *OptNilStringUint) Reset() { + var v uint o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilDateTime) SetTo(v time.Time) { +func (o *OptNilStringUint) SetTo(v uint) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilDateTime) IsNull() bool { return o.Null } +func (o OptNilStringUint) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilDateTime) SetToNull() { +func (o *OptNilStringUint) SetToNull() { o.Set = true o.Null = true - var v time.Time + var v uint o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilDateTime) Get() (v time.Time, ok bool) { +func (o OptNilStringUint) Get() (v uint, ok bool) { if o.Null { return v, false } @@ -2411,59 +4121,59 @@ func (o OptNilDateTime) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilDateTime) Or(d time.Time) time.Time { +func (o OptNilStringUint) Or(d uint) uint { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilDuration returns new OptNilDuration with value set to v. -func NewOptNilDuration(v time.Duration) OptNilDuration { - return OptNilDuration{ +// NewOptNilStringUint16 returns new OptNilStringUint16 with value set to v. +func NewOptNilStringUint16(v uint16) OptNilStringUint16 { + return OptNilStringUint16{ Value: v, Set: true, } } -// OptNilDuration is optional nullable time.Duration. -type OptNilDuration struct { - Value time.Duration +// OptNilStringUint16 is optional nullable uint16. +type OptNilStringUint16 struct { + Value uint16 Set bool Null bool } -// IsSet returns true if OptNilDuration was set. -func (o OptNilDuration) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUint16 was set. +func (o OptNilStringUint16) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilDuration) Reset() { - var v time.Duration +func (o *OptNilStringUint16) Reset() { + var v uint16 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilDuration) SetTo(v time.Duration) { +func (o *OptNilStringUint16) SetTo(v uint16) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilDuration) IsNull() bool { return o.Null } +func (o OptNilStringUint16) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilDuration) SetToNull() { +func (o *OptNilStringUint16) SetToNull() { o.Set = true o.Null = true - var v time.Duration + var v uint16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilDuration) Get() (v time.Duration, ok bool) { +func (o OptNilStringUint16) Get() (v uint16, ok bool) { if o.Null { return v, false } @@ -2474,59 +4184,59 @@ func (o OptNilDuration) Get() (v time.Duration, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilDuration) Or(d time.Duration) time.Duration { +func (o OptNilStringUint16) Or(d uint16) uint16 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilFloat32 returns new OptNilFloat32 with value set to v. -func NewOptNilFloat32(v float32) OptNilFloat32 { - return OptNilFloat32{ +// NewOptNilStringUint32 returns new OptNilStringUint32 with value set to v. +func NewOptNilStringUint32(v uint32) OptNilStringUint32 { + return OptNilStringUint32{ Value: v, Set: true, } } -// OptNilFloat32 is optional nullable float32. -type OptNilFloat32 struct { - Value float32 +// OptNilStringUint32 is optional nullable uint32. +type OptNilStringUint32 struct { + Value uint32 Set bool Null bool } -// IsSet returns true if OptNilFloat32 was set. -func (o OptNilFloat32) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUint32 was set. +func (o OptNilStringUint32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilFloat32) Reset() { - var v float32 +func (o *OptNilStringUint32) Reset() { + var v uint32 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilFloat32) SetTo(v float32) { +func (o *OptNilStringUint32) SetTo(v uint32) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilFloat32) IsNull() bool { return o.Null } +func (o OptNilStringUint32) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilFloat32) SetToNull() { +func (o *OptNilStringUint32) SetToNull() { o.Set = true o.Null = true - var v float32 + var v uint32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilFloat32) Get() (v float32, ok bool) { +func (o OptNilStringUint32) Get() (v uint32, ok bool) { if o.Null { return v, false } @@ -2537,59 +4247,59 @@ func (o OptNilFloat32) Get() (v float32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilFloat32) Or(d float32) float32 { +func (o OptNilStringUint32) Or(d uint32) uint32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilFloat64 returns new OptNilFloat64 with value set to v. -func NewOptNilFloat64(v float64) OptNilFloat64 { - return OptNilFloat64{ +// NewOptNilStringUint64 returns new OptNilStringUint64 with value set to v. +func NewOptNilStringUint64(v uint64) OptNilStringUint64 { + return OptNilStringUint64{ Value: v, Set: true, } } -// OptNilFloat64 is optional nullable float64. -type OptNilFloat64 struct { - Value float64 +// OptNilStringUint64 is optional nullable uint64. +type OptNilStringUint64 struct { + Value uint64 Set bool Null bool } -// IsSet returns true if OptNilFloat64 was set. -func (o OptNilFloat64) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUint64 was set. +func (o OptNilStringUint64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilFloat64) Reset() { - var v float64 +func (o *OptNilStringUint64) Reset() { + var v uint64 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilFloat64) SetTo(v float64) { +func (o *OptNilStringUint64) SetTo(v uint64) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilFloat64) IsNull() bool { return o.Null } +func (o OptNilStringUint64) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilFloat64) SetToNull() { +func (o *OptNilStringUint64) SetToNull() { o.Set = true o.Null = true - var v float64 + var v uint64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilFloat64) Get() (v float64, ok bool) { +func (o OptNilStringUint64) Get() (v uint64, ok bool) { if o.Null { return v, false } @@ -2600,59 +4310,59 @@ func (o OptNilFloat64) Get() (v float64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilFloat64) Or(d float64) float64 { +func (o OptNilStringUint64) Or(d uint64) uint64 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilIP returns new OptNilIP with value set to v. -func NewOptNilIP(v netip.Addr) OptNilIP { - return OptNilIP{ +// NewOptNilStringUint8 returns new OptNilStringUint8 with value set to v. +func NewOptNilStringUint8(v uint8) OptNilStringUint8 { + return OptNilStringUint8{ Value: v, Set: true, } } -// OptNilIP is optional nullable netip.Addr. -type OptNilIP struct { - Value netip.Addr +// OptNilStringUint8 is optional nullable uint8. +type OptNilStringUint8 struct { + Value uint8 Set bool Null bool } -// IsSet returns true if OptNilIP was set. -func (o OptNilIP) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUint8 was set. +func (o OptNilStringUint8) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilIP) Reset() { - var v netip.Addr +func (o *OptNilStringUint8) Reset() { + var v uint8 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilIP) SetTo(v netip.Addr) { +func (o *OptNilStringUint8) SetTo(v uint8) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilIP) IsNull() bool { return o.Null } +func (o OptNilStringUint8) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilIP) SetToNull() { +func (o *OptNilStringUint8) SetToNull() { o.Set = true o.Null = true - var v netip.Addr + var v uint8 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilIP) Get() (v netip.Addr, ok bool) { +func (o OptNilStringUint8) Get() (v uint8, ok bool) { if o.Null { return v, false } @@ -2663,59 +4373,59 @@ func (o OptNilIP) Get() (v netip.Addr, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilIP) Or(d netip.Addr) netip.Addr { +func (o OptNilStringUint8) Or(d uint8) uint8 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilIPv4 returns new OptNilIPv4 with value set to v. -func NewOptNilIPv4(v netip.Addr) OptNilIPv4 { - return OptNilIPv4{ +// NewOptNilStringUnixMicro returns new OptNilStringUnixMicro with value set to v. +func NewOptNilStringUnixMicro(v time.Time) OptNilStringUnixMicro { + return OptNilStringUnixMicro{ Value: v, Set: true, } } -// OptNilIPv4 is optional nullable netip.Addr. -type OptNilIPv4 struct { - Value netip.Addr +// OptNilStringUnixMicro is optional nullable time.Time. +type OptNilStringUnixMicro struct { + Value time.Time Set bool Null bool } -// IsSet returns true if OptNilIPv4 was set. -func (o OptNilIPv4) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUnixMicro was set. +func (o OptNilStringUnixMicro) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilIPv4) Reset() { - var v netip.Addr +func (o *OptNilStringUnixMicro) Reset() { + var v time.Time o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilIPv4) SetTo(v netip.Addr) { +func (o *OptNilStringUnixMicro) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilIPv4) IsNull() bool { return o.Null } +func (o OptNilStringUnixMicro) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilIPv4) SetToNull() { +func (o *OptNilStringUnixMicro) SetToNull() { o.Set = true o.Null = true - var v netip.Addr + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilIPv4) Get() (v netip.Addr, ok bool) { +func (o OptNilStringUnixMicro) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -2726,59 +4436,59 @@ func (o OptNilIPv4) Get() (v netip.Addr, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilIPv4) Or(d netip.Addr) netip.Addr { +func (o OptNilStringUnixMicro) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilIPv6 returns new OptNilIPv6 with value set to v. -func NewOptNilIPv6(v netip.Addr) OptNilIPv6 { - return OptNilIPv6{ +// NewOptNilStringUnixMilli returns new OptNilStringUnixMilli with value set to v. +func NewOptNilStringUnixMilli(v time.Time) OptNilStringUnixMilli { + return OptNilStringUnixMilli{ Value: v, Set: true, } } -// OptNilIPv6 is optional nullable netip.Addr. -type OptNilIPv6 struct { - Value netip.Addr +// OptNilStringUnixMilli is optional nullable time.Time. +type OptNilStringUnixMilli struct { + Value time.Time Set bool Null bool } -// IsSet returns true if OptNilIPv6 was set. -func (o OptNilIPv6) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUnixMilli was set. +func (o OptNilStringUnixMilli) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilIPv6) Reset() { - var v netip.Addr +func (o *OptNilStringUnixMilli) Reset() { + var v time.Time o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilIPv6) SetTo(v netip.Addr) { +func (o *OptNilStringUnixMilli) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilIPv6) IsNull() bool { return o.Null } +func (o OptNilStringUnixMilli) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilIPv6) SetToNull() { +func (o *OptNilStringUnixMilli) SetToNull() { o.Set = true o.Null = true - var v netip.Addr + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilIPv6) Get() (v netip.Addr, ok bool) { +func (o OptNilStringUnixMilli) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -2789,59 +4499,59 @@ func (o OptNilIPv6) Get() (v netip.Addr, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilIPv6) Or(d netip.Addr) netip.Addr { +func (o OptNilStringUnixMilli) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilInt returns new OptNilInt with value set to v. -func NewOptNilInt(v int) OptNilInt { - return OptNilInt{ +// NewOptNilStringUnixNano returns new OptNilStringUnixNano with value set to v. +func NewOptNilStringUnixNano(v time.Time) OptNilStringUnixNano { + return OptNilStringUnixNano{ Value: v, Set: true, } } -// OptNilInt is optional nullable int. -type OptNilInt struct { - Value int +// OptNilStringUnixNano is optional nullable time.Time. +type OptNilStringUnixNano struct { + Value time.Time Set bool Null bool } -// IsSet returns true if OptNilInt was set. -func (o OptNilInt) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUnixNano was set. +func (o OptNilStringUnixNano) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilInt) Reset() { - var v int +func (o *OptNilStringUnixNano) Reset() { + var v time.Time o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilInt) SetTo(v int) { +func (o *OptNilStringUnixNano) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilInt) IsNull() bool { return o.Null } +func (o OptNilStringUnixNano) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilInt) SetToNull() { +func (o *OptNilStringUnixNano) SetToNull() { o.Set = true o.Null = true - var v int + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilInt) Get() (v int, ok bool) { +func (o OptNilStringUnixNano) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -2852,59 +4562,59 @@ func (o OptNilInt) Get() (v int, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilInt) Or(d int) int { +func (o OptNilStringUnixNano) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilInt16 returns new OptNilInt16 with value set to v. -func NewOptNilInt16(v int16) OptNilInt16 { - return OptNilInt16{ +// NewOptNilStringUnixSeconds returns new OptNilStringUnixSeconds with value set to v. +func NewOptNilStringUnixSeconds(v time.Time) OptNilStringUnixSeconds { + return OptNilStringUnixSeconds{ Value: v, Set: true, } } -// OptNilInt16 is optional nullable int16. -type OptNilInt16 struct { - Value int16 +// OptNilStringUnixSeconds is optional nullable time.Time. +type OptNilStringUnixSeconds struct { + Value time.Time Set bool Null bool } -// IsSet returns true if OptNilInt16 was set. -func (o OptNilInt16) IsSet() bool { return o.Set } +// IsSet returns true if OptNilStringUnixSeconds was set. +func (o OptNilStringUnixSeconds) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilInt16) Reset() { - var v int16 +func (o *OptNilStringUnixSeconds) Reset() { + var v time.Time o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilInt16) SetTo(v int16) { +func (o *OptNilStringUnixSeconds) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilInt16) IsNull() bool { return o.Null } +func (o OptNilStringUnixSeconds) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilInt16) SetToNull() { +func (o *OptNilStringUnixSeconds) SetToNull() { o.Set = true o.Null = true - var v int16 + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilInt16) Get() (v int16, ok bool) { +func (o OptNilStringUnixSeconds) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -2915,59 +4625,59 @@ func (o OptNilInt16) Get() (v int16, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilInt16) Or(d int16) int16 { +func (o OptNilStringUnixSeconds) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilInt32 returns new OptNilInt32 with value set to v. -func NewOptNilInt32(v int32) OptNilInt32 { - return OptNilInt32{ +// NewOptNilTime returns new OptNilTime with value set to v. +func NewOptNilTime(v time.Time) OptNilTime { + return OptNilTime{ Value: v, Set: true, } } -// OptNilInt32 is optional nullable int32. -type OptNilInt32 struct { - Value int32 +// OptNilTime is optional nullable time.Time. +type OptNilTime struct { + Value time.Time Set bool Null bool } -// IsSet returns true if OptNilInt32 was set. -func (o OptNilInt32) IsSet() bool { return o.Set } +// IsSet returns true if OptNilTime was set. +func (o OptNilTime) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilInt32) Reset() { - var v int32 +func (o *OptNilTime) Reset() { + var v time.Time o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilInt32) SetTo(v int32) { +func (o *OptNilTime) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilInt32) IsNull() bool { return o.Null } +func (o OptNilTime) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilInt32) SetToNull() { +func (o *OptNilTime) SetToNull() { o.Set = true o.Null = true - var v int32 + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilInt32) Get() (v int32, ok bool) { +func (o OptNilTime) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -2978,59 +4688,59 @@ func (o OptNilInt32) Get() (v int32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilInt32) Or(d int32) int32 { +func (o OptNilTime) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilInt64 returns new OptNilInt64 with value set to v. -func NewOptNilInt64(v int64) OptNilInt64 { - return OptNilInt64{ +// NewOptNilURI returns new OptNilURI with value set to v. +func NewOptNilURI(v url.URL) OptNilURI { + return OptNilURI{ Value: v, Set: true, } } -// OptNilInt64 is optional nullable int64. -type OptNilInt64 struct { - Value int64 +// OptNilURI is optional nullable url.URL. +type OptNilURI struct { + Value url.URL Set bool Null bool } -// IsSet returns true if OptNilInt64 was set. -func (o OptNilInt64) IsSet() bool { return o.Set } +// IsSet returns true if OptNilURI was set. +func (o OptNilURI) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilInt64) Reset() { - var v int64 +func (o *OptNilURI) Reset() { + var v url.URL o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilInt64) SetTo(v int64) { +func (o *OptNilURI) SetTo(v url.URL) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilInt64) IsNull() bool { return o.Null } +func (o OptNilURI) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilInt64) SetToNull() { +func (o *OptNilURI) SetToNull() { o.Set = true o.Null = true - var v int64 + var v url.URL o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilInt64) Get() (v int64, ok bool) { +func (o OptNilURI) Get() (v url.URL, ok bool) { if o.Null { return v, false } @@ -3041,59 +4751,59 @@ func (o OptNilInt64) Get() (v int64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilInt64) Or(d int64) int64 { +func (o OptNilURI) Or(d url.URL) url.URL { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilInt8 returns new OptNilInt8 with value set to v. -func NewOptNilInt8(v int8) OptNilInt8 { - return OptNilInt8{ +// NewOptNilUUID returns new OptNilUUID with value set to v. +func NewOptNilUUID(v uuid.UUID) OptNilUUID { + return OptNilUUID{ Value: v, Set: true, } } -// OptNilInt8 is optional nullable int8. -type OptNilInt8 struct { - Value int8 +// OptNilUUID is optional nullable uuid.UUID. +type OptNilUUID struct { + Value uuid.UUID Set bool Null bool } -// IsSet returns true if OptNilInt8 was set. -func (o OptNilInt8) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUUID was set. +func (o OptNilUUID) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilInt8) Reset() { - var v int8 +func (o *OptNilUUID) Reset() { + var v uuid.UUID o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilInt8) SetTo(v int8) { +func (o *OptNilUUID) SetTo(v uuid.UUID) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilInt8) IsNull() bool { return o.Null } +func (o OptNilUUID) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilInt8) SetToNull() { +func (o *OptNilUUID) SetToNull() { o.Set = true o.Null = true - var v int8 + var v uuid.UUID o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilInt8) Get() (v int8, ok bool) { +func (o OptNilUUID) Get() (v uuid.UUID, ok bool) { if o.Null { return v, false } @@ -3104,59 +4814,59 @@ func (o OptNilInt8) Get() (v int8, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilInt8) Or(d int8) int8 { +func (o OptNilUUID) Or(d uuid.UUID) uuid.UUID { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilString returns new OptNilString with value set to v. -func NewOptNilString(v string) OptNilString { - return OptNilString{ +// NewOptNilUint returns new OptNilUint with value set to v. +func NewOptNilUint(v uint) OptNilUint { + return OptNilUint{ Value: v, Set: true, } } -// OptNilString is optional nullable string. -type OptNilString struct { - Value string +// OptNilUint is optional nullable uint. +type OptNilUint struct { + Value uint Set bool Null bool } -// IsSet returns true if OptNilString was set. -func (o OptNilString) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUint was set. +func (o OptNilUint) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilString) Reset() { - var v string +func (o *OptNilUint) Reset() { + var v uint o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilString) SetTo(v string) { +func (o *OptNilUint) SetTo(v uint) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilString) IsNull() bool { return o.Null } +func (o OptNilUint) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilString) SetToNull() { +func (o *OptNilUint) SetToNull() { o.Set = true o.Null = true - var v string + var v uint o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilString) Get() (v string, ok bool) { +func (o OptNilUint) Get() (v uint, ok bool) { if o.Null { return v, false } @@ -3167,59 +4877,59 @@ func (o OptNilString) Get() (v string, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilString) Or(d string) string { +func (o OptNilUint) Or(d uint) uint { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilStringInt32 returns new OptNilStringInt32 with value set to v. -func NewOptNilStringInt32(v int32) OptNilStringInt32 { - return OptNilStringInt32{ +// NewOptNilUint16 returns new OptNilUint16 with value set to v. +func NewOptNilUint16(v uint16) OptNilUint16 { + return OptNilUint16{ Value: v, Set: true, } } -// OptNilStringInt32 is optional nullable int32. -type OptNilStringInt32 struct { - Value int32 +// OptNilUint16 is optional nullable uint16. +type OptNilUint16 struct { + Value uint16 Set bool Null bool } -// IsSet returns true if OptNilStringInt32 was set. -func (o OptNilStringInt32) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUint16 was set. +func (o OptNilUint16) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilStringInt32) Reset() { - var v int32 +func (o *OptNilUint16) Reset() { + var v uint16 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilStringInt32) SetTo(v int32) { +func (o *OptNilUint16) SetTo(v uint16) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilStringInt32) IsNull() bool { return o.Null } +func (o OptNilUint16) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilStringInt32) SetToNull() { +func (o *OptNilUint16) SetToNull() { o.Set = true o.Null = true - var v int32 + var v uint16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilStringInt32) Get() (v int32, ok bool) { +func (o OptNilUint16) Get() (v uint16, ok bool) { if o.Null { return v, false } @@ -3230,59 +4940,59 @@ func (o OptNilStringInt32) Get() (v int32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilStringInt32) Or(d int32) int32 { +func (o OptNilUint16) Or(d uint16) uint16 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilStringInt64 returns new OptNilStringInt64 with value set to v. -func NewOptNilStringInt64(v int64) OptNilStringInt64 { - return OptNilStringInt64{ +// NewOptNilUint32 returns new OptNilUint32 with value set to v. +func NewOptNilUint32(v uint32) OptNilUint32 { + return OptNilUint32{ Value: v, Set: true, } } -// OptNilStringInt64 is optional nullable int64. -type OptNilStringInt64 struct { - Value int64 +// OptNilUint32 is optional nullable uint32. +type OptNilUint32 struct { + Value uint32 Set bool Null bool } -// IsSet returns true if OptNilStringInt64 was set. -func (o OptNilStringInt64) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUint32 was set. +func (o OptNilUint32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilStringInt64) Reset() { - var v int64 +func (o *OptNilUint32) Reset() { + var v uint32 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilStringInt64) SetTo(v int64) { +func (o *OptNilUint32) SetTo(v uint32) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilStringInt64) IsNull() bool { return o.Null } +func (o OptNilUint32) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilStringInt64) SetToNull() { +func (o *OptNilUint32) SetToNull() { o.Set = true o.Null = true - var v int64 + var v uint32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilStringInt64) Get() (v int64, ok bool) { +func (o OptNilUint32) Get() (v uint32, ok bool) { if o.Null { return v, false } @@ -3293,59 +5003,59 @@ func (o OptNilStringInt64) Get() (v int64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilStringInt64) Or(d int64) int64 { +func (o OptNilUint32) Or(d uint32) uint32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilStringUnixMicro returns new OptNilStringUnixMicro with value set to v. -func NewOptNilStringUnixMicro(v time.Time) OptNilStringUnixMicro { - return OptNilStringUnixMicro{ +// NewOptNilUint64 returns new OptNilUint64 with value set to v. +func NewOptNilUint64(v uint64) OptNilUint64 { + return OptNilUint64{ Value: v, Set: true, } } -// OptNilStringUnixMicro is optional nullable time.Time. -type OptNilStringUnixMicro struct { - Value time.Time +// OptNilUint64 is optional nullable uint64. +type OptNilUint64 struct { + Value uint64 Set bool Null bool } -// IsSet returns true if OptNilStringUnixMicro was set. -func (o OptNilStringUnixMicro) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUint64 was set. +func (o OptNilUint64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilStringUnixMicro) Reset() { - var v time.Time +func (o *OptNilUint64) Reset() { + var v uint64 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilStringUnixMicro) SetTo(v time.Time) { +func (o *OptNilUint64) SetTo(v uint64) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilStringUnixMicro) IsNull() bool { return o.Null } +func (o OptNilUint64) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilStringUnixMicro) SetToNull() { +func (o *OptNilUint64) SetToNull() { o.Set = true o.Null = true - var v time.Time + var v uint64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilStringUnixMicro) Get() (v time.Time, ok bool) { +func (o OptNilUint64) Get() (v uint64, ok bool) { if o.Null { return v, false } @@ -3356,59 +5066,59 @@ func (o OptNilStringUnixMicro) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilStringUnixMicro) Or(d time.Time) time.Time { +func (o OptNilUint64) Or(d uint64) uint64 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilStringUnixMilli returns new OptNilStringUnixMilli with value set to v. -func NewOptNilStringUnixMilli(v time.Time) OptNilStringUnixMilli { - return OptNilStringUnixMilli{ +// NewOptNilUint8 returns new OptNilUint8 with value set to v. +func NewOptNilUint8(v uint8) OptNilUint8 { + return OptNilUint8{ Value: v, Set: true, } } -// OptNilStringUnixMilli is optional nullable time.Time. -type OptNilStringUnixMilli struct { - Value time.Time +// OptNilUint8 is optional nullable uint8. +type OptNilUint8 struct { + Value uint8 Set bool Null bool } -// IsSet returns true if OptNilStringUnixMilli was set. -func (o OptNilStringUnixMilli) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUint8 was set. +func (o OptNilUint8) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilStringUnixMilli) Reset() { - var v time.Time +func (o *OptNilUint8) Reset() { + var v uint8 o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilStringUnixMilli) SetTo(v time.Time) { +func (o *OptNilUint8) SetTo(v uint8) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilStringUnixMilli) IsNull() bool { return o.Null } +func (o OptNilUint8) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilStringUnixMilli) SetToNull() { +func (o *OptNilUint8) SetToNull() { o.Set = true o.Null = true - var v time.Time + var v uint8 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilStringUnixMilli) Get() (v time.Time, ok bool) { +func (o OptNilUint8) Get() (v uint8, ok bool) { if o.Null { return v, false } @@ -3419,33 +5129,33 @@ func (o OptNilStringUnixMilli) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilStringUnixMilli) Or(d time.Time) time.Time { +func (o OptNilUint8) Or(d uint8) uint8 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilStringUnixNano returns new OptNilStringUnixNano with value set to v. -func NewOptNilStringUnixNano(v time.Time) OptNilStringUnixNano { - return OptNilStringUnixNano{ +// NewOptNilUnixMicro returns new OptNilUnixMicro with value set to v. +func NewOptNilUnixMicro(v time.Time) OptNilUnixMicro { + return OptNilUnixMicro{ Value: v, Set: true, } } -// OptNilStringUnixNano is optional nullable time.Time. -type OptNilStringUnixNano struct { +// OptNilUnixMicro is optional nullable time.Time. +type OptNilUnixMicro struct { Value time.Time Set bool Null bool } -// IsSet returns true if OptNilStringUnixNano was set. -func (o OptNilStringUnixNano) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUnixMicro was set. +func (o OptNilUnixMicro) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilStringUnixNano) Reset() { +func (o *OptNilUnixMicro) Reset() { var v time.Time o.Value = v o.Set = false @@ -3453,17 +5163,17 @@ func (o *OptNilStringUnixNano) Reset() { } // SetTo sets value to v. -func (o *OptNilStringUnixNano) SetTo(v time.Time) { +func (o *OptNilUnixMicro) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilStringUnixNano) IsNull() bool { return o.Null } +func (o OptNilUnixMicro) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilStringUnixNano) SetToNull() { +func (o *OptNilUnixMicro) SetToNull() { o.Set = true o.Null = true var v time.Time @@ -3471,7 +5181,7 @@ func (o *OptNilStringUnixNano) SetToNull() { } // Get returns value and boolean that denotes whether value was set. -func (o OptNilStringUnixNano) Get() (v time.Time, ok bool) { +func (o OptNilUnixMicro) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -3482,33 +5192,33 @@ func (o OptNilStringUnixNano) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilStringUnixNano) Or(d time.Time) time.Time { +func (o OptNilUnixMicro) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilStringUnixSeconds returns new OptNilStringUnixSeconds with value set to v. -func NewOptNilStringUnixSeconds(v time.Time) OptNilStringUnixSeconds { - return OptNilStringUnixSeconds{ +// NewOptNilUnixMilli returns new OptNilUnixMilli with value set to v. +func NewOptNilUnixMilli(v time.Time) OptNilUnixMilli { + return OptNilUnixMilli{ Value: v, Set: true, } } -// OptNilStringUnixSeconds is optional nullable time.Time. -type OptNilStringUnixSeconds struct { +// OptNilUnixMilli is optional nullable time.Time. +type OptNilUnixMilli struct { Value time.Time Set bool Null bool } -// IsSet returns true if OptNilStringUnixSeconds was set. -func (o OptNilStringUnixSeconds) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUnixMilli was set. +func (o OptNilUnixMilli) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilStringUnixSeconds) Reset() { +func (o *OptNilUnixMilli) Reset() { var v time.Time o.Value = v o.Set = false @@ -3516,17 +5226,17 @@ func (o *OptNilStringUnixSeconds) Reset() { } // SetTo sets value to v. -func (o *OptNilStringUnixSeconds) SetTo(v time.Time) { +func (o *OptNilUnixMilli) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilStringUnixSeconds) IsNull() bool { return o.Null } +func (o OptNilUnixMilli) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilStringUnixSeconds) SetToNull() { +func (o *OptNilUnixMilli) SetToNull() { o.Set = true o.Null = true var v time.Time @@ -3534,7 +5244,7 @@ func (o *OptNilStringUnixSeconds) SetToNull() { } // Get returns value and boolean that denotes whether value was set. -func (o OptNilStringUnixSeconds) Get() (v time.Time, ok bool) { +func (o OptNilUnixMilli) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -3545,33 +5255,33 @@ func (o OptNilStringUnixSeconds) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilStringUnixSeconds) Or(d time.Time) time.Time { +func (o OptNilUnixMilli) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilTime returns new OptNilTime with value set to v. -func NewOptNilTime(v time.Time) OptNilTime { - return OptNilTime{ +// NewOptNilUnixNano returns new OptNilUnixNano with value set to v. +func NewOptNilUnixNano(v time.Time) OptNilUnixNano { + return OptNilUnixNano{ Value: v, Set: true, } } -// OptNilTime is optional nullable time.Time. -type OptNilTime struct { +// OptNilUnixNano is optional nullable time.Time. +type OptNilUnixNano struct { Value time.Time Set bool Null bool } -// IsSet returns true if OptNilTime was set. -func (o OptNilTime) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUnixNano was set. +func (o OptNilUnixNano) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilTime) Reset() { +func (o *OptNilUnixNano) Reset() { var v time.Time o.Value = v o.Set = false @@ -3579,17 +5289,17 @@ func (o *OptNilTime) Reset() { } // SetTo sets value to v. -func (o *OptNilTime) SetTo(v time.Time) { +func (o *OptNilUnixNano) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilTime) IsNull() bool { return o.Null } +func (o OptNilUnixNano) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilTime) SetToNull() { +func (o *OptNilUnixNano) SetToNull() { o.Set = true o.Null = true var v time.Time @@ -3597,7 +5307,7 @@ func (o *OptNilTime) SetToNull() { } // Get returns value and boolean that denotes whether value was set. -func (o OptNilTime) Get() (v time.Time, ok bool) { +func (o OptNilUnixNano) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -3608,59 +5318,59 @@ func (o OptNilTime) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilTime) Or(d time.Time) time.Time { +func (o OptNilUnixNano) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilURI returns new OptNilURI with value set to v. -func NewOptNilURI(v url.URL) OptNilURI { - return OptNilURI{ +// NewOptNilUnixSeconds returns new OptNilUnixSeconds with value set to v. +func NewOptNilUnixSeconds(v time.Time) OptNilUnixSeconds { + return OptNilUnixSeconds{ Value: v, Set: true, } } -// OptNilURI is optional nullable url.URL. -type OptNilURI struct { - Value url.URL +// OptNilUnixSeconds is optional nullable time.Time. +type OptNilUnixSeconds struct { + Value time.Time Set bool Null bool } -// IsSet returns true if OptNilURI was set. -func (o OptNilURI) IsSet() bool { return o.Set } +// IsSet returns true if OptNilUnixSeconds was set. +func (o OptNilUnixSeconds) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilURI) Reset() { - var v url.URL +func (o *OptNilUnixSeconds) Reset() { + var v time.Time o.Value = v o.Set = false o.Null = false } // SetTo sets value to v. -func (o *OptNilURI) SetTo(v url.URL) { +func (o *OptNilUnixSeconds) SetTo(v time.Time) { o.Set = true o.Null = false o.Value = v } // IsSet returns true if value is Null. -func (o OptNilURI) IsNull() bool { return o.Null } +func (o OptNilUnixSeconds) IsNull() bool { return o.Null } // SetNull sets value to null. -func (o *OptNilURI) SetToNull() { +func (o *OptNilUnixSeconds) SetToNull() { o.Set = true o.Null = true - var v url.URL + var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilURI) Get() (v url.URL, ok bool) { +func (o OptNilUnixSeconds) Get() (v time.Time, ok bool) { if o.Null { return v, false } @@ -3671,62 +5381,45 @@ func (o OptNilURI) Get() (v url.URL, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilURI) Or(d url.URL) url.URL { +func (o OptNilUnixSeconds) Or(d time.Time) time.Time { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUUID returns new OptNilUUID with value set to v. -func NewOptNilUUID(v uuid.UUID) OptNilUUID { - return OptNilUUID{ +// NewOptNull returns new OptNull with value set to v. +func NewOptNull(v struct{}) OptNull { + return OptNull{ Value: v, Set: true, } } -// OptNilUUID is optional nullable uuid.UUID. -type OptNilUUID struct { - Value uuid.UUID +// OptNull is optional struct{}. +type OptNull struct { + Value struct{} Set bool - Null bool } -// IsSet returns true if OptNilUUID was set. -func (o OptNilUUID) IsSet() bool { return o.Set } +// IsSet returns true if OptNull was set. +func (o OptNull) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUUID) Reset() { - var v uuid.UUID +func (o *OptNull) Reset() { + var v struct{} o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUUID) SetTo(v uuid.UUID) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUUID) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUUID) SetToNull() { +func (o *OptNull) SetTo(v struct{}) { o.Set = true - o.Null = true - var v uuid.UUID o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUUID) Get() (v uuid.UUID, ok bool) { - if o.Null { - return v, false - } +func (o OptNull) Get() (v struct{}, ok bool) { if !o.Set { return v, false } @@ -3734,62 +5427,45 @@ func (o OptNilUUID) Get() (v uuid.UUID, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUUID) Or(d uuid.UUID) uuid.UUID { +func (o OptNull) Or(d struct{}) struct{} { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUint returns new OptNilUint with value set to v. -func NewOptNilUint(v uint) OptNilUint { - return OptNilUint{ +// NewOptString returns new OptString with value set to v. +func NewOptString(v string) OptString { + return OptString{ Value: v, Set: true, } } -// OptNilUint is optional nullable uint. -type OptNilUint struct { - Value uint +// OptString is optional string. +type OptString struct { + Value string Set bool - Null bool } -// IsSet returns true if OptNilUint was set. -func (o OptNilUint) IsSet() bool { return o.Set } +// IsSet returns true if OptString was set. +func (o OptString) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUint) Reset() { - var v uint +func (o *OptString) Reset() { + var v string o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUint) SetTo(v uint) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUint) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUint) SetToNull() { +func (o *OptString) SetTo(v string) { o.Set = true - o.Null = true - var v uint o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUint) Get() (v uint, ok bool) { - if o.Null { - return v, false - } +func (o OptString) Get() (v string, ok bool) { if !o.Set { return v, false } @@ -3797,62 +5473,45 @@ func (o OptNilUint) Get() (v uint, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUint) Or(d uint) uint { +func (o OptString) Or(d string) string { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUint16 returns new OptNilUint16 with value set to v. -func NewOptNilUint16(v uint16) OptNilUint16 { - return OptNilUint16{ +// NewOptStringFloat32 returns new OptStringFloat32 with value set to v. +func NewOptStringFloat32(v float32) OptStringFloat32 { + return OptStringFloat32{ Value: v, Set: true, } } -// OptNilUint16 is optional nullable uint16. -type OptNilUint16 struct { - Value uint16 +// OptStringFloat32 is optional float32. +type OptStringFloat32 struct { + Value float32 Set bool - Null bool } -// IsSet returns true if OptNilUint16 was set. -func (o OptNilUint16) IsSet() bool { return o.Set } +// IsSet returns true if OptStringFloat32 was set. +func (o OptStringFloat32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUint16) Reset() { - var v uint16 +func (o *OptStringFloat32) Reset() { + var v float32 o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUint16) SetTo(v uint16) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUint16) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUint16) SetToNull() { +func (o *OptStringFloat32) SetTo(v float32) { o.Set = true - o.Null = true - var v uint16 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUint16) Get() (v uint16, ok bool) { - if o.Null { - return v, false - } +func (o OptStringFloat32) Get() (v float32, ok bool) { if !o.Set { return v, false } @@ -3860,62 +5519,45 @@ func (o OptNilUint16) Get() (v uint16, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUint16) Or(d uint16) uint16 { +func (o OptStringFloat32) Or(d float32) float32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUint32 returns new OptNilUint32 with value set to v. -func NewOptNilUint32(v uint32) OptNilUint32 { - return OptNilUint32{ +// NewOptStringFloat64 returns new OptStringFloat64 with value set to v. +func NewOptStringFloat64(v float64) OptStringFloat64 { + return OptStringFloat64{ Value: v, Set: true, } } -// OptNilUint32 is optional nullable uint32. -type OptNilUint32 struct { - Value uint32 +// OptStringFloat64 is optional float64. +type OptStringFloat64 struct { + Value float64 Set bool - Null bool } -// IsSet returns true if OptNilUint32 was set. -func (o OptNilUint32) IsSet() bool { return o.Set } +// IsSet returns true if OptStringFloat64 was set. +func (o OptStringFloat64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUint32) Reset() { - var v uint32 +func (o *OptStringFloat64) Reset() { + var v float64 o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUint32) SetTo(v uint32) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUint32) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUint32) SetToNull() { +func (o *OptStringFloat64) SetTo(v float64) { o.Set = true - o.Null = true - var v uint32 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUint32) Get() (v uint32, ok bool) { - if o.Null { - return v, false - } +func (o OptStringFloat64) Get() (v float64, ok bool) { if !o.Set { return v, false } @@ -3923,62 +5565,45 @@ func (o OptNilUint32) Get() (v uint32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUint32) Or(d uint32) uint32 { +func (o OptStringFloat64) Or(d float64) float64 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUint64 returns new OptNilUint64 with value set to v. -func NewOptNilUint64(v uint64) OptNilUint64 { - return OptNilUint64{ +// NewOptStringInt returns new OptStringInt with value set to v. +func NewOptStringInt(v int) OptStringInt { + return OptStringInt{ Value: v, Set: true, } } -// OptNilUint64 is optional nullable uint64. -type OptNilUint64 struct { - Value uint64 +// OptStringInt is optional int. +type OptStringInt struct { + Value int Set bool - Null bool } -// IsSet returns true if OptNilUint64 was set. -func (o OptNilUint64) IsSet() bool { return o.Set } +// IsSet returns true if OptStringInt was set. +func (o OptStringInt) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUint64) Reset() { - var v uint64 - o.Value = v - o.Set = false - o.Null = false -} - -// SetTo sets value to v. -func (o *OptNilUint64) SetTo(v uint64) { - o.Set = true - o.Null = false +func (o *OptStringInt) Reset() { + var v int o.Value = v + o.Set = false } -// IsSet returns true if value is Null. -func (o OptNilUint64) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUint64) SetToNull() { +// SetTo sets value to v. +func (o *OptStringInt) SetTo(v int) { o.Set = true - o.Null = true - var v uint64 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUint64) Get() (v uint64, ok bool) { - if o.Null { - return v, false - } +func (o OptStringInt) Get() (v int, ok bool) { if !o.Set { return v, false } @@ -3986,62 +5611,45 @@ func (o OptNilUint64) Get() (v uint64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUint64) Or(d uint64) uint64 { +func (o OptStringInt) Or(d int) int { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUint8 returns new OptNilUint8 with value set to v. -func NewOptNilUint8(v uint8) OptNilUint8 { - return OptNilUint8{ +// NewOptStringInt16 returns new OptStringInt16 with value set to v. +func NewOptStringInt16(v int16) OptStringInt16 { + return OptStringInt16{ Value: v, Set: true, } } -// OptNilUint8 is optional nullable uint8. -type OptNilUint8 struct { - Value uint8 +// OptStringInt16 is optional int16. +type OptStringInt16 struct { + Value int16 Set bool - Null bool } -// IsSet returns true if OptNilUint8 was set. -func (o OptNilUint8) IsSet() bool { return o.Set } +// IsSet returns true if OptStringInt16 was set. +func (o OptStringInt16) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUint8) Reset() { - var v uint8 +func (o *OptStringInt16) Reset() { + var v int16 o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUint8) SetTo(v uint8) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUint8) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUint8) SetToNull() { +func (o *OptStringInt16) SetTo(v int16) { o.Set = true - o.Null = true - var v uint8 o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUint8) Get() (v uint8, ok bool) { - if o.Null { - return v, false - } +func (o OptStringInt16) Get() (v int16, ok bool) { if !o.Set { return v, false } @@ -4049,62 +5657,45 @@ func (o OptNilUint8) Get() (v uint8, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUint8) Or(d uint8) uint8 { +func (o OptStringInt16) Or(d int16) int16 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUnixMicro returns new OptNilUnixMicro with value set to v. -func NewOptNilUnixMicro(v time.Time) OptNilUnixMicro { - return OptNilUnixMicro{ +// NewOptStringInt32 returns new OptStringInt32 with value set to v. +func NewOptStringInt32(v int32) OptStringInt32 { + return OptStringInt32{ Value: v, Set: true, } } -// OptNilUnixMicro is optional nullable time.Time. -type OptNilUnixMicro struct { - Value time.Time +// OptStringInt32 is optional int32. +type OptStringInt32 struct { + Value int32 Set bool - Null bool } -// IsSet returns true if OptNilUnixMicro was set. -func (o OptNilUnixMicro) IsSet() bool { return o.Set } +// IsSet returns true if OptStringInt32 was set. +func (o OptStringInt32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUnixMicro) Reset() { - var v time.Time +func (o *OptStringInt32) Reset() { + var v int32 o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUnixMicro) SetTo(v time.Time) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUnixMicro) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUnixMicro) SetToNull() { +func (o *OptStringInt32) SetTo(v int32) { o.Set = true - o.Null = true - var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUnixMicro) Get() (v time.Time, ok bool) { - if o.Null { - return v, false - } +func (o OptStringInt32) Get() (v int32, ok bool) { if !o.Set { return v, false } @@ -4112,62 +5703,45 @@ func (o OptNilUnixMicro) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUnixMicro) Or(d time.Time) time.Time { +func (o OptStringInt32) Or(d int32) int32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUnixMilli returns new OptNilUnixMilli with value set to v. -func NewOptNilUnixMilli(v time.Time) OptNilUnixMilli { - return OptNilUnixMilli{ +// NewOptStringInt64 returns new OptStringInt64 with value set to v. +func NewOptStringInt64(v int64) OptStringInt64 { + return OptStringInt64{ Value: v, Set: true, } } -// OptNilUnixMilli is optional nullable time.Time. -type OptNilUnixMilli struct { - Value time.Time +// OptStringInt64 is optional int64. +type OptStringInt64 struct { + Value int64 Set bool - Null bool } -// IsSet returns true if OptNilUnixMilli was set. -func (o OptNilUnixMilli) IsSet() bool { return o.Set } +// IsSet returns true if OptStringInt64 was set. +func (o OptStringInt64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUnixMilli) Reset() { - var v time.Time +func (o *OptStringInt64) Reset() { + var v int64 o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUnixMilli) SetTo(v time.Time) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUnixMilli) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUnixMilli) SetToNull() { +func (o *OptStringInt64) SetTo(v int64) { o.Set = true - o.Null = true - var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUnixMilli) Get() (v time.Time, ok bool) { - if o.Null { - return v, false - } +func (o OptStringInt64) Get() (v int64, ok bool) { if !o.Set { return v, false } @@ -4175,62 +5749,45 @@ func (o OptNilUnixMilli) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUnixMilli) Or(d time.Time) time.Time { +func (o OptStringInt64) Or(d int64) int64 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUnixNano returns new OptNilUnixNano with value set to v. -func NewOptNilUnixNano(v time.Time) OptNilUnixNano { - return OptNilUnixNano{ +// NewOptStringInt8 returns new OptStringInt8 with value set to v. +func NewOptStringInt8(v int8) OptStringInt8 { + return OptStringInt8{ Value: v, Set: true, } } -// OptNilUnixNano is optional nullable time.Time. -type OptNilUnixNano struct { - Value time.Time +// OptStringInt8 is optional int8. +type OptStringInt8 struct { + Value int8 Set bool - Null bool } -// IsSet returns true if OptNilUnixNano was set. -func (o OptNilUnixNano) IsSet() bool { return o.Set } +// IsSet returns true if OptStringInt8 was set. +func (o OptStringInt8) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUnixNano) Reset() { - var v time.Time +func (o *OptStringInt8) Reset() { + var v int8 o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUnixNano) SetTo(v time.Time) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUnixNano) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUnixNano) SetToNull() { +func (o *OptStringInt8) SetTo(v int8) { o.Set = true - o.Null = true - var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUnixNano) Get() (v time.Time, ok bool) { - if o.Null { - return v, false - } +func (o OptStringInt8) Get() (v int8, ok bool) { if !o.Set { return v, false } @@ -4238,62 +5795,45 @@ func (o OptNilUnixNano) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUnixNano) Or(d time.Time) time.Time { +func (o OptStringInt8) Or(d int8) int8 { if v, ok := o.Get(); ok { return v } return d } -// NewOptNilUnixSeconds returns new OptNilUnixSeconds with value set to v. -func NewOptNilUnixSeconds(v time.Time) OptNilUnixSeconds { - return OptNilUnixSeconds{ +// NewOptStringUint returns new OptStringUint with value set to v. +func NewOptStringUint(v uint) OptStringUint { + return OptStringUint{ Value: v, Set: true, } } -// OptNilUnixSeconds is optional nullable time.Time. -type OptNilUnixSeconds struct { - Value time.Time +// OptStringUint is optional uint. +type OptStringUint struct { + Value uint Set bool - Null bool } -// IsSet returns true if OptNilUnixSeconds was set. -func (o OptNilUnixSeconds) IsSet() bool { return o.Set } +// IsSet returns true if OptStringUint was set. +func (o OptStringUint) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNilUnixSeconds) Reset() { - var v time.Time +func (o *OptStringUint) Reset() { + var v uint o.Value = v o.Set = false - o.Null = false } // SetTo sets value to v. -func (o *OptNilUnixSeconds) SetTo(v time.Time) { - o.Set = true - o.Null = false - o.Value = v -} - -// IsSet returns true if value is Null. -func (o OptNilUnixSeconds) IsNull() bool { return o.Null } - -// SetNull sets value to null. -func (o *OptNilUnixSeconds) SetToNull() { +func (o *OptStringUint) SetTo(v uint) { o.Set = true - o.Null = true - var v time.Time o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNilUnixSeconds) Get() (v time.Time, ok bool) { - if o.Null { - return v, false - } +func (o OptStringUint) Get() (v uint, ok bool) { if !o.Set { return v, false } @@ -4301,45 +5841,45 @@ func (o OptNilUnixSeconds) Get() (v time.Time, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNilUnixSeconds) Or(d time.Time) time.Time { +func (o OptStringUint) Or(d uint) uint { if v, ok := o.Get(); ok { return v } return d } -// NewOptNull returns new OptNull with value set to v. -func NewOptNull(v struct{}) OptNull { - return OptNull{ +// NewOptStringUint16 returns new OptStringUint16 with value set to v. +func NewOptStringUint16(v uint16) OptStringUint16 { + return OptStringUint16{ Value: v, Set: true, } } -// OptNull is optional struct{}. -type OptNull struct { - Value struct{} +// OptStringUint16 is optional uint16. +type OptStringUint16 struct { + Value uint16 Set bool } -// IsSet returns true if OptNull was set. -func (o OptNull) IsSet() bool { return o.Set } +// IsSet returns true if OptStringUint16 was set. +func (o OptStringUint16) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptNull) Reset() { - var v struct{} +func (o *OptStringUint16) Reset() { + var v uint16 o.Value = v o.Set = false } // SetTo sets value to v. -func (o *OptNull) SetTo(v struct{}) { +func (o *OptStringUint16) SetTo(v uint16) { o.Set = true o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptNull) Get() (v struct{}, ok bool) { +func (o OptStringUint16) Get() (v uint16, ok bool) { if !o.Set { return v, false } @@ -4347,45 +5887,45 @@ func (o OptNull) Get() (v struct{}, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptNull) Or(d struct{}) struct{} { +func (o OptStringUint16) Or(d uint16) uint16 { if v, ok := o.Get(); ok { return v } return d } -// NewOptString returns new OptString with value set to v. -func NewOptString(v string) OptString { - return OptString{ +// NewOptStringUint32 returns new OptStringUint32 with value set to v. +func NewOptStringUint32(v uint32) OptStringUint32 { + return OptStringUint32{ Value: v, Set: true, } } -// OptString is optional string. -type OptString struct { - Value string +// OptStringUint32 is optional uint32. +type OptStringUint32 struct { + Value uint32 Set bool } -// IsSet returns true if OptString was set. -func (o OptString) IsSet() bool { return o.Set } +// IsSet returns true if OptStringUint32 was set. +func (o OptStringUint32) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptString) Reset() { - var v string +func (o *OptStringUint32) Reset() { + var v uint32 o.Value = v o.Set = false } // SetTo sets value to v. -func (o *OptString) SetTo(v string) { +func (o *OptStringUint32) SetTo(v uint32) { o.Set = true o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptString) Get() (v string, ok bool) { +func (o OptStringUint32) Get() (v uint32, ok bool) { if !o.Set { return v, false } @@ -4393,45 +5933,45 @@ func (o OptString) Get() (v string, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptString) Or(d string) string { +func (o OptStringUint32) Or(d uint32) uint32 { if v, ok := o.Get(); ok { return v } return d } -// NewOptStringInt32 returns new OptStringInt32 with value set to v. -func NewOptStringInt32(v int32) OptStringInt32 { - return OptStringInt32{ +// NewOptStringUint64 returns new OptStringUint64 with value set to v. +func NewOptStringUint64(v uint64) OptStringUint64 { + return OptStringUint64{ Value: v, Set: true, } } -// OptStringInt32 is optional int32. -type OptStringInt32 struct { - Value int32 +// OptStringUint64 is optional uint64. +type OptStringUint64 struct { + Value uint64 Set bool } -// IsSet returns true if OptStringInt32 was set. -func (o OptStringInt32) IsSet() bool { return o.Set } +// IsSet returns true if OptStringUint64 was set. +func (o OptStringUint64) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptStringInt32) Reset() { - var v int32 +func (o *OptStringUint64) Reset() { + var v uint64 o.Value = v o.Set = false } // SetTo sets value to v. -func (o *OptStringInt32) SetTo(v int32) { +func (o *OptStringUint64) SetTo(v uint64) { o.Set = true o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptStringInt32) Get() (v int32, ok bool) { +func (o OptStringUint64) Get() (v uint64, ok bool) { if !o.Set { return v, false } @@ -4439,45 +5979,45 @@ func (o OptStringInt32) Get() (v int32, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptStringInt32) Or(d int32) int32 { +func (o OptStringUint64) Or(d uint64) uint64 { if v, ok := o.Get(); ok { return v } return d } -// NewOptStringInt64 returns new OptStringInt64 with value set to v. -func NewOptStringInt64(v int64) OptStringInt64 { - return OptStringInt64{ +// NewOptStringUint8 returns new OptStringUint8 with value set to v. +func NewOptStringUint8(v uint8) OptStringUint8 { + return OptStringUint8{ Value: v, Set: true, } } -// OptStringInt64 is optional int64. -type OptStringInt64 struct { - Value int64 +// OptStringUint8 is optional uint8. +type OptStringUint8 struct { + Value uint8 Set bool } -// IsSet returns true if OptStringInt64 was set. -func (o OptStringInt64) IsSet() bool { return o.Set } +// IsSet returns true if OptStringUint8 was set. +func (o OptStringUint8) IsSet() bool { return o.Set } // Reset unsets value. -func (o *OptStringInt64) Reset() { - var v int64 +func (o *OptStringUint8) Reset() { + var v uint8 o.Value = v o.Set = false } // SetTo sets value to v. -func (o *OptStringInt64) SetTo(v int64) { +func (o *OptStringUint8) SetTo(v uint8) { o.Set = true o.Value = v } // Get returns value and boolean that denotes whether value was set. -func (o OptStringInt64) Get() (v int64, ok bool) { +func (o OptStringUint8) Get() (v uint8, ok bool) { if !o.Set { return v, false } @@ -4485,7 +6025,7 @@ func (o OptStringInt64) Get() (v int64, ok bool) { } // Or returns value if set, or given parameter if does not. -func (o OptStringInt64) Or(d int64) int64 { +func (o OptStringUint8) Or(d uint8) uint8 { if v, ok := o.Get(); ok { return v } @@ -5588,24 +7128,24 @@ type TestRequestFormatTestReq struct { OptionalStringDateMinusTime OptDateTime `json:"optional_string_date-time"` OptionalStringDuration OptDuration `json:"optional_string_duration"` OptionalStringEmail OptString `json:"optional_string_email"` - OptionalStringFloat32 OptFloat32 `json:"optional_string_float32"` - OptionalStringFloat64 OptFloat64 `json:"optional_string_float64"` + OptionalStringFloat32 OptStringFloat32 `json:"optional_string_float32"` + OptionalStringFloat64 OptStringFloat64 `json:"optional_string_float64"` OptionalStringHostname OptString `json:"optional_string_hostname"` - OptionalStringInt OptInt `json:"optional_string_int"` - OptionalStringInt16 OptInt16 `json:"optional_string_int16"` + OptionalStringInt OptStringInt `json:"optional_string_int"` + OptionalStringInt16 OptStringInt16 `json:"optional_string_int16"` OptionalStringInt32 OptStringInt32 `json:"optional_string_int32"` OptionalStringInt64 OptStringInt64 `json:"optional_string_int64"` - OptionalStringInt8 OptInt8 `json:"optional_string_int8"` + OptionalStringInt8 OptStringInt8 `json:"optional_string_int8"` OptionalStringIP OptIP `json:"optional_string_ip"` OptionalStringIpv4 OptIPv4 `json:"optional_string_ipv4"` OptionalStringIpv6 OptIPv6 `json:"optional_string_ipv6"` OptionalStringPassword OptString `json:"optional_string_password"` OptionalStringTime OptTime `json:"optional_string_time"` - OptionalStringUint OptUint `json:"optional_string_uint"` - OptionalStringUint16 OptUint16 `json:"optional_string_uint16"` - OptionalStringUint32 OptUint32 `json:"optional_string_uint32"` - OptionalStringUint64 OptUint64 `json:"optional_string_uint64"` - OptionalStringUint8 OptUint8 `json:"optional_string_uint8"` + OptionalStringUint OptStringUint `json:"optional_string_uint"` + OptionalStringUint16 OptStringUint16 `json:"optional_string_uint16"` + OptionalStringUint32 OptStringUint32 `json:"optional_string_uint32"` + OptionalStringUint64 OptStringUint64 `json:"optional_string_uint64"` + OptionalStringUint8 OptStringUint8 `json:"optional_string_uint8"` OptionalStringUnix OptStringUnixSeconds `json:"optional_string_unix"` OptionalStringUnixMinusMicro OptStringUnixMicro `json:"optional_string_unix-micro"` OptionalStringUnixMinusMilli OptStringUnixMilli `json:"optional_string_unix-milli"` @@ -7171,12 +8711,12 @@ func (s *TestRequestFormatTestReq) GetOptionalStringEmail() OptString { } // GetOptionalStringFloat32 returns the value of OptionalStringFloat32. -func (s *TestRequestFormatTestReq) GetOptionalStringFloat32() OptFloat32 { +func (s *TestRequestFormatTestReq) GetOptionalStringFloat32() OptStringFloat32 { return s.OptionalStringFloat32 } // GetOptionalStringFloat64 returns the value of OptionalStringFloat64. -func (s *TestRequestFormatTestReq) GetOptionalStringFloat64() OptFloat64 { +func (s *TestRequestFormatTestReq) GetOptionalStringFloat64() OptStringFloat64 { return s.OptionalStringFloat64 } @@ -7186,12 +8726,12 @@ func (s *TestRequestFormatTestReq) GetOptionalStringHostname() OptString { } // GetOptionalStringInt returns the value of OptionalStringInt. -func (s *TestRequestFormatTestReq) GetOptionalStringInt() OptInt { +func (s *TestRequestFormatTestReq) GetOptionalStringInt() OptStringInt { return s.OptionalStringInt } // GetOptionalStringInt16 returns the value of OptionalStringInt16. -func (s *TestRequestFormatTestReq) GetOptionalStringInt16() OptInt16 { +func (s *TestRequestFormatTestReq) GetOptionalStringInt16() OptStringInt16 { return s.OptionalStringInt16 } @@ -7206,7 +8746,7 @@ func (s *TestRequestFormatTestReq) GetOptionalStringInt64() OptStringInt64 { } // GetOptionalStringInt8 returns the value of OptionalStringInt8. -func (s *TestRequestFormatTestReq) GetOptionalStringInt8() OptInt8 { +func (s *TestRequestFormatTestReq) GetOptionalStringInt8() OptStringInt8 { return s.OptionalStringInt8 } @@ -7236,27 +8776,27 @@ func (s *TestRequestFormatTestReq) GetOptionalStringTime() OptTime { } // GetOptionalStringUint returns the value of OptionalStringUint. -func (s *TestRequestFormatTestReq) GetOptionalStringUint() OptUint { +func (s *TestRequestFormatTestReq) GetOptionalStringUint() OptStringUint { return s.OptionalStringUint } // GetOptionalStringUint16 returns the value of OptionalStringUint16. -func (s *TestRequestFormatTestReq) GetOptionalStringUint16() OptUint16 { +func (s *TestRequestFormatTestReq) GetOptionalStringUint16() OptStringUint16 { return s.OptionalStringUint16 } // GetOptionalStringUint32 returns the value of OptionalStringUint32. -func (s *TestRequestFormatTestReq) GetOptionalStringUint32() OptUint32 { +func (s *TestRequestFormatTestReq) GetOptionalStringUint32() OptStringUint32 { return s.OptionalStringUint32 } // GetOptionalStringUint64 returns the value of OptionalStringUint64. -func (s *TestRequestFormatTestReq) GetOptionalStringUint64() OptUint64 { +func (s *TestRequestFormatTestReq) GetOptionalStringUint64() OptStringUint64 { return s.OptionalStringUint64 } // GetOptionalStringUint8 returns the value of OptionalStringUint8. -func (s *TestRequestFormatTestReq) GetOptionalStringUint8() OptUint8 { +func (s *TestRequestFormatTestReq) GetOptionalStringUint8() OptStringUint8 { return s.OptionalStringUint8 } @@ -8851,12 +10391,12 @@ func (s *TestRequestFormatTestReq) SetOptionalStringEmail(val OptString) { } // SetOptionalStringFloat32 sets the value of OptionalStringFloat32. -func (s *TestRequestFormatTestReq) SetOptionalStringFloat32(val OptFloat32) { +func (s *TestRequestFormatTestReq) SetOptionalStringFloat32(val OptStringFloat32) { s.OptionalStringFloat32 = val } // SetOptionalStringFloat64 sets the value of OptionalStringFloat64. -func (s *TestRequestFormatTestReq) SetOptionalStringFloat64(val OptFloat64) { +func (s *TestRequestFormatTestReq) SetOptionalStringFloat64(val OptStringFloat64) { s.OptionalStringFloat64 = val } @@ -8866,12 +10406,12 @@ func (s *TestRequestFormatTestReq) SetOptionalStringHostname(val OptString) { } // SetOptionalStringInt sets the value of OptionalStringInt. -func (s *TestRequestFormatTestReq) SetOptionalStringInt(val OptInt) { +func (s *TestRequestFormatTestReq) SetOptionalStringInt(val OptStringInt) { s.OptionalStringInt = val } // SetOptionalStringInt16 sets the value of OptionalStringInt16. -func (s *TestRequestFormatTestReq) SetOptionalStringInt16(val OptInt16) { +func (s *TestRequestFormatTestReq) SetOptionalStringInt16(val OptStringInt16) { s.OptionalStringInt16 = val } @@ -8886,7 +10426,7 @@ func (s *TestRequestFormatTestReq) SetOptionalStringInt64(val OptStringInt64) { } // SetOptionalStringInt8 sets the value of OptionalStringInt8. -func (s *TestRequestFormatTestReq) SetOptionalStringInt8(val OptInt8) { +func (s *TestRequestFormatTestReq) SetOptionalStringInt8(val OptStringInt8) { s.OptionalStringInt8 = val } @@ -8916,27 +10456,27 @@ func (s *TestRequestFormatTestReq) SetOptionalStringTime(val OptTime) { } // SetOptionalStringUint sets the value of OptionalStringUint. -func (s *TestRequestFormatTestReq) SetOptionalStringUint(val OptUint) { +func (s *TestRequestFormatTestReq) SetOptionalStringUint(val OptStringUint) { s.OptionalStringUint = val } // SetOptionalStringUint16 sets the value of OptionalStringUint16. -func (s *TestRequestFormatTestReq) SetOptionalStringUint16(val OptUint16) { +func (s *TestRequestFormatTestReq) SetOptionalStringUint16(val OptStringUint16) { s.OptionalStringUint16 = val } // SetOptionalStringUint32 sets the value of OptionalStringUint32. -func (s *TestRequestFormatTestReq) SetOptionalStringUint32(val OptUint32) { +func (s *TestRequestFormatTestReq) SetOptionalStringUint32(val OptStringUint32) { s.OptionalStringUint32 = val } // SetOptionalStringUint64 sets the value of OptionalStringUint64. -func (s *TestRequestFormatTestReq) SetOptionalStringUint64(val OptUint64) { +func (s *TestRequestFormatTestReq) SetOptionalStringUint64(val OptStringUint64) { s.OptionalStringUint64 = val } // SetOptionalStringUint8 sets the value of OptionalStringUint8. -func (s *TestRequestFormatTestReq) SetOptionalStringUint8(val OptUint8) { +func (s *TestRequestFormatTestReq) SetOptionalStringUint8(val OptStringUint8) { s.OptionalStringUint8 = val } @@ -9289,24 +10829,24 @@ type TestRequestRequiredFormatTestReq struct { OptionalStringDateMinusTime OptDateTime `json:"optional_string_date-time"` OptionalStringDuration OptDuration `json:"optional_string_duration"` OptionalStringEmail OptString `json:"optional_string_email"` - OptionalStringFloat32 OptFloat32 `json:"optional_string_float32"` - OptionalStringFloat64 OptFloat64 `json:"optional_string_float64"` + OptionalStringFloat32 OptStringFloat32 `json:"optional_string_float32"` + OptionalStringFloat64 OptStringFloat64 `json:"optional_string_float64"` OptionalStringHostname OptString `json:"optional_string_hostname"` - OptionalStringInt OptInt `json:"optional_string_int"` - OptionalStringInt16 OptInt16 `json:"optional_string_int16"` + OptionalStringInt OptStringInt `json:"optional_string_int"` + OptionalStringInt16 OptStringInt16 `json:"optional_string_int16"` OptionalStringInt32 OptStringInt32 `json:"optional_string_int32"` OptionalStringInt64 OptStringInt64 `json:"optional_string_int64"` - OptionalStringInt8 OptInt8 `json:"optional_string_int8"` + OptionalStringInt8 OptStringInt8 `json:"optional_string_int8"` OptionalStringIP OptIP `json:"optional_string_ip"` OptionalStringIpv4 OptIPv4 `json:"optional_string_ipv4"` OptionalStringIpv6 OptIPv6 `json:"optional_string_ipv6"` OptionalStringPassword OptString `json:"optional_string_password"` OptionalStringTime OptTime `json:"optional_string_time"` - OptionalStringUint OptUint `json:"optional_string_uint"` - OptionalStringUint16 OptUint16 `json:"optional_string_uint16"` - OptionalStringUint32 OptUint32 `json:"optional_string_uint32"` - OptionalStringUint64 OptUint64 `json:"optional_string_uint64"` - OptionalStringUint8 OptUint8 `json:"optional_string_uint8"` + OptionalStringUint OptStringUint `json:"optional_string_uint"` + OptionalStringUint16 OptStringUint16 `json:"optional_string_uint16"` + OptionalStringUint32 OptStringUint32 `json:"optional_string_uint32"` + OptionalStringUint64 OptStringUint64 `json:"optional_string_uint64"` + OptionalStringUint8 OptStringUint8 `json:"optional_string_uint8"` OptionalStringUnix OptStringUnixSeconds `json:"optional_string_unix"` OptionalStringUnixMinusMicro OptStringUnixMicro `json:"optional_string_unix-micro"` OptionalStringUnixMinusMilli OptStringUnixMilli `json:"optional_string_unix-milli"` @@ -10872,12 +12412,12 @@ func (s *TestRequestRequiredFormatTestReq) GetOptionalStringEmail() OptString { } // GetOptionalStringFloat32 returns the value of OptionalStringFloat32. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringFloat32() OptFloat32 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringFloat32() OptStringFloat32 { return s.OptionalStringFloat32 } // GetOptionalStringFloat64 returns the value of OptionalStringFloat64. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringFloat64() OptFloat64 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringFloat64() OptStringFloat64 { return s.OptionalStringFloat64 } @@ -10887,12 +12427,12 @@ func (s *TestRequestRequiredFormatTestReq) GetOptionalStringHostname() OptString } // GetOptionalStringInt returns the value of OptionalStringInt. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringInt() OptInt { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringInt() OptStringInt { return s.OptionalStringInt } // GetOptionalStringInt16 returns the value of OptionalStringInt16. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringInt16() OptInt16 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringInt16() OptStringInt16 { return s.OptionalStringInt16 } @@ -10907,7 +12447,7 @@ func (s *TestRequestRequiredFormatTestReq) GetOptionalStringInt64() OptStringInt } // GetOptionalStringInt8 returns the value of OptionalStringInt8. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringInt8() OptInt8 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringInt8() OptStringInt8 { return s.OptionalStringInt8 } @@ -10937,27 +12477,27 @@ func (s *TestRequestRequiredFormatTestReq) GetOptionalStringTime() OptTime { } // GetOptionalStringUint returns the value of OptionalStringUint. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint() OptUint { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint() OptStringUint { return s.OptionalStringUint } // GetOptionalStringUint16 returns the value of OptionalStringUint16. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint16() OptUint16 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint16() OptStringUint16 { return s.OptionalStringUint16 } // GetOptionalStringUint32 returns the value of OptionalStringUint32. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint32() OptUint32 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint32() OptStringUint32 { return s.OptionalStringUint32 } // GetOptionalStringUint64 returns the value of OptionalStringUint64. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint64() OptUint64 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint64() OptStringUint64 { return s.OptionalStringUint64 } // GetOptionalStringUint8 returns the value of OptionalStringUint8. -func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint8() OptUint8 { +func (s *TestRequestRequiredFormatTestReq) GetOptionalStringUint8() OptStringUint8 { return s.OptionalStringUint8 } @@ -12552,12 +14092,12 @@ func (s *TestRequestRequiredFormatTestReq) SetOptionalStringEmail(val OptString) } // SetOptionalStringFloat32 sets the value of OptionalStringFloat32. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringFloat32(val OptFloat32) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringFloat32(val OptStringFloat32) { s.OptionalStringFloat32 = val } // SetOptionalStringFloat64 sets the value of OptionalStringFloat64. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringFloat64(val OptFloat64) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringFloat64(val OptStringFloat64) { s.OptionalStringFloat64 = val } @@ -12567,12 +14107,12 @@ func (s *TestRequestRequiredFormatTestReq) SetOptionalStringHostname(val OptStri } // SetOptionalStringInt sets the value of OptionalStringInt. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringInt(val OptInt) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringInt(val OptStringInt) { s.OptionalStringInt = val } // SetOptionalStringInt16 sets the value of OptionalStringInt16. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringInt16(val OptInt16) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringInt16(val OptStringInt16) { s.OptionalStringInt16 = val } @@ -12587,7 +14127,7 @@ func (s *TestRequestRequiredFormatTestReq) SetOptionalStringInt64(val OptStringI } // SetOptionalStringInt8 sets the value of OptionalStringInt8. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringInt8(val OptInt8) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringInt8(val OptStringInt8) { s.OptionalStringInt8 = val } @@ -12617,27 +14157,27 @@ func (s *TestRequestRequiredFormatTestReq) SetOptionalStringTime(val OptTime) { } // SetOptionalStringUint sets the value of OptionalStringUint. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint(val OptUint) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint(val OptStringUint) { s.OptionalStringUint = val } // SetOptionalStringUint16 sets the value of OptionalStringUint16. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint16(val OptUint16) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint16(val OptStringUint16) { s.OptionalStringUint16 = val } // SetOptionalStringUint32 sets the value of OptionalStringUint32. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint32(val OptUint32) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint32(val OptStringUint32) { s.OptionalStringUint32 = val } // SetOptionalStringUint64 sets the value of OptionalStringUint64. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint64(val OptUint64) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint64(val OptStringUint64) { s.OptionalStringUint64 = val } // SetOptionalStringUint8 sets the value of OptionalStringUint8. -func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint8(val OptUint8) { +func (s *TestRequestRequiredFormatTestReq) SetOptionalStringUint8(val OptStringUint8) { s.OptionalStringUint8 = val } @@ -12990,24 +14530,24 @@ type TestResponseFormatTestOK struct { OptionalStringDateMinusTime OptDateTime `json:"optional_string_date-time"` OptionalStringDuration OptDuration `json:"optional_string_duration"` OptionalStringEmail OptString `json:"optional_string_email"` - OptionalStringFloat32 OptFloat32 `json:"optional_string_float32"` - OptionalStringFloat64 OptFloat64 `json:"optional_string_float64"` + OptionalStringFloat32 OptStringFloat32 `json:"optional_string_float32"` + OptionalStringFloat64 OptStringFloat64 `json:"optional_string_float64"` OptionalStringHostname OptString `json:"optional_string_hostname"` - OptionalStringInt OptInt `json:"optional_string_int"` - OptionalStringInt16 OptInt16 `json:"optional_string_int16"` + OptionalStringInt OptStringInt `json:"optional_string_int"` + OptionalStringInt16 OptStringInt16 `json:"optional_string_int16"` OptionalStringInt32 OptStringInt32 `json:"optional_string_int32"` OptionalStringInt64 OptStringInt64 `json:"optional_string_int64"` - OptionalStringInt8 OptInt8 `json:"optional_string_int8"` + OptionalStringInt8 OptStringInt8 `json:"optional_string_int8"` OptionalStringIP OptIP `json:"optional_string_ip"` OptionalStringIpv4 OptIPv4 `json:"optional_string_ipv4"` OptionalStringIpv6 OptIPv6 `json:"optional_string_ipv6"` OptionalStringPassword OptString `json:"optional_string_password"` OptionalStringTime OptTime `json:"optional_string_time"` - OptionalStringUint OptUint `json:"optional_string_uint"` - OptionalStringUint16 OptUint16 `json:"optional_string_uint16"` - OptionalStringUint32 OptUint32 `json:"optional_string_uint32"` - OptionalStringUint64 OptUint64 `json:"optional_string_uint64"` - OptionalStringUint8 OptUint8 `json:"optional_string_uint8"` + OptionalStringUint OptStringUint `json:"optional_string_uint"` + OptionalStringUint16 OptStringUint16 `json:"optional_string_uint16"` + OptionalStringUint32 OptStringUint32 `json:"optional_string_uint32"` + OptionalStringUint64 OptStringUint64 `json:"optional_string_uint64"` + OptionalStringUint8 OptStringUint8 `json:"optional_string_uint8"` OptionalStringUnix OptStringUnixSeconds `json:"optional_string_unix"` OptionalStringUnixMinusMicro OptStringUnixMicro `json:"optional_string_unix-micro"` OptionalStringUnixMinusMilli OptStringUnixMilli `json:"optional_string_unix-milli"` @@ -14573,12 +16113,12 @@ func (s *TestResponseFormatTestOK) GetOptionalStringEmail() OptString { } // GetOptionalStringFloat32 returns the value of OptionalStringFloat32. -func (s *TestResponseFormatTestOK) GetOptionalStringFloat32() OptFloat32 { +func (s *TestResponseFormatTestOK) GetOptionalStringFloat32() OptStringFloat32 { return s.OptionalStringFloat32 } // GetOptionalStringFloat64 returns the value of OptionalStringFloat64. -func (s *TestResponseFormatTestOK) GetOptionalStringFloat64() OptFloat64 { +func (s *TestResponseFormatTestOK) GetOptionalStringFloat64() OptStringFloat64 { return s.OptionalStringFloat64 } @@ -14588,12 +16128,12 @@ func (s *TestResponseFormatTestOK) GetOptionalStringHostname() OptString { } // GetOptionalStringInt returns the value of OptionalStringInt. -func (s *TestResponseFormatTestOK) GetOptionalStringInt() OptInt { +func (s *TestResponseFormatTestOK) GetOptionalStringInt() OptStringInt { return s.OptionalStringInt } // GetOptionalStringInt16 returns the value of OptionalStringInt16. -func (s *TestResponseFormatTestOK) GetOptionalStringInt16() OptInt16 { +func (s *TestResponseFormatTestOK) GetOptionalStringInt16() OptStringInt16 { return s.OptionalStringInt16 } @@ -14608,7 +16148,7 @@ func (s *TestResponseFormatTestOK) GetOptionalStringInt64() OptStringInt64 { } // GetOptionalStringInt8 returns the value of OptionalStringInt8. -func (s *TestResponseFormatTestOK) GetOptionalStringInt8() OptInt8 { +func (s *TestResponseFormatTestOK) GetOptionalStringInt8() OptStringInt8 { return s.OptionalStringInt8 } @@ -14638,27 +16178,27 @@ func (s *TestResponseFormatTestOK) GetOptionalStringTime() OptTime { } // GetOptionalStringUint returns the value of OptionalStringUint. -func (s *TestResponseFormatTestOK) GetOptionalStringUint() OptUint { +func (s *TestResponseFormatTestOK) GetOptionalStringUint() OptStringUint { return s.OptionalStringUint } // GetOptionalStringUint16 returns the value of OptionalStringUint16. -func (s *TestResponseFormatTestOK) GetOptionalStringUint16() OptUint16 { +func (s *TestResponseFormatTestOK) GetOptionalStringUint16() OptStringUint16 { return s.OptionalStringUint16 } // GetOptionalStringUint32 returns the value of OptionalStringUint32. -func (s *TestResponseFormatTestOK) GetOptionalStringUint32() OptUint32 { +func (s *TestResponseFormatTestOK) GetOptionalStringUint32() OptStringUint32 { return s.OptionalStringUint32 } // GetOptionalStringUint64 returns the value of OptionalStringUint64. -func (s *TestResponseFormatTestOK) GetOptionalStringUint64() OptUint64 { +func (s *TestResponseFormatTestOK) GetOptionalStringUint64() OptStringUint64 { return s.OptionalStringUint64 } // GetOptionalStringUint8 returns the value of OptionalStringUint8. -func (s *TestResponseFormatTestOK) GetOptionalStringUint8() OptUint8 { +func (s *TestResponseFormatTestOK) GetOptionalStringUint8() OptStringUint8 { return s.OptionalStringUint8 } @@ -16253,12 +17793,12 @@ func (s *TestResponseFormatTestOK) SetOptionalStringEmail(val OptString) { } // SetOptionalStringFloat32 sets the value of OptionalStringFloat32. -func (s *TestResponseFormatTestOK) SetOptionalStringFloat32(val OptFloat32) { +func (s *TestResponseFormatTestOK) SetOptionalStringFloat32(val OptStringFloat32) { s.OptionalStringFloat32 = val } // SetOptionalStringFloat64 sets the value of OptionalStringFloat64. -func (s *TestResponseFormatTestOK) SetOptionalStringFloat64(val OptFloat64) { +func (s *TestResponseFormatTestOK) SetOptionalStringFloat64(val OptStringFloat64) { s.OptionalStringFloat64 = val } @@ -16268,12 +17808,12 @@ func (s *TestResponseFormatTestOK) SetOptionalStringHostname(val OptString) { } // SetOptionalStringInt sets the value of OptionalStringInt. -func (s *TestResponseFormatTestOK) SetOptionalStringInt(val OptInt) { +func (s *TestResponseFormatTestOK) SetOptionalStringInt(val OptStringInt) { s.OptionalStringInt = val } // SetOptionalStringInt16 sets the value of OptionalStringInt16. -func (s *TestResponseFormatTestOK) SetOptionalStringInt16(val OptInt16) { +func (s *TestResponseFormatTestOK) SetOptionalStringInt16(val OptStringInt16) { s.OptionalStringInt16 = val } @@ -16288,7 +17828,7 @@ func (s *TestResponseFormatTestOK) SetOptionalStringInt64(val OptStringInt64) { } // SetOptionalStringInt8 sets the value of OptionalStringInt8. -func (s *TestResponseFormatTestOK) SetOptionalStringInt8(val OptInt8) { +func (s *TestResponseFormatTestOK) SetOptionalStringInt8(val OptStringInt8) { s.OptionalStringInt8 = val } @@ -16318,27 +17858,27 @@ func (s *TestResponseFormatTestOK) SetOptionalStringTime(val OptTime) { } // SetOptionalStringUint sets the value of OptionalStringUint. -func (s *TestResponseFormatTestOK) SetOptionalStringUint(val OptUint) { +func (s *TestResponseFormatTestOK) SetOptionalStringUint(val OptStringUint) { s.OptionalStringUint = val } // SetOptionalStringUint16 sets the value of OptionalStringUint16. -func (s *TestResponseFormatTestOK) SetOptionalStringUint16(val OptUint16) { +func (s *TestResponseFormatTestOK) SetOptionalStringUint16(val OptStringUint16) { s.OptionalStringUint16 = val } // SetOptionalStringUint32 sets the value of OptionalStringUint32. -func (s *TestResponseFormatTestOK) SetOptionalStringUint32(val OptUint32) { +func (s *TestResponseFormatTestOK) SetOptionalStringUint32(val OptStringUint32) { s.OptionalStringUint32 = val } // SetOptionalStringUint64 sets the value of OptionalStringUint64. -func (s *TestResponseFormatTestOK) SetOptionalStringUint64(val OptUint64) { +func (s *TestResponseFormatTestOK) SetOptionalStringUint64(val OptStringUint64) { s.OptionalStringUint64 = val } // SetOptionalStringUint8 sets the value of OptionalStringUint8. -func (s *TestResponseFormatTestOK) SetOptionalStringUint8(val OptUint8) { +func (s *TestResponseFormatTestOK) SetOptionalStringUint8(val OptStringUint8) { s.OptionalStringUint8 = val } diff --git a/examples/ex_test_format/oas_server_gen.go b/examples/ex_test_format/oas_server_gen.go index 47c57567e..8989b4a2f 100644 --- a/examples/ex_test_format/oas_server_gen.go +++ b/examples/ex_test_format/oas_server_gen.go @@ -1293,15 +1293,15 @@ type Handler interface { // TestRequestRequiredStringFloat32Nullable implements test_request_required_string_float32_nullable operation. // // POST /test_request_required_string_float32_nullable - TestRequestRequiredStringFloat32Nullable(ctx context.Context, req NilFloat32) (*Error, error) + TestRequestRequiredStringFloat32Nullable(ctx context.Context, req NilStringFloat32) (*Error, error) // TestRequestRequiredStringFloat32NullableArray implements test_request_required_string_float32_nullable_array operation. // // POST /test_request_required_string_float32_nullable_array - TestRequestRequiredStringFloat32NullableArray(ctx context.Context, req []NilFloat32) (*Error, error) + TestRequestRequiredStringFloat32NullableArray(ctx context.Context, req []NilStringFloat32) (*Error, error) // TestRequestRequiredStringFloat32NullableArrayArray implements test_request_required_string_float32_nullable_array_array operation. // // POST /test_request_required_string_float32_nullable_array_array - TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, req [][]NilFloat32) (*Error, error) + TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, req [][]NilStringFloat32) (*Error, error) // TestRequestRequiredStringFloat64 implements test_request_required_string_float64 operation. // // POST /test_request_required_string_float64 @@ -1317,15 +1317,15 @@ type Handler interface { // TestRequestRequiredStringFloat64Nullable implements test_request_required_string_float64_nullable operation. // // POST /test_request_required_string_float64_nullable - TestRequestRequiredStringFloat64Nullable(ctx context.Context, req NilFloat64) (*Error, error) + TestRequestRequiredStringFloat64Nullable(ctx context.Context, req NilStringFloat64) (*Error, error) // TestRequestRequiredStringFloat64NullableArray implements test_request_required_string_float64_nullable_array operation. // // POST /test_request_required_string_float64_nullable_array - TestRequestRequiredStringFloat64NullableArray(ctx context.Context, req []NilFloat64) (*Error, error) + TestRequestRequiredStringFloat64NullableArray(ctx context.Context, req []NilStringFloat64) (*Error, error) // TestRequestRequiredStringFloat64NullableArrayArray implements test_request_required_string_float64_nullable_array_array operation. // // POST /test_request_required_string_float64_nullable_array_array - TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, req [][]NilFloat64) (*Error, error) + TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, req [][]NilStringFloat64) (*Error, error) // TestRequestRequiredStringHostname implements test_request_required_string_hostname operation. // // POST /test_request_required_string_hostname @@ -1393,15 +1393,15 @@ type Handler interface { // TestRequestRequiredStringInt16Nullable implements test_request_required_string_int16_nullable operation. // // POST /test_request_required_string_int16_nullable - TestRequestRequiredStringInt16Nullable(ctx context.Context, req NilInt16) (*Error, error) + TestRequestRequiredStringInt16Nullable(ctx context.Context, req NilStringInt16) (*Error, error) // TestRequestRequiredStringInt16NullableArray implements test_request_required_string_int16_nullable_array operation. // // POST /test_request_required_string_int16_nullable_array - TestRequestRequiredStringInt16NullableArray(ctx context.Context, req []NilInt16) (*Error, error) + TestRequestRequiredStringInt16NullableArray(ctx context.Context, req []NilStringInt16) (*Error, error) // TestRequestRequiredStringInt16NullableArrayArray implements test_request_required_string_int16_nullable_array_array operation. // // POST /test_request_required_string_int16_nullable_array_array - TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, req [][]NilInt16) (*Error, error) + TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, req [][]NilStringInt16) (*Error, error) // TestRequestRequiredStringInt32 implements test_request_required_string_int32 operation. // // POST /test_request_required_string_int32 @@ -1465,15 +1465,15 @@ type Handler interface { // TestRequestRequiredStringInt8Nullable implements test_request_required_string_int8_nullable operation. // // POST /test_request_required_string_int8_nullable - TestRequestRequiredStringInt8Nullable(ctx context.Context, req NilInt8) (*Error, error) + TestRequestRequiredStringInt8Nullable(ctx context.Context, req NilStringInt8) (*Error, error) // TestRequestRequiredStringInt8NullableArray implements test_request_required_string_int8_nullable_array operation. // // POST /test_request_required_string_int8_nullable_array - TestRequestRequiredStringInt8NullableArray(ctx context.Context, req []NilInt8) (*Error, error) + TestRequestRequiredStringInt8NullableArray(ctx context.Context, req []NilStringInt8) (*Error, error) // TestRequestRequiredStringInt8NullableArrayArray implements test_request_required_string_int8_nullable_array_array operation. // // POST /test_request_required_string_int8_nullable_array_array - TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, req [][]NilInt8) (*Error, error) + TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, req [][]NilStringInt8) (*Error, error) // TestRequestRequiredStringIntArray implements test_request_required_string_int_array operation. // // POST /test_request_required_string_int_array @@ -1485,15 +1485,15 @@ type Handler interface { // TestRequestRequiredStringIntNullable implements test_request_required_string_int_nullable operation. // // POST /test_request_required_string_int_nullable - TestRequestRequiredStringIntNullable(ctx context.Context, req NilInt) (*Error, error) + TestRequestRequiredStringIntNullable(ctx context.Context, req NilStringInt) (*Error, error) // TestRequestRequiredStringIntNullableArray implements test_request_required_string_int_nullable_array operation. // // POST /test_request_required_string_int_nullable_array - TestRequestRequiredStringIntNullableArray(ctx context.Context, req []NilInt) (*Error, error) + TestRequestRequiredStringIntNullableArray(ctx context.Context, req []NilStringInt) (*Error, error) // TestRequestRequiredStringIntNullableArrayArray implements test_request_required_string_int_nullable_array_array operation. // // POST /test_request_required_string_int_nullable_array_array - TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, req [][]NilInt) (*Error, error) + TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, req [][]NilStringInt) (*Error, error) // TestRequestRequiredStringIpv4 implements test_request_required_string_ipv4 operation. // // POST /test_request_required_string_ipv4 @@ -1669,15 +1669,15 @@ type Handler interface { // TestRequestRequiredStringUint16Nullable implements test_request_required_string_uint16_nullable operation. // // POST /test_request_required_string_uint16_nullable - TestRequestRequiredStringUint16Nullable(ctx context.Context, req NilUint16) (*Error, error) + TestRequestRequiredStringUint16Nullable(ctx context.Context, req NilStringUint16) (*Error, error) // TestRequestRequiredStringUint16NullableArray implements test_request_required_string_uint16_nullable_array operation. // // POST /test_request_required_string_uint16_nullable_array - TestRequestRequiredStringUint16NullableArray(ctx context.Context, req []NilUint16) (*Error, error) + TestRequestRequiredStringUint16NullableArray(ctx context.Context, req []NilStringUint16) (*Error, error) // TestRequestRequiredStringUint16NullableArrayArray implements test_request_required_string_uint16_nullable_array_array operation. // // POST /test_request_required_string_uint16_nullable_array_array - TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, req [][]NilUint16) (*Error, error) + TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, req [][]NilStringUint16) (*Error, error) // TestRequestRequiredStringUint32 implements test_request_required_string_uint32 operation. // // POST /test_request_required_string_uint32 @@ -1693,15 +1693,15 @@ type Handler interface { // TestRequestRequiredStringUint32Nullable implements test_request_required_string_uint32_nullable operation. // // POST /test_request_required_string_uint32_nullable - TestRequestRequiredStringUint32Nullable(ctx context.Context, req NilUint32) (*Error, error) + TestRequestRequiredStringUint32Nullable(ctx context.Context, req NilStringUint32) (*Error, error) // TestRequestRequiredStringUint32NullableArray implements test_request_required_string_uint32_nullable_array operation. // // POST /test_request_required_string_uint32_nullable_array - TestRequestRequiredStringUint32NullableArray(ctx context.Context, req []NilUint32) (*Error, error) + TestRequestRequiredStringUint32NullableArray(ctx context.Context, req []NilStringUint32) (*Error, error) // TestRequestRequiredStringUint32NullableArrayArray implements test_request_required_string_uint32_nullable_array_array operation. // // POST /test_request_required_string_uint32_nullable_array_array - TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, req [][]NilUint32) (*Error, error) + TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, req [][]NilStringUint32) (*Error, error) // TestRequestRequiredStringUint64 implements test_request_required_string_uint64 operation. // // POST /test_request_required_string_uint64 @@ -1717,15 +1717,15 @@ type Handler interface { // TestRequestRequiredStringUint64Nullable implements test_request_required_string_uint64_nullable operation. // // POST /test_request_required_string_uint64_nullable - TestRequestRequiredStringUint64Nullable(ctx context.Context, req NilUint64) (*Error, error) + TestRequestRequiredStringUint64Nullable(ctx context.Context, req NilStringUint64) (*Error, error) // TestRequestRequiredStringUint64NullableArray implements test_request_required_string_uint64_nullable_array operation. // // POST /test_request_required_string_uint64_nullable_array - TestRequestRequiredStringUint64NullableArray(ctx context.Context, req []NilUint64) (*Error, error) + TestRequestRequiredStringUint64NullableArray(ctx context.Context, req []NilStringUint64) (*Error, error) // TestRequestRequiredStringUint64NullableArrayArray implements test_request_required_string_uint64_nullable_array_array operation. // // POST /test_request_required_string_uint64_nullable_array_array - TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, req [][]NilUint64) (*Error, error) + TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, req [][]NilStringUint64) (*Error, error) // TestRequestRequiredStringUint8 implements test_request_required_string_uint8 operation. // // POST /test_request_required_string_uint8 @@ -1741,15 +1741,15 @@ type Handler interface { // TestRequestRequiredStringUint8Nullable implements test_request_required_string_uint8_nullable operation. // // POST /test_request_required_string_uint8_nullable - TestRequestRequiredStringUint8Nullable(ctx context.Context, req NilUint8) (*Error, error) + TestRequestRequiredStringUint8Nullable(ctx context.Context, req NilStringUint8) (*Error, error) // TestRequestRequiredStringUint8NullableArray implements test_request_required_string_uint8_nullable_array operation. // // POST /test_request_required_string_uint8_nullable_array - TestRequestRequiredStringUint8NullableArray(ctx context.Context, req []NilUint8) (*Error, error) + TestRequestRequiredStringUint8NullableArray(ctx context.Context, req []NilStringUint8) (*Error, error) // TestRequestRequiredStringUint8NullableArrayArray implements test_request_required_string_uint8_nullable_array_array operation. // // POST /test_request_required_string_uint8_nullable_array_array - TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, req [][]NilUint8) (*Error, error) + TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, req [][]NilStringUint8) (*Error, error) // TestRequestRequiredStringUintArray implements test_request_required_string_uint_array operation. // // POST /test_request_required_string_uint_array @@ -1761,15 +1761,15 @@ type Handler interface { // TestRequestRequiredStringUintNullable implements test_request_required_string_uint_nullable operation. // // POST /test_request_required_string_uint_nullable - TestRequestRequiredStringUintNullable(ctx context.Context, req NilUint) (*Error, error) + TestRequestRequiredStringUintNullable(ctx context.Context, req NilStringUint) (*Error, error) // TestRequestRequiredStringUintNullableArray implements test_request_required_string_uint_nullable_array operation. // // POST /test_request_required_string_uint_nullable_array - TestRequestRequiredStringUintNullableArray(ctx context.Context, req []NilUint) (*Error, error) + TestRequestRequiredStringUintNullableArray(ctx context.Context, req []NilStringUint) (*Error, error) // TestRequestRequiredStringUintNullableArrayArray implements test_request_required_string_uint_nullable_array_array operation. // // POST /test_request_required_string_uint_nullable_array_array - TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, req [][]NilUint) (*Error, error) + TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, req [][]NilStringUint) (*Error, error) // TestRequestRequiredStringUnix implements test_request_required_string_unix operation. // // POST /test_request_required_string_unix @@ -2073,7 +2073,7 @@ type Handler interface { // TestRequestStringFloat32 implements test_request_string_float32 operation. // // POST /test_request_string_float32 - TestRequestStringFloat32(ctx context.Context, req OptFloat32) (*Error, error) + TestRequestStringFloat32(ctx context.Context, req OptStringFloat32) (*Error, error) // TestRequestStringFloat32Array implements test_request_string_float32_array operation. // // POST /test_request_string_float32_array @@ -2085,19 +2085,19 @@ type Handler interface { // TestRequestStringFloat32Nullable implements test_request_string_float32_nullable operation. // // POST /test_request_string_float32_nullable - TestRequestStringFloat32Nullable(ctx context.Context, req OptNilFloat32) (*Error, error) + TestRequestStringFloat32Nullable(ctx context.Context, req OptNilStringFloat32) (*Error, error) // TestRequestStringFloat32NullableArray implements test_request_string_float32_nullable_array operation. // // POST /test_request_string_float32_nullable_array - TestRequestStringFloat32NullableArray(ctx context.Context, req []NilFloat32) (*Error, error) + TestRequestStringFloat32NullableArray(ctx context.Context, req []NilStringFloat32) (*Error, error) // TestRequestStringFloat32NullableArrayArray implements test_request_string_float32_nullable_array_array operation. // // POST /test_request_string_float32_nullable_array_array - TestRequestStringFloat32NullableArrayArray(ctx context.Context, req [][]NilFloat32) (*Error, error) + TestRequestStringFloat32NullableArrayArray(ctx context.Context, req [][]NilStringFloat32) (*Error, error) // TestRequestStringFloat64 implements test_request_string_float64 operation. // // POST /test_request_string_float64 - TestRequestStringFloat64(ctx context.Context, req OptFloat64) (*Error, error) + TestRequestStringFloat64(ctx context.Context, req OptStringFloat64) (*Error, error) // TestRequestStringFloat64Array implements test_request_string_float64_array operation. // // POST /test_request_string_float64_array @@ -2109,15 +2109,15 @@ type Handler interface { // TestRequestStringFloat64Nullable implements test_request_string_float64_nullable operation. // // POST /test_request_string_float64_nullable - TestRequestStringFloat64Nullable(ctx context.Context, req OptNilFloat64) (*Error, error) + TestRequestStringFloat64Nullable(ctx context.Context, req OptNilStringFloat64) (*Error, error) // TestRequestStringFloat64NullableArray implements test_request_string_float64_nullable_array operation. // // POST /test_request_string_float64_nullable_array - TestRequestStringFloat64NullableArray(ctx context.Context, req []NilFloat64) (*Error, error) + TestRequestStringFloat64NullableArray(ctx context.Context, req []NilStringFloat64) (*Error, error) // TestRequestStringFloat64NullableArrayArray implements test_request_string_float64_nullable_array_array operation. // // POST /test_request_string_float64_nullable_array_array - TestRequestStringFloat64NullableArrayArray(ctx context.Context, req [][]NilFloat64) (*Error, error) + TestRequestStringFloat64NullableArrayArray(ctx context.Context, req [][]NilStringFloat64) (*Error, error) // TestRequestStringHostname implements test_request_string_hostname operation. // // POST /test_request_string_hostname @@ -2169,11 +2169,11 @@ type Handler interface { // TestRequestStringInt implements test_request_string_int operation. // // POST /test_request_string_int - TestRequestStringInt(ctx context.Context, req OptInt) (*Error, error) + TestRequestStringInt(ctx context.Context, req OptStringInt) (*Error, error) // TestRequestStringInt16 implements test_request_string_int16 operation. // // POST /test_request_string_int16 - TestRequestStringInt16(ctx context.Context, req OptInt16) (*Error, error) + TestRequestStringInt16(ctx context.Context, req OptStringInt16) (*Error, error) // TestRequestStringInt16Array implements test_request_string_int16_array operation. // // POST /test_request_string_int16_array @@ -2185,15 +2185,15 @@ type Handler interface { // TestRequestStringInt16Nullable implements test_request_string_int16_nullable operation. // // POST /test_request_string_int16_nullable - TestRequestStringInt16Nullable(ctx context.Context, req OptNilInt16) (*Error, error) + TestRequestStringInt16Nullable(ctx context.Context, req OptNilStringInt16) (*Error, error) // TestRequestStringInt16NullableArray implements test_request_string_int16_nullable_array operation. // // POST /test_request_string_int16_nullable_array - TestRequestStringInt16NullableArray(ctx context.Context, req []NilInt16) (*Error, error) + TestRequestStringInt16NullableArray(ctx context.Context, req []NilStringInt16) (*Error, error) // TestRequestStringInt16NullableArrayArray implements test_request_string_int16_nullable_array_array operation. // // POST /test_request_string_int16_nullable_array_array - TestRequestStringInt16NullableArrayArray(ctx context.Context, req [][]NilInt16) (*Error, error) + TestRequestStringInt16NullableArrayArray(ctx context.Context, req [][]NilStringInt16) (*Error, error) // TestRequestStringInt32 implements test_request_string_int32 operation. // // POST /test_request_string_int32 @@ -2245,7 +2245,7 @@ type Handler interface { // TestRequestStringInt8 implements test_request_string_int8 operation. // // POST /test_request_string_int8 - TestRequestStringInt8(ctx context.Context, req OptInt8) (*Error, error) + TestRequestStringInt8(ctx context.Context, req OptStringInt8) (*Error, error) // TestRequestStringInt8Array implements test_request_string_int8_array operation. // // POST /test_request_string_int8_array @@ -2257,15 +2257,15 @@ type Handler interface { // TestRequestStringInt8Nullable implements test_request_string_int8_nullable operation. // // POST /test_request_string_int8_nullable - TestRequestStringInt8Nullable(ctx context.Context, req OptNilInt8) (*Error, error) + TestRequestStringInt8Nullable(ctx context.Context, req OptNilStringInt8) (*Error, error) // TestRequestStringInt8NullableArray implements test_request_string_int8_nullable_array operation. // // POST /test_request_string_int8_nullable_array - TestRequestStringInt8NullableArray(ctx context.Context, req []NilInt8) (*Error, error) + TestRequestStringInt8NullableArray(ctx context.Context, req []NilStringInt8) (*Error, error) // TestRequestStringInt8NullableArrayArray implements test_request_string_int8_nullable_array_array operation. // // POST /test_request_string_int8_nullable_array_array - TestRequestStringInt8NullableArrayArray(ctx context.Context, req [][]NilInt8) (*Error, error) + TestRequestStringInt8NullableArrayArray(ctx context.Context, req [][]NilStringInt8) (*Error, error) // TestRequestStringIntArray implements test_request_string_int_array operation. // // POST /test_request_string_int_array @@ -2277,15 +2277,15 @@ type Handler interface { // TestRequestStringIntNullable implements test_request_string_int_nullable operation. // // POST /test_request_string_int_nullable - TestRequestStringIntNullable(ctx context.Context, req OptNilInt) (*Error, error) + TestRequestStringIntNullable(ctx context.Context, req OptNilStringInt) (*Error, error) // TestRequestStringIntNullableArray implements test_request_string_int_nullable_array operation. // // POST /test_request_string_int_nullable_array - TestRequestStringIntNullableArray(ctx context.Context, req []NilInt) (*Error, error) + TestRequestStringIntNullableArray(ctx context.Context, req []NilStringInt) (*Error, error) // TestRequestStringIntNullableArrayArray implements test_request_string_int_nullable_array_array operation. // // POST /test_request_string_int_nullable_array_array - TestRequestStringIntNullableArrayArray(ctx context.Context, req [][]NilInt) (*Error, error) + TestRequestStringIntNullableArrayArray(ctx context.Context, req [][]NilStringInt) (*Error, error) // TestRequestStringIpv4 implements test_request_string_ipv4 operation. // // POST /test_request_string_ipv4 @@ -2445,11 +2445,11 @@ type Handler interface { // TestRequestStringUint implements test_request_string_uint operation. // // POST /test_request_string_uint - TestRequestStringUint(ctx context.Context, req OptUint) (*Error, error) + TestRequestStringUint(ctx context.Context, req OptStringUint) (*Error, error) // TestRequestStringUint16 implements test_request_string_uint16 operation. // // POST /test_request_string_uint16 - TestRequestStringUint16(ctx context.Context, req OptUint16) (*Error, error) + TestRequestStringUint16(ctx context.Context, req OptStringUint16) (*Error, error) // TestRequestStringUint16Array implements test_request_string_uint16_array operation. // // POST /test_request_string_uint16_array @@ -2461,19 +2461,19 @@ type Handler interface { // TestRequestStringUint16Nullable implements test_request_string_uint16_nullable operation. // // POST /test_request_string_uint16_nullable - TestRequestStringUint16Nullable(ctx context.Context, req OptNilUint16) (*Error, error) + TestRequestStringUint16Nullable(ctx context.Context, req OptNilStringUint16) (*Error, error) // TestRequestStringUint16NullableArray implements test_request_string_uint16_nullable_array operation. // // POST /test_request_string_uint16_nullable_array - TestRequestStringUint16NullableArray(ctx context.Context, req []NilUint16) (*Error, error) + TestRequestStringUint16NullableArray(ctx context.Context, req []NilStringUint16) (*Error, error) // TestRequestStringUint16NullableArrayArray implements test_request_string_uint16_nullable_array_array operation. // // POST /test_request_string_uint16_nullable_array_array - TestRequestStringUint16NullableArrayArray(ctx context.Context, req [][]NilUint16) (*Error, error) + TestRequestStringUint16NullableArrayArray(ctx context.Context, req [][]NilStringUint16) (*Error, error) // TestRequestStringUint32 implements test_request_string_uint32 operation. // // POST /test_request_string_uint32 - TestRequestStringUint32(ctx context.Context, req OptUint32) (*Error, error) + TestRequestStringUint32(ctx context.Context, req OptStringUint32) (*Error, error) // TestRequestStringUint32Array implements test_request_string_uint32_array operation. // // POST /test_request_string_uint32_array @@ -2485,19 +2485,19 @@ type Handler interface { // TestRequestStringUint32Nullable implements test_request_string_uint32_nullable operation. // // POST /test_request_string_uint32_nullable - TestRequestStringUint32Nullable(ctx context.Context, req OptNilUint32) (*Error, error) + TestRequestStringUint32Nullable(ctx context.Context, req OptNilStringUint32) (*Error, error) // TestRequestStringUint32NullableArray implements test_request_string_uint32_nullable_array operation. // // POST /test_request_string_uint32_nullable_array - TestRequestStringUint32NullableArray(ctx context.Context, req []NilUint32) (*Error, error) + TestRequestStringUint32NullableArray(ctx context.Context, req []NilStringUint32) (*Error, error) // TestRequestStringUint32NullableArrayArray implements test_request_string_uint32_nullable_array_array operation. // // POST /test_request_string_uint32_nullable_array_array - TestRequestStringUint32NullableArrayArray(ctx context.Context, req [][]NilUint32) (*Error, error) + TestRequestStringUint32NullableArrayArray(ctx context.Context, req [][]NilStringUint32) (*Error, error) // TestRequestStringUint64 implements test_request_string_uint64 operation. // // POST /test_request_string_uint64 - TestRequestStringUint64(ctx context.Context, req OptUint64) (*Error, error) + TestRequestStringUint64(ctx context.Context, req OptStringUint64) (*Error, error) // TestRequestStringUint64Array implements test_request_string_uint64_array operation. // // POST /test_request_string_uint64_array @@ -2509,19 +2509,19 @@ type Handler interface { // TestRequestStringUint64Nullable implements test_request_string_uint64_nullable operation. // // POST /test_request_string_uint64_nullable - TestRequestStringUint64Nullable(ctx context.Context, req OptNilUint64) (*Error, error) + TestRequestStringUint64Nullable(ctx context.Context, req OptNilStringUint64) (*Error, error) // TestRequestStringUint64NullableArray implements test_request_string_uint64_nullable_array operation. // // POST /test_request_string_uint64_nullable_array - TestRequestStringUint64NullableArray(ctx context.Context, req []NilUint64) (*Error, error) + TestRequestStringUint64NullableArray(ctx context.Context, req []NilStringUint64) (*Error, error) // TestRequestStringUint64NullableArrayArray implements test_request_string_uint64_nullable_array_array operation. // // POST /test_request_string_uint64_nullable_array_array - TestRequestStringUint64NullableArrayArray(ctx context.Context, req [][]NilUint64) (*Error, error) + TestRequestStringUint64NullableArrayArray(ctx context.Context, req [][]NilStringUint64) (*Error, error) // TestRequestStringUint8 implements test_request_string_uint8 operation. // // POST /test_request_string_uint8 - TestRequestStringUint8(ctx context.Context, req OptUint8) (*Error, error) + TestRequestStringUint8(ctx context.Context, req OptStringUint8) (*Error, error) // TestRequestStringUint8Array implements test_request_string_uint8_array operation. // // POST /test_request_string_uint8_array @@ -2533,15 +2533,15 @@ type Handler interface { // TestRequestStringUint8Nullable implements test_request_string_uint8_nullable operation. // // POST /test_request_string_uint8_nullable - TestRequestStringUint8Nullable(ctx context.Context, req OptNilUint8) (*Error, error) + TestRequestStringUint8Nullable(ctx context.Context, req OptNilStringUint8) (*Error, error) // TestRequestStringUint8NullableArray implements test_request_string_uint8_nullable_array operation. // // POST /test_request_string_uint8_nullable_array - TestRequestStringUint8NullableArray(ctx context.Context, req []NilUint8) (*Error, error) + TestRequestStringUint8NullableArray(ctx context.Context, req []NilStringUint8) (*Error, error) // TestRequestStringUint8NullableArrayArray implements test_request_string_uint8_nullable_array_array operation. // // POST /test_request_string_uint8_nullable_array_array - TestRequestStringUint8NullableArrayArray(ctx context.Context, req [][]NilUint8) (*Error, error) + TestRequestStringUint8NullableArrayArray(ctx context.Context, req [][]NilStringUint8) (*Error, error) // TestRequestStringUintArray implements test_request_string_uint_array operation. // // POST /test_request_string_uint_array @@ -2553,15 +2553,15 @@ type Handler interface { // TestRequestStringUintNullable implements test_request_string_uint_nullable operation. // // POST /test_request_string_uint_nullable - TestRequestStringUintNullable(ctx context.Context, req OptNilUint) (*Error, error) + TestRequestStringUintNullable(ctx context.Context, req OptNilStringUint) (*Error, error) // TestRequestStringUintNullableArray implements test_request_string_uint_nullable_array operation. // // POST /test_request_string_uint_nullable_array - TestRequestStringUintNullableArray(ctx context.Context, req []NilUint) (*Error, error) + TestRequestStringUintNullableArray(ctx context.Context, req []NilStringUint) (*Error, error) // TestRequestStringUintNullableArrayArray implements test_request_string_uint_nullable_array_array operation. // // POST /test_request_string_uint_nullable_array_array - TestRequestStringUintNullableArrayArray(ctx context.Context, req [][]NilUint) (*Error, error) + TestRequestStringUintNullableArrayArray(ctx context.Context, req [][]NilStringUint) (*Error, error) // TestRequestStringUnix implements test_request_string_unix operation. // // POST /test_request_string_unix @@ -3417,15 +3417,15 @@ type Handler interface { // TestResponseStringFloat32Nullable implements test_response_string_float32_nullable operation. // // POST /test_response_string_float32_nullable - TestResponseStringFloat32Nullable(ctx context.Context, req string) (NilFloat32, error) + TestResponseStringFloat32Nullable(ctx context.Context, req string) (NilStringFloat32, error) // TestResponseStringFloat32NullableArray implements test_response_string_float32_nullable_array operation. // // POST /test_response_string_float32_nullable_array - TestResponseStringFloat32NullableArray(ctx context.Context, req string) ([]NilFloat32, error) + TestResponseStringFloat32NullableArray(ctx context.Context, req string) ([]NilStringFloat32, error) // TestResponseStringFloat32NullableArrayArray implements test_response_string_float32_nullable_array_array operation. // // POST /test_response_string_float32_nullable_array_array - TestResponseStringFloat32NullableArrayArray(ctx context.Context, req string) ([][]NilFloat32, error) + TestResponseStringFloat32NullableArrayArray(ctx context.Context, req string) ([][]NilStringFloat32, error) // TestResponseStringFloat64 implements test_response_string_float64 operation. // // POST /test_response_string_float64 @@ -3441,15 +3441,15 @@ type Handler interface { // TestResponseStringFloat64Nullable implements test_response_string_float64_nullable operation. // // POST /test_response_string_float64_nullable - TestResponseStringFloat64Nullable(ctx context.Context, req string) (NilFloat64, error) + TestResponseStringFloat64Nullable(ctx context.Context, req string) (NilStringFloat64, error) // TestResponseStringFloat64NullableArray implements test_response_string_float64_nullable_array operation. // // POST /test_response_string_float64_nullable_array - TestResponseStringFloat64NullableArray(ctx context.Context, req string) ([]NilFloat64, error) + TestResponseStringFloat64NullableArray(ctx context.Context, req string) ([]NilStringFloat64, error) // TestResponseStringFloat64NullableArrayArray implements test_response_string_float64_nullable_array_array operation. // // POST /test_response_string_float64_nullable_array_array - TestResponseStringFloat64NullableArrayArray(ctx context.Context, req string) ([][]NilFloat64, error) + TestResponseStringFloat64NullableArrayArray(ctx context.Context, req string) ([][]NilStringFloat64, error) // TestResponseStringHostname implements test_response_string_hostname operation. // // POST /test_response_string_hostname @@ -3517,15 +3517,15 @@ type Handler interface { // TestResponseStringInt16Nullable implements test_response_string_int16_nullable operation. // // POST /test_response_string_int16_nullable - TestResponseStringInt16Nullable(ctx context.Context, req string) (NilInt16, error) + TestResponseStringInt16Nullable(ctx context.Context, req string) (NilStringInt16, error) // TestResponseStringInt16NullableArray implements test_response_string_int16_nullable_array operation. // // POST /test_response_string_int16_nullable_array - TestResponseStringInt16NullableArray(ctx context.Context, req string) ([]NilInt16, error) + TestResponseStringInt16NullableArray(ctx context.Context, req string) ([]NilStringInt16, error) // TestResponseStringInt16NullableArrayArray implements test_response_string_int16_nullable_array_array operation. // // POST /test_response_string_int16_nullable_array_array - TestResponseStringInt16NullableArrayArray(ctx context.Context, req string) ([][]NilInt16, error) + TestResponseStringInt16NullableArrayArray(ctx context.Context, req string) ([][]NilStringInt16, error) // TestResponseStringInt32 implements test_response_string_int32 operation. // // POST /test_response_string_int32 @@ -3589,15 +3589,15 @@ type Handler interface { // TestResponseStringInt8Nullable implements test_response_string_int8_nullable operation. // // POST /test_response_string_int8_nullable - TestResponseStringInt8Nullable(ctx context.Context, req string) (NilInt8, error) + TestResponseStringInt8Nullable(ctx context.Context, req string) (NilStringInt8, error) // TestResponseStringInt8NullableArray implements test_response_string_int8_nullable_array operation. // // POST /test_response_string_int8_nullable_array - TestResponseStringInt8NullableArray(ctx context.Context, req string) ([]NilInt8, error) + TestResponseStringInt8NullableArray(ctx context.Context, req string) ([]NilStringInt8, error) // TestResponseStringInt8NullableArrayArray implements test_response_string_int8_nullable_array_array operation. // // POST /test_response_string_int8_nullable_array_array - TestResponseStringInt8NullableArrayArray(ctx context.Context, req string) ([][]NilInt8, error) + TestResponseStringInt8NullableArrayArray(ctx context.Context, req string) ([][]NilStringInt8, error) // TestResponseStringIntArray implements test_response_string_int_array operation. // // POST /test_response_string_int_array @@ -3609,15 +3609,15 @@ type Handler interface { // TestResponseStringIntNullable implements test_response_string_int_nullable operation. // // POST /test_response_string_int_nullable - TestResponseStringIntNullable(ctx context.Context, req string) (NilInt, error) + TestResponseStringIntNullable(ctx context.Context, req string) (NilStringInt, error) // TestResponseStringIntNullableArray implements test_response_string_int_nullable_array operation. // // POST /test_response_string_int_nullable_array - TestResponseStringIntNullableArray(ctx context.Context, req string) ([]NilInt, error) + TestResponseStringIntNullableArray(ctx context.Context, req string) ([]NilStringInt, error) // TestResponseStringIntNullableArrayArray implements test_response_string_int_nullable_array_array operation. // // POST /test_response_string_int_nullable_array_array - TestResponseStringIntNullableArrayArray(ctx context.Context, req string) ([][]NilInt, error) + TestResponseStringIntNullableArrayArray(ctx context.Context, req string) ([][]NilStringInt, error) // TestResponseStringIpv4 implements test_response_string_ipv4 operation. // // POST /test_response_string_ipv4 @@ -3793,15 +3793,15 @@ type Handler interface { // TestResponseStringUint16Nullable implements test_response_string_uint16_nullable operation. // // POST /test_response_string_uint16_nullable - TestResponseStringUint16Nullable(ctx context.Context, req string) (NilUint16, error) + TestResponseStringUint16Nullable(ctx context.Context, req string) (NilStringUint16, error) // TestResponseStringUint16NullableArray implements test_response_string_uint16_nullable_array operation. // // POST /test_response_string_uint16_nullable_array - TestResponseStringUint16NullableArray(ctx context.Context, req string) ([]NilUint16, error) + TestResponseStringUint16NullableArray(ctx context.Context, req string) ([]NilStringUint16, error) // TestResponseStringUint16NullableArrayArray implements test_response_string_uint16_nullable_array_array operation. // // POST /test_response_string_uint16_nullable_array_array - TestResponseStringUint16NullableArrayArray(ctx context.Context, req string) ([][]NilUint16, error) + TestResponseStringUint16NullableArrayArray(ctx context.Context, req string) ([][]NilStringUint16, error) // TestResponseStringUint32 implements test_response_string_uint32 operation. // // POST /test_response_string_uint32 @@ -3817,15 +3817,15 @@ type Handler interface { // TestResponseStringUint32Nullable implements test_response_string_uint32_nullable operation. // // POST /test_response_string_uint32_nullable - TestResponseStringUint32Nullable(ctx context.Context, req string) (NilUint32, error) + TestResponseStringUint32Nullable(ctx context.Context, req string) (NilStringUint32, error) // TestResponseStringUint32NullableArray implements test_response_string_uint32_nullable_array operation. // // POST /test_response_string_uint32_nullable_array - TestResponseStringUint32NullableArray(ctx context.Context, req string) ([]NilUint32, error) + TestResponseStringUint32NullableArray(ctx context.Context, req string) ([]NilStringUint32, error) // TestResponseStringUint32NullableArrayArray implements test_response_string_uint32_nullable_array_array operation. // // POST /test_response_string_uint32_nullable_array_array - TestResponseStringUint32NullableArrayArray(ctx context.Context, req string) ([][]NilUint32, error) + TestResponseStringUint32NullableArrayArray(ctx context.Context, req string) ([][]NilStringUint32, error) // TestResponseStringUint64 implements test_response_string_uint64 operation. // // POST /test_response_string_uint64 @@ -3841,15 +3841,15 @@ type Handler interface { // TestResponseStringUint64Nullable implements test_response_string_uint64_nullable operation. // // POST /test_response_string_uint64_nullable - TestResponseStringUint64Nullable(ctx context.Context, req string) (NilUint64, error) + TestResponseStringUint64Nullable(ctx context.Context, req string) (NilStringUint64, error) // TestResponseStringUint64NullableArray implements test_response_string_uint64_nullable_array operation. // // POST /test_response_string_uint64_nullable_array - TestResponseStringUint64NullableArray(ctx context.Context, req string) ([]NilUint64, error) + TestResponseStringUint64NullableArray(ctx context.Context, req string) ([]NilStringUint64, error) // TestResponseStringUint64NullableArrayArray implements test_response_string_uint64_nullable_array_array operation. // // POST /test_response_string_uint64_nullable_array_array - TestResponseStringUint64NullableArrayArray(ctx context.Context, req string) ([][]NilUint64, error) + TestResponseStringUint64NullableArrayArray(ctx context.Context, req string) ([][]NilStringUint64, error) // TestResponseStringUint8 implements test_response_string_uint8 operation. // // POST /test_response_string_uint8 @@ -3865,15 +3865,15 @@ type Handler interface { // TestResponseStringUint8Nullable implements test_response_string_uint8_nullable operation. // // POST /test_response_string_uint8_nullable - TestResponseStringUint8Nullable(ctx context.Context, req string) (NilUint8, error) + TestResponseStringUint8Nullable(ctx context.Context, req string) (NilStringUint8, error) // TestResponseStringUint8NullableArray implements test_response_string_uint8_nullable_array operation. // // POST /test_response_string_uint8_nullable_array - TestResponseStringUint8NullableArray(ctx context.Context, req string) ([]NilUint8, error) + TestResponseStringUint8NullableArray(ctx context.Context, req string) ([]NilStringUint8, error) // TestResponseStringUint8NullableArrayArray implements test_response_string_uint8_nullable_array_array operation. // // POST /test_response_string_uint8_nullable_array_array - TestResponseStringUint8NullableArrayArray(ctx context.Context, req string) ([][]NilUint8, error) + TestResponseStringUint8NullableArrayArray(ctx context.Context, req string) ([][]NilStringUint8, error) // TestResponseStringUintArray implements test_response_string_uint_array operation. // // POST /test_response_string_uint_array @@ -3885,15 +3885,15 @@ type Handler interface { // TestResponseStringUintNullable implements test_response_string_uint_nullable operation. // // POST /test_response_string_uint_nullable - TestResponseStringUintNullable(ctx context.Context, req string) (NilUint, error) + TestResponseStringUintNullable(ctx context.Context, req string) (NilStringUint, error) // TestResponseStringUintNullableArray implements test_response_string_uint_nullable_array operation. // // POST /test_response_string_uint_nullable_array - TestResponseStringUintNullableArray(ctx context.Context, req string) ([]NilUint, error) + TestResponseStringUintNullableArray(ctx context.Context, req string) ([]NilStringUint, error) // TestResponseStringUintNullableArrayArray implements test_response_string_uint_nullable_array_array operation. // // POST /test_response_string_uint_nullable_array_array - TestResponseStringUintNullableArrayArray(ctx context.Context, req string) ([][]NilUint, error) + TestResponseStringUintNullableArrayArray(ctx context.Context, req string) ([][]NilStringUint, error) // TestResponseStringUnix implements test_response_string_unix operation. // // POST /test_response_string_unix diff --git a/examples/ex_test_format/oas_unimplemented_gen.go b/examples/ex_test_format/oas_unimplemented_gen.go index b035782d2..a33012cc9 100644 --- a/examples/ex_test_format/oas_unimplemented_gen.go +++ b/examples/ex_test_format/oas_unimplemented_gen.go @@ -2255,21 +2255,21 @@ func (UnimplementedHandler) TestRequestRequiredStringFloat32ArrayArray(ctx conte // TestRequestRequiredStringFloat32Nullable implements test_request_required_string_float32_nullable operation. // // POST /test_request_required_string_float32_nullable -func (UnimplementedHandler) TestRequestRequiredStringFloat32Nullable(ctx context.Context, req NilFloat32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringFloat32Nullable(ctx context.Context, req NilStringFloat32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringFloat32NullableArray implements test_request_required_string_float32_nullable_array operation. // // POST /test_request_required_string_float32_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringFloat32NullableArray(ctx context.Context, req []NilFloat32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringFloat32NullableArray(ctx context.Context, req []NilStringFloat32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringFloat32NullableArrayArray implements test_request_required_string_float32_nullable_array_array operation. // // POST /test_request_required_string_float32_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, req [][]NilFloat32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, req [][]NilStringFloat32) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -2297,21 +2297,21 @@ func (UnimplementedHandler) TestRequestRequiredStringFloat64ArrayArray(ctx conte // TestRequestRequiredStringFloat64Nullable implements test_request_required_string_float64_nullable operation. // // POST /test_request_required_string_float64_nullable -func (UnimplementedHandler) TestRequestRequiredStringFloat64Nullable(ctx context.Context, req NilFloat64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringFloat64Nullable(ctx context.Context, req NilStringFloat64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringFloat64NullableArray implements test_request_required_string_float64_nullable_array operation. // // POST /test_request_required_string_float64_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringFloat64NullableArray(ctx context.Context, req []NilFloat64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringFloat64NullableArray(ctx context.Context, req []NilStringFloat64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringFloat64NullableArrayArray implements test_request_required_string_float64_nullable_array_array operation. // // POST /test_request_required_string_float64_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, req [][]NilFloat64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, req [][]NilStringFloat64) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -2430,21 +2430,21 @@ func (UnimplementedHandler) TestRequestRequiredStringInt16ArrayArray(ctx context // TestRequestRequiredStringInt16Nullable implements test_request_required_string_int16_nullable operation. // // POST /test_request_required_string_int16_nullable -func (UnimplementedHandler) TestRequestRequiredStringInt16Nullable(ctx context.Context, req NilInt16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringInt16Nullable(ctx context.Context, req NilStringInt16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringInt16NullableArray implements test_request_required_string_int16_nullable_array operation. // // POST /test_request_required_string_int16_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringInt16NullableArray(ctx context.Context, req []NilInt16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringInt16NullableArray(ctx context.Context, req []NilStringInt16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringInt16NullableArrayArray implements test_request_required_string_int16_nullable_array_array operation. // // POST /test_request_required_string_int16_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, req [][]NilInt16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, req [][]NilStringInt16) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -2556,21 +2556,21 @@ func (UnimplementedHandler) TestRequestRequiredStringInt8ArrayArray(ctx context. // TestRequestRequiredStringInt8Nullable implements test_request_required_string_int8_nullable operation. // // POST /test_request_required_string_int8_nullable -func (UnimplementedHandler) TestRequestRequiredStringInt8Nullable(ctx context.Context, req NilInt8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringInt8Nullable(ctx context.Context, req NilStringInt8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringInt8NullableArray implements test_request_required_string_int8_nullable_array operation. // // POST /test_request_required_string_int8_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringInt8NullableArray(ctx context.Context, req []NilInt8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringInt8NullableArray(ctx context.Context, req []NilStringInt8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringInt8NullableArrayArray implements test_request_required_string_int8_nullable_array_array operation. // // POST /test_request_required_string_int8_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, req [][]NilInt8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, req [][]NilStringInt8) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -2591,21 +2591,21 @@ func (UnimplementedHandler) TestRequestRequiredStringIntArrayArray(ctx context.C // TestRequestRequiredStringIntNullable implements test_request_required_string_int_nullable operation. // // POST /test_request_required_string_int_nullable -func (UnimplementedHandler) TestRequestRequiredStringIntNullable(ctx context.Context, req NilInt) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringIntNullable(ctx context.Context, req NilStringInt) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringIntNullableArray implements test_request_required_string_int_nullable_array operation. // // POST /test_request_required_string_int_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringIntNullableArray(ctx context.Context, req []NilInt) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringIntNullableArray(ctx context.Context, req []NilStringInt) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringIntNullableArrayArray implements test_request_required_string_int_nullable_array_array operation. // // POST /test_request_required_string_int_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, req [][]NilInt) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringIntNullableArrayArray(ctx context.Context, req [][]NilStringInt) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -2913,21 +2913,21 @@ func (UnimplementedHandler) TestRequestRequiredStringUint16ArrayArray(ctx contex // TestRequestRequiredStringUint16Nullable implements test_request_required_string_uint16_nullable operation. // // POST /test_request_required_string_uint16_nullable -func (UnimplementedHandler) TestRequestRequiredStringUint16Nullable(ctx context.Context, req NilUint16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint16Nullable(ctx context.Context, req NilStringUint16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint16NullableArray implements test_request_required_string_uint16_nullable_array operation. // // POST /test_request_required_string_uint16_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringUint16NullableArray(ctx context.Context, req []NilUint16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint16NullableArray(ctx context.Context, req []NilStringUint16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint16NullableArrayArray implements test_request_required_string_uint16_nullable_array_array operation. // // POST /test_request_required_string_uint16_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, req [][]NilUint16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, req [][]NilStringUint16) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -2955,21 +2955,21 @@ func (UnimplementedHandler) TestRequestRequiredStringUint32ArrayArray(ctx contex // TestRequestRequiredStringUint32Nullable implements test_request_required_string_uint32_nullable operation. // // POST /test_request_required_string_uint32_nullable -func (UnimplementedHandler) TestRequestRequiredStringUint32Nullable(ctx context.Context, req NilUint32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint32Nullable(ctx context.Context, req NilStringUint32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint32NullableArray implements test_request_required_string_uint32_nullable_array operation. // // POST /test_request_required_string_uint32_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringUint32NullableArray(ctx context.Context, req []NilUint32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint32NullableArray(ctx context.Context, req []NilStringUint32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint32NullableArrayArray implements test_request_required_string_uint32_nullable_array_array operation. // // POST /test_request_required_string_uint32_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, req [][]NilUint32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, req [][]NilStringUint32) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -2997,21 +2997,21 @@ func (UnimplementedHandler) TestRequestRequiredStringUint64ArrayArray(ctx contex // TestRequestRequiredStringUint64Nullable implements test_request_required_string_uint64_nullable operation. // // POST /test_request_required_string_uint64_nullable -func (UnimplementedHandler) TestRequestRequiredStringUint64Nullable(ctx context.Context, req NilUint64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint64Nullable(ctx context.Context, req NilStringUint64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint64NullableArray implements test_request_required_string_uint64_nullable_array operation. // // POST /test_request_required_string_uint64_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringUint64NullableArray(ctx context.Context, req []NilUint64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint64NullableArray(ctx context.Context, req []NilStringUint64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint64NullableArrayArray implements test_request_required_string_uint64_nullable_array_array operation. // // POST /test_request_required_string_uint64_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, req [][]NilUint64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, req [][]NilStringUint64) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3039,21 +3039,21 @@ func (UnimplementedHandler) TestRequestRequiredStringUint8ArrayArray(ctx context // TestRequestRequiredStringUint8Nullable implements test_request_required_string_uint8_nullable operation. // // POST /test_request_required_string_uint8_nullable -func (UnimplementedHandler) TestRequestRequiredStringUint8Nullable(ctx context.Context, req NilUint8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint8Nullable(ctx context.Context, req NilStringUint8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint8NullableArray implements test_request_required_string_uint8_nullable_array operation. // // POST /test_request_required_string_uint8_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringUint8NullableArray(ctx context.Context, req []NilUint8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint8NullableArray(ctx context.Context, req []NilStringUint8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUint8NullableArrayArray implements test_request_required_string_uint8_nullable_array_array operation. // // POST /test_request_required_string_uint8_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, req [][]NilUint8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, req [][]NilStringUint8) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3074,21 +3074,21 @@ func (UnimplementedHandler) TestRequestRequiredStringUintArrayArray(ctx context. // TestRequestRequiredStringUintNullable implements test_request_required_string_uint_nullable operation. // // POST /test_request_required_string_uint_nullable -func (UnimplementedHandler) TestRequestRequiredStringUintNullable(ctx context.Context, req NilUint) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUintNullable(ctx context.Context, req NilStringUint) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUintNullableArray implements test_request_required_string_uint_nullable_array operation. // // POST /test_request_required_string_uint_nullable_array -func (UnimplementedHandler) TestRequestRequiredStringUintNullableArray(ctx context.Context, req []NilUint) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUintNullableArray(ctx context.Context, req []NilStringUint) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestRequiredStringUintNullableArrayArray implements test_request_required_string_uint_nullable_array_array operation. // // POST /test_request_required_string_uint_nullable_array_array -func (UnimplementedHandler) TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, req [][]NilUint) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestRequiredStringUintNullableArrayArray(ctx context.Context, req [][]NilStringUint) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3620,7 +3620,7 @@ func (UnimplementedHandler) TestRequestStringEmailNullableArrayArray(ctx context // TestRequestStringFloat32 implements test_request_string_float32 operation. // // POST /test_request_string_float32 -func (UnimplementedHandler) TestRequestStringFloat32(ctx context.Context, req OptFloat32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat32(ctx context.Context, req OptStringFloat32) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3641,28 +3641,28 @@ func (UnimplementedHandler) TestRequestStringFloat32ArrayArray(ctx context.Conte // TestRequestStringFloat32Nullable implements test_request_string_float32_nullable operation. // // POST /test_request_string_float32_nullable -func (UnimplementedHandler) TestRequestStringFloat32Nullable(ctx context.Context, req OptNilFloat32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat32Nullable(ctx context.Context, req OptNilStringFloat32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringFloat32NullableArray implements test_request_string_float32_nullable_array operation. // // POST /test_request_string_float32_nullable_array -func (UnimplementedHandler) TestRequestStringFloat32NullableArray(ctx context.Context, req []NilFloat32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat32NullableArray(ctx context.Context, req []NilStringFloat32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringFloat32NullableArrayArray implements test_request_string_float32_nullable_array_array operation. // // POST /test_request_string_float32_nullable_array_array -func (UnimplementedHandler) TestRequestStringFloat32NullableArrayArray(ctx context.Context, req [][]NilFloat32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat32NullableArrayArray(ctx context.Context, req [][]NilStringFloat32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringFloat64 implements test_request_string_float64 operation. // // POST /test_request_string_float64 -func (UnimplementedHandler) TestRequestStringFloat64(ctx context.Context, req OptFloat64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat64(ctx context.Context, req OptStringFloat64) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3683,21 +3683,21 @@ func (UnimplementedHandler) TestRequestStringFloat64ArrayArray(ctx context.Conte // TestRequestStringFloat64Nullable implements test_request_string_float64_nullable operation. // // POST /test_request_string_float64_nullable -func (UnimplementedHandler) TestRequestStringFloat64Nullable(ctx context.Context, req OptNilFloat64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat64Nullable(ctx context.Context, req OptNilStringFloat64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringFloat64NullableArray implements test_request_string_float64_nullable_array operation. // // POST /test_request_string_float64_nullable_array -func (UnimplementedHandler) TestRequestStringFloat64NullableArray(ctx context.Context, req []NilFloat64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat64NullableArray(ctx context.Context, req []NilStringFloat64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringFloat64NullableArrayArray implements test_request_string_float64_nullable_array_array operation. // // POST /test_request_string_float64_nullable_array_array -func (UnimplementedHandler) TestRequestStringFloat64NullableArrayArray(ctx context.Context, req [][]NilFloat64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringFloat64NullableArrayArray(ctx context.Context, req [][]NilStringFloat64) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3788,14 +3788,14 @@ func (UnimplementedHandler) TestRequestStringIPNullableArrayArray(ctx context.Co // TestRequestStringInt implements test_request_string_int operation. // // POST /test_request_string_int -func (UnimplementedHandler) TestRequestStringInt(ctx context.Context, req OptInt) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt(ctx context.Context, req OptStringInt) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringInt16 implements test_request_string_int16 operation. // // POST /test_request_string_int16 -func (UnimplementedHandler) TestRequestStringInt16(ctx context.Context, req OptInt16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt16(ctx context.Context, req OptStringInt16) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3816,21 +3816,21 @@ func (UnimplementedHandler) TestRequestStringInt16ArrayArray(ctx context.Context // TestRequestStringInt16Nullable implements test_request_string_int16_nullable operation. // // POST /test_request_string_int16_nullable -func (UnimplementedHandler) TestRequestStringInt16Nullable(ctx context.Context, req OptNilInt16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt16Nullable(ctx context.Context, req OptNilStringInt16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringInt16NullableArray implements test_request_string_int16_nullable_array operation. // // POST /test_request_string_int16_nullable_array -func (UnimplementedHandler) TestRequestStringInt16NullableArray(ctx context.Context, req []NilInt16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt16NullableArray(ctx context.Context, req []NilStringInt16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringInt16NullableArrayArray implements test_request_string_int16_nullable_array_array operation. // // POST /test_request_string_int16_nullable_array_array -func (UnimplementedHandler) TestRequestStringInt16NullableArrayArray(ctx context.Context, req [][]NilInt16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt16NullableArrayArray(ctx context.Context, req [][]NilStringInt16) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3921,7 +3921,7 @@ func (UnimplementedHandler) TestRequestStringInt64NullableArrayArray(ctx context // TestRequestStringInt8 implements test_request_string_int8 operation. // // POST /test_request_string_int8 -func (UnimplementedHandler) TestRequestStringInt8(ctx context.Context, req OptInt8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt8(ctx context.Context, req OptStringInt8) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3942,21 +3942,21 @@ func (UnimplementedHandler) TestRequestStringInt8ArrayArray(ctx context.Context, // TestRequestStringInt8Nullable implements test_request_string_int8_nullable operation. // // POST /test_request_string_int8_nullable -func (UnimplementedHandler) TestRequestStringInt8Nullable(ctx context.Context, req OptNilInt8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt8Nullable(ctx context.Context, req OptNilStringInt8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringInt8NullableArray implements test_request_string_int8_nullable_array operation. // // POST /test_request_string_int8_nullable_array -func (UnimplementedHandler) TestRequestStringInt8NullableArray(ctx context.Context, req []NilInt8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt8NullableArray(ctx context.Context, req []NilStringInt8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringInt8NullableArrayArray implements test_request_string_int8_nullable_array_array operation. // // POST /test_request_string_int8_nullable_array_array -func (UnimplementedHandler) TestRequestStringInt8NullableArrayArray(ctx context.Context, req [][]NilInt8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringInt8NullableArrayArray(ctx context.Context, req [][]NilStringInt8) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -3977,21 +3977,21 @@ func (UnimplementedHandler) TestRequestStringIntArrayArray(ctx context.Context, // TestRequestStringIntNullable implements test_request_string_int_nullable operation. // // POST /test_request_string_int_nullable -func (UnimplementedHandler) TestRequestStringIntNullable(ctx context.Context, req OptNilInt) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringIntNullable(ctx context.Context, req OptNilStringInt) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringIntNullableArray implements test_request_string_int_nullable_array operation. // // POST /test_request_string_int_nullable_array -func (UnimplementedHandler) TestRequestStringIntNullableArray(ctx context.Context, req []NilInt) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringIntNullableArray(ctx context.Context, req []NilStringInt) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringIntNullableArrayArray implements test_request_string_int_nullable_array_array operation. // // POST /test_request_string_int_nullable_array_array -func (UnimplementedHandler) TestRequestStringIntNullableArrayArray(ctx context.Context, req [][]NilInt) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringIntNullableArrayArray(ctx context.Context, req [][]NilStringInt) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -4271,14 +4271,14 @@ func (UnimplementedHandler) TestRequestStringUUIDNullableArrayArray(ctx context. // TestRequestStringUint implements test_request_string_uint operation. // // POST /test_request_string_uint -func (UnimplementedHandler) TestRequestStringUint(ctx context.Context, req OptUint) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint(ctx context.Context, req OptStringUint) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint16 implements test_request_string_uint16 operation. // // POST /test_request_string_uint16 -func (UnimplementedHandler) TestRequestStringUint16(ctx context.Context, req OptUint16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint16(ctx context.Context, req OptStringUint16) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -4299,28 +4299,28 @@ func (UnimplementedHandler) TestRequestStringUint16ArrayArray(ctx context.Contex // TestRequestStringUint16Nullable implements test_request_string_uint16_nullable operation. // // POST /test_request_string_uint16_nullable -func (UnimplementedHandler) TestRequestStringUint16Nullable(ctx context.Context, req OptNilUint16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint16Nullable(ctx context.Context, req OptNilStringUint16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint16NullableArray implements test_request_string_uint16_nullable_array operation. // // POST /test_request_string_uint16_nullable_array -func (UnimplementedHandler) TestRequestStringUint16NullableArray(ctx context.Context, req []NilUint16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint16NullableArray(ctx context.Context, req []NilStringUint16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint16NullableArrayArray implements test_request_string_uint16_nullable_array_array operation. // // POST /test_request_string_uint16_nullable_array_array -func (UnimplementedHandler) TestRequestStringUint16NullableArrayArray(ctx context.Context, req [][]NilUint16) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint16NullableArrayArray(ctx context.Context, req [][]NilStringUint16) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint32 implements test_request_string_uint32 operation. // // POST /test_request_string_uint32 -func (UnimplementedHandler) TestRequestStringUint32(ctx context.Context, req OptUint32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint32(ctx context.Context, req OptStringUint32) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -4341,28 +4341,28 @@ func (UnimplementedHandler) TestRequestStringUint32ArrayArray(ctx context.Contex // TestRequestStringUint32Nullable implements test_request_string_uint32_nullable operation. // // POST /test_request_string_uint32_nullable -func (UnimplementedHandler) TestRequestStringUint32Nullable(ctx context.Context, req OptNilUint32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint32Nullable(ctx context.Context, req OptNilStringUint32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint32NullableArray implements test_request_string_uint32_nullable_array operation. // // POST /test_request_string_uint32_nullable_array -func (UnimplementedHandler) TestRequestStringUint32NullableArray(ctx context.Context, req []NilUint32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint32NullableArray(ctx context.Context, req []NilStringUint32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint32NullableArrayArray implements test_request_string_uint32_nullable_array_array operation. // // POST /test_request_string_uint32_nullable_array_array -func (UnimplementedHandler) TestRequestStringUint32NullableArrayArray(ctx context.Context, req [][]NilUint32) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint32NullableArrayArray(ctx context.Context, req [][]NilStringUint32) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint64 implements test_request_string_uint64 operation. // // POST /test_request_string_uint64 -func (UnimplementedHandler) TestRequestStringUint64(ctx context.Context, req OptUint64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint64(ctx context.Context, req OptStringUint64) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -4383,28 +4383,28 @@ func (UnimplementedHandler) TestRequestStringUint64ArrayArray(ctx context.Contex // TestRequestStringUint64Nullable implements test_request_string_uint64_nullable operation. // // POST /test_request_string_uint64_nullable -func (UnimplementedHandler) TestRequestStringUint64Nullable(ctx context.Context, req OptNilUint64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint64Nullable(ctx context.Context, req OptNilStringUint64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint64NullableArray implements test_request_string_uint64_nullable_array operation. // // POST /test_request_string_uint64_nullable_array -func (UnimplementedHandler) TestRequestStringUint64NullableArray(ctx context.Context, req []NilUint64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint64NullableArray(ctx context.Context, req []NilStringUint64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint64NullableArrayArray implements test_request_string_uint64_nullable_array_array operation. // // POST /test_request_string_uint64_nullable_array_array -func (UnimplementedHandler) TestRequestStringUint64NullableArrayArray(ctx context.Context, req [][]NilUint64) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint64NullableArrayArray(ctx context.Context, req [][]NilStringUint64) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint8 implements test_request_string_uint8 operation. // // POST /test_request_string_uint8 -func (UnimplementedHandler) TestRequestStringUint8(ctx context.Context, req OptUint8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint8(ctx context.Context, req OptStringUint8) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -4425,21 +4425,21 @@ func (UnimplementedHandler) TestRequestStringUint8ArrayArray(ctx context.Context // TestRequestStringUint8Nullable implements test_request_string_uint8_nullable operation. // // POST /test_request_string_uint8_nullable -func (UnimplementedHandler) TestRequestStringUint8Nullable(ctx context.Context, req OptNilUint8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint8Nullable(ctx context.Context, req OptNilStringUint8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint8NullableArray implements test_request_string_uint8_nullable_array operation. // // POST /test_request_string_uint8_nullable_array -func (UnimplementedHandler) TestRequestStringUint8NullableArray(ctx context.Context, req []NilUint8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint8NullableArray(ctx context.Context, req []NilStringUint8) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUint8NullableArrayArray implements test_request_string_uint8_nullable_array_array operation. // // POST /test_request_string_uint8_nullable_array_array -func (UnimplementedHandler) TestRequestStringUint8NullableArrayArray(ctx context.Context, req [][]NilUint8) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUint8NullableArrayArray(ctx context.Context, req [][]NilStringUint8) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -4460,21 +4460,21 @@ func (UnimplementedHandler) TestRequestStringUintArrayArray(ctx context.Context, // TestRequestStringUintNullable implements test_request_string_uint_nullable operation. // // POST /test_request_string_uint_nullable -func (UnimplementedHandler) TestRequestStringUintNullable(ctx context.Context, req OptNilUint) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUintNullable(ctx context.Context, req OptNilStringUint) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUintNullableArray implements test_request_string_uint_nullable_array operation. // // POST /test_request_string_uint_nullable_array -func (UnimplementedHandler) TestRequestStringUintNullableArray(ctx context.Context, req []NilUint) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUintNullableArray(ctx context.Context, req []NilStringUint) (r *Error, _ error) { return r, ht.ErrNotImplemented } // TestRequestStringUintNullableArrayArray implements test_request_string_uint_nullable_array_array operation. // // POST /test_request_string_uint_nullable_array_array -func (UnimplementedHandler) TestRequestStringUintNullableArrayArray(ctx context.Context, req [][]NilUint) (r *Error, _ error) { +func (UnimplementedHandler) TestRequestStringUintNullableArrayArray(ctx context.Context, req [][]NilStringUint) (r *Error, _ error) { return r, ht.ErrNotImplemented } @@ -5972,21 +5972,21 @@ func (UnimplementedHandler) TestResponseStringFloat32ArrayArray(ctx context.Cont // TestResponseStringFloat32Nullable implements test_response_string_float32_nullable operation. // // POST /test_response_string_float32_nullable -func (UnimplementedHandler) TestResponseStringFloat32Nullable(ctx context.Context, req string) (r NilFloat32, _ error) { +func (UnimplementedHandler) TestResponseStringFloat32Nullable(ctx context.Context, req string) (r NilStringFloat32, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringFloat32NullableArray implements test_response_string_float32_nullable_array operation. // // POST /test_response_string_float32_nullable_array -func (UnimplementedHandler) TestResponseStringFloat32NullableArray(ctx context.Context, req string) (r []NilFloat32, _ error) { +func (UnimplementedHandler) TestResponseStringFloat32NullableArray(ctx context.Context, req string) (r []NilStringFloat32, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringFloat32NullableArrayArray implements test_response_string_float32_nullable_array_array operation. // // POST /test_response_string_float32_nullable_array_array -func (UnimplementedHandler) TestResponseStringFloat32NullableArrayArray(ctx context.Context, req string) (r [][]NilFloat32, _ error) { +func (UnimplementedHandler) TestResponseStringFloat32NullableArrayArray(ctx context.Context, req string) (r [][]NilStringFloat32, _ error) { return r, ht.ErrNotImplemented } @@ -6014,21 +6014,21 @@ func (UnimplementedHandler) TestResponseStringFloat64ArrayArray(ctx context.Cont // TestResponseStringFloat64Nullable implements test_response_string_float64_nullable operation. // // POST /test_response_string_float64_nullable -func (UnimplementedHandler) TestResponseStringFloat64Nullable(ctx context.Context, req string) (r NilFloat64, _ error) { +func (UnimplementedHandler) TestResponseStringFloat64Nullable(ctx context.Context, req string) (r NilStringFloat64, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringFloat64NullableArray implements test_response_string_float64_nullable_array operation. // // POST /test_response_string_float64_nullable_array -func (UnimplementedHandler) TestResponseStringFloat64NullableArray(ctx context.Context, req string) (r []NilFloat64, _ error) { +func (UnimplementedHandler) TestResponseStringFloat64NullableArray(ctx context.Context, req string) (r []NilStringFloat64, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringFloat64NullableArrayArray implements test_response_string_float64_nullable_array_array operation. // // POST /test_response_string_float64_nullable_array_array -func (UnimplementedHandler) TestResponseStringFloat64NullableArrayArray(ctx context.Context, req string) (r [][]NilFloat64, _ error) { +func (UnimplementedHandler) TestResponseStringFloat64NullableArrayArray(ctx context.Context, req string) (r [][]NilStringFloat64, _ error) { return r, ht.ErrNotImplemented } @@ -6147,21 +6147,21 @@ func (UnimplementedHandler) TestResponseStringInt16ArrayArray(ctx context.Contex // TestResponseStringInt16Nullable implements test_response_string_int16_nullable operation. // // POST /test_response_string_int16_nullable -func (UnimplementedHandler) TestResponseStringInt16Nullable(ctx context.Context, req string) (r NilInt16, _ error) { +func (UnimplementedHandler) TestResponseStringInt16Nullable(ctx context.Context, req string) (r NilStringInt16, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringInt16NullableArray implements test_response_string_int16_nullable_array operation. // // POST /test_response_string_int16_nullable_array -func (UnimplementedHandler) TestResponseStringInt16NullableArray(ctx context.Context, req string) (r []NilInt16, _ error) { +func (UnimplementedHandler) TestResponseStringInt16NullableArray(ctx context.Context, req string) (r []NilStringInt16, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringInt16NullableArrayArray implements test_response_string_int16_nullable_array_array operation. // // POST /test_response_string_int16_nullable_array_array -func (UnimplementedHandler) TestResponseStringInt16NullableArrayArray(ctx context.Context, req string) (r [][]NilInt16, _ error) { +func (UnimplementedHandler) TestResponseStringInt16NullableArrayArray(ctx context.Context, req string) (r [][]NilStringInt16, _ error) { return r, ht.ErrNotImplemented } @@ -6273,21 +6273,21 @@ func (UnimplementedHandler) TestResponseStringInt8ArrayArray(ctx context.Context // TestResponseStringInt8Nullable implements test_response_string_int8_nullable operation. // // POST /test_response_string_int8_nullable -func (UnimplementedHandler) TestResponseStringInt8Nullable(ctx context.Context, req string) (r NilInt8, _ error) { +func (UnimplementedHandler) TestResponseStringInt8Nullable(ctx context.Context, req string) (r NilStringInt8, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringInt8NullableArray implements test_response_string_int8_nullable_array operation. // // POST /test_response_string_int8_nullable_array -func (UnimplementedHandler) TestResponseStringInt8NullableArray(ctx context.Context, req string) (r []NilInt8, _ error) { +func (UnimplementedHandler) TestResponseStringInt8NullableArray(ctx context.Context, req string) (r []NilStringInt8, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringInt8NullableArrayArray implements test_response_string_int8_nullable_array_array operation. // // POST /test_response_string_int8_nullable_array_array -func (UnimplementedHandler) TestResponseStringInt8NullableArrayArray(ctx context.Context, req string) (r [][]NilInt8, _ error) { +func (UnimplementedHandler) TestResponseStringInt8NullableArrayArray(ctx context.Context, req string) (r [][]NilStringInt8, _ error) { return r, ht.ErrNotImplemented } @@ -6308,21 +6308,21 @@ func (UnimplementedHandler) TestResponseStringIntArrayArray(ctx context.Context, // TestResponseStringIntNullable implements test_response_string_int_nullable operation. // // POST /test_response_string_int_nullable -func (UnimplementedHandler) TestResponseStringIntNullable(ctx context.Context, req string) (r NilInt, _ error) { +func (UnimplementedHandler) TestResponseStringIntNullable(ctx context.Context, req string) (r NilStringInt, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringIntNullableArray implements test_response_string_int_nullable_array operation. // // POST /test_response_string_int_nullable_array -func (UnimplementedHandler) TestResponseStringIntNullableArray(ctx context.Context, req string) (r []NilInt, _ error) { +func (UnimplementedHandler) TestResponseStringIntNullableArray(ctx context.Context, req string) (r []NilStringInt, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringIntNullableArrayArray implements test_response_string_int_nullable_array_array operation. // // POST /test_response_string_int_nullable_array_array -func (UnimplementedHandler) TestResponseStringIntNullableArrayArray(ctx context.Context, req string) (r [][]NilInt, _ error) { +func (UnimplementedHandler) TestResponseStringIntNullableArrayArray(ctx context.Context, req string) (r [][]NilStringInt, _ error) { return r, ht.ErrNotImplemented } @@ -6630,21 +6630,21 @@ func (UnimplementedHandler) TestResponseStringUint16ArrayArray(ctx context.Conte // TestResponseStringUint16Nullable implements test_response_string_uint16_nullable operation. // // POST /test_response_string_uint16_nullable -func (UnimplementedHandler) TestResponseStringUint16Nullable(ctx context.Context, req string) (r NilUint16, _ error) { +func (UnimplementedHandler) TestResponseStringUint16Nullable(ctx context.Context, req string) (r NilStringUint16, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint16NullableArray implements test_response_string_uint16_nullable_array operation. // // POST /test_response_string_uint16_nullable_array -func (UnimplementedHandler) TestResponseStringUint16NullableArray(ctx context.Context, req string) (r []NilUint16, _ error) { +func (UnimplementedHandler) TestResponseStringUint16NullableArray(ctx context.Context, req string) (r []NilStringUint16, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint16NullableArrayArray implements test_response_string_uint16_nullable_array_array operation. // // POST /test_response_string_uint16_nullable_array_array -func (UnimplementedHandler) TestResponseStringUint16NullableArrayArray(ctx context.Context, req string) (r [][]NilUint16, _ error) { +func (UnimplementedHandler) TestResponseStringUint16NullableArrayArray(ctx context.Context, req string) (r [][]NilStringUint16, _ error) { return r, ht.ErrNotImplemented } @@ -6672,21 +6672,21 @@ func (UnimplementedHandler) TestResponseStringUint32ArrayArray(ctx context.Conte // TestResponseStringUint32Nullable implements test_response_string_uint32_nullable operation. // // POST /test_response_string_uint32_nullable -func (UnimplementedHandler) TestResponseStringUint32Nullable(ctx context.Context, req string) (r NilUint32, _ error) { +func (UnimplementedHandler) TestResponseStringUint32Nullable(ctx context.Context, req string) (r NilStringUint32, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint32NullableArray implements test_response_string_uint32_nullable_array operation. // // POST /test_response_string_uint32_nullable_array -func (UnimplementedHandler) TestResponseStringUint32NullableArray(ctx context.Context, req string) (r []NilUint32, _ error) { +func (UnimplementedHandler) TestResponseStringUint32NullableArray(ctx context.Context, req string) (r []NilStringUint32, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint32NullableArrayArray implements test_response_string_uint32_nullable_array_array operation. // // POST /test_response_string_uint32_nullable_array_array -func (UnimplementedHandler) TestResponseStringUint32NullableArrayArray(ctx context.Context, req string) (r [][]NilUint32, _ error) { +func (UnimplementedHandler) TestResponseStringUint32NullableArrayArray(ctx context.Context, req string) (r [][]NilStringUint32, _ error) { return r, ht.ErrNotImplemented } @@ -6714,21 +6714,21 @@ func (UnimplementedHandler) TestResponseStringUint64ArrayArray(ctx context.Conte // TestResponseStringUint64Nullable implements test_response_string_uint64_nullable operation. // // POST /test_response_string_uint64_nullable -func (UnimplementedHandler) TestResponseStringUint64Nullable(ctx context.Context, req string) (r NilUint64, _ error) { +func (UnimplementedHandler) TestResponseStringUint64Nullable(ctx context.Context, req string) (r NilStringUint64, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint64NullableArray implements test_response_string_uint64_nullable_array operation. // // POST /test_response_string_uint64_nullable_array -func (UnimplementedHandler) TestResponseStringUint64NullableArray(ctx context.Context, req string) (r []NilUint64, _ error) { +func (UnimplementedHandler) TestResponseStringUint64NullableArray(ctx context.Context, req string) (r []NilStringUint64, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint64NullableArrayArray implements test_response_string_uint64_nullable_array_array operation. // // POST /test_response_string_uint64_nullable_array_array -func (UnimplementedHandler) TestResponseStringUint64NullableArrayArray(ctx context.Context, req string) (r [][]NilUint64, _ error) { +func (UnimplementedHandler) TestResponseStringUint64NullableArrayArray(ctx context.Context, req string) (r [][]NilStringUint64, _ error) { return r, ht.ErrNotImplemented } @@ -6756,21 +6756,21 @@ func (UnimplementedHandler) TestResponseStringUint8ArrayArray(ctx context.Contex // TestResponseStringUint8Nullable implements test_response_string_uint8_nullable operation. // // POST /test_response_string_uint8_nullable -func (UnimplementedHandler) TestResponseStringUint8Nullable(ctx context.Context, req string) (r NilUint8, _ error) { +func (UnimplementedHandler) TestResponseStringUint8Nullable(ctx context.Context, req string) (r NilStringUint8, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint8NullableArray implements test_response_string_uint8_nullable_array operation. // // POST /test_response_string_uint8_nullable_array -func (UnimplementedHandler) TestResponseStringUint8NullableArray(ctx context.Context, req string) (r []NilUint8, _ error) { +func (UnimplementedHandler) TestResponseStringUint8NullableArray(ctx context.Context, req string) (r []NilStringUint8, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUint8NullableArrayArray implements test_response_string_uint8_nullable_array_array operation. // // POST /test_response_string_uint8_nullable_array_array -func (UnimplementedHandler) TestResponseStringUint8NullableArrayArray(ctx context.Context, req string) (r [][]NilUint8, _ error) { +func (UnimplementedHandler) TestResponseStringUint8NullableArrayArray(ctx context.Context, req string) (r [][]NilStringUint8, _ error) { return r, ht.ErrNotImplemented } @@ -6791,21 +6791,21 @@ func (UnimplementedHandler) TestResponseStringUintArrayArray(ctx context.Context // TestResponseStringUintNullable implements test_response_string_uint_nullable operation. // // POST /test_response_string_uint_nullable -func (UnimplementedHandler) TestResponseStringUintNullable(ctx context.Context, req string) (r NilUint, _ error) { +func (UnimplementedHandler) TestResponseStringUintNullable(ctx context.Context, req string) (r NilStringUint, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUintNullableArray implements test_response_string_uint_nullable_array operation. // // POST /test_response_string_uint_nullable_array -func (UnimplementedHandler) TestResponseStringUintNullableArray(ctx context.Context, req string) (r []NilUint, _ error) { +func (UnimplementedHandler) TestResponseStringUintNullableArray(ctx context.Context, req string) (r []NilStringUint, _ error) { return r, ht.ErrNotImplemented } // TestResponseStringUintNullableArrayArray implements test_response_string_uint_nullable_array_array operation. // // POST /test_response_string_uint_nullable_array_array -func (UnimplementedHandler) TestResponseStringUintNullableArrayArray(ctx context.Context, req string) (r [][]NilUint, _ error) { +func (UnimplementedHandler) TestResponseStringUintNullableArrayArray(ctx context.Context, req string) (r [][]NilStringUint, _ error) { return r, ht.ErrNotImplemented } diff --git a/gen/ir/type.go b/gen/ir/type.go index c3f41dda9..159f45b5b 100644 --- a/gen/ir/type.go +++ b/gen/ir/type.go @@ -218,7 +218,9 @@ func (t *Type) NamePostfix() string { return "IPv6" case "uri": return "URI" - case "int32", "int64": + case "int", "int8", "int16", "int32", "int64", + "uint", "uint8", "uint16", "uint32", "uint64", + "float32", "float64": if s.Type != jsonschema.String { return t.Primitive.String() }