Skip to content

Commit 5cd41b1

Browse files
bieluclaude
andcommitted
test: use implicit schema conversion for MQTT5 sessionExpiryInterval
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ccdb44e commit 5cd41b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/ByteBard.AsyncAPI.Tests/Bindings/MQTT5/MQTT5Bindings_Should.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ public void ServerBinding_SerializesSchemaAndReference(AsyncApiVersion version)
3636
{
3737
var schemaBinding = new MQTT5ServerBinding
3838
{
39-
SessionExpiryInterval = new MQTTIntegerSchema(new AsyncApiJsonSchema { Type = SchemaType.Integer }),
39+
SessionExpiryInterval = new AsyncApiJsonSchema { Type = SchemaType.Integer },
4040
};
4141
schemaBinding.SerializeAsYaml(version).Should().Contain("type: integer");
4242

4343
var referenceBinding = new MQTT5ServerBinding
4444
{
45-
SessionExpiryInterval = new MQTTIntegerSchema(new AsyncApiJsonSchemaReference("#/components/schemas/interval")),
45+
SessionExpiryInterval = new AsyncApiJsonSchemaReference("#/components/schemas/interval"),
4646
};
4747
referenceBinding.SerializeAsYaml(version).Should().Contain("#/components/schemas/interval");
4848
}

0 commit comments

Comments
 (0)