All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.smithy.rpcv2Cbor.fractional-seconds.smithy Maven / Gradle / Ivy

There is a newer version: 1.52.0
Show newest version
$version: "2.0"

namespace smithy.protocoltests.rpcv2Cbor

use smithy.protocols#rpcv2Cbor
use smithy.protocoltests.shared#DateTime
use smithy.test#httpResponseTests

// These tests verify that clients can parse `DateTime` timestamps with fractional seconds.
@tags(["client-only"])
operation FractionalSeconds {
    output: FractionalSecondsOutput
}

apply FractionalSeconds @httpResponseTests([
    {
        id: "RpcV2CborDateTimeWithFractionalSeconds",
        documentation: "Ensures that clients can correctly parse timestamps with fractional seconds",
        protocol: rpcv2Cbor,
        code: 200,
        body: "v2hkYXRldGltZcH7Qcw32zgPvnf/",
        headers: {
            "smithy-protocol": "rpc-v2-cbor",
            "Content-Type": "application/cbor"
        },
        params: { datetime: 946845296.123 }
        bodyMediaType: "application/cbor",
        appliesTo: "client"
    }
])

structure FractionalSecondsOutput {
    datetime: DateTime
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy