We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would like to see if it would be possible to look at extending the definition of the custom node encoding strategy. Or create another custom type
case custom((Encodable.Type, Encoder) -> ((CodingKey) -> XMLEncoder.NodeEncoding))
What would be nice is if we can provide the Value.
case custom((Encodable.Type, Encoder) -> ((Value) -> XMLEncoder.NodeEncoding))
here is the use case. Given a node type may have attributes using different keys names, I have created a AttributeBox.
public struct Attribute<Value> { public let value: Value public init(_ value: Value) { self.value = value } } extension Attribute: Encodable where Value: Encodable { public func encode(to encoder: Encoder) throws { try self.value.encode(to: encoder) } } extension Attribute: Decodable where Value: Decodable { public init(from decoder: Decoder) throws { self.init(try Value(from: decoder)) } }
So it would be nice to be able to say for Node Activity use the Type Attribute<Any> as the attribute
Activity
Attribute<Any>
The text was updated successfully, but these errors were encountered:
looks like pull #73 covers this
Sorry, something went wrong.
@khoogheem Sorry for being late, as #73 was merged, did that resolve your issue?
Yep that looks like it should..
khoogheem
No branches or pull requests
Would like to see if it would be possible to look at extending the definition of the custom node encoding strategy. Or create another custom type
What would be nice is if we can provide the Value.
here is the use case. Given a node type may have attributes using different keys names, I have created a AttributeBox.
So it would be nice to be able to say for Node
Activity
use the TypeAttribute<Any>
as the attributeThe text was updated successfully, but these errors were encountered: