Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test case for XML Attribute with xml namespace on tag #689

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ apply SimpleScalarProperties @httpRequestTests([
<longValue>4</longValue>
<floatValue>5.5</floatValue>
<DoubleDribble>6.5</DoubleDribble>
<Nested xmlns:xsi="https://example.com" xsi:someName="nestedAttrValue"></Nested>
</SimpleScalarPropertiesInputOutput>
""",
bodyMediaType: "application/xml",
Expand All @@ -70,6 +71,9 @@ apply SimpleScalarProperties @httpRequestTests([
longValue: 4,
floatValue: 5.5,
doubleValue: 6.5,
Nested: {
attrField: "nestedAttrValue",
},
}
}
])
Expand All @@ -91,6 +95,7 @@ apply SimpleScalarProperties @httpResponseTests([
<longValue>4</longValue>
<floatValue>5.5</floatValue>
<DoubleDribble>6.5</DoubleDribble>
<Nested xmlns:xsi="https://example.com" xsi:someName="nestedAttrValue"></Nested>
</SimpleScalarPropertiesInputOutput>
""",
bodyMediaType: "application/xml",
Expand All @@ -109,6 +114,9 @@ apply SimpleScalarProperties @httpResponseTests([
longValue: 4,
floatValue: 5.5,
doubleValue: 6.5,
Nested: {
attrField: "nestedAttrValue",
},
}
}
])
Expand All @@ -126,6 +134,15 @@ structure SimpleScalarPropertiesInputOutput {
longValue: Long,
floatValue: Float,

Nested: NestedWithNamespace,

@xmlName("DoubleDribble")
doubleValue: Double,
}

@xmlNamespace(prefix: "xsi", uri: "https://example.com")
structure NestedWithNamespace {
@xmlAttribute
@xmlName("someName")
attrField: String,
}