swift-openapi-generator
swift-openapi-generator copied to clipboard
Remove `Hashable` from `ServerSentEvent` and `ServerSentEventWithJSONData`
Motivation
In ServerSentEventWithJSONData, the generic JSONDataType may not guaranteed to conform to Hashable.
For example, there are a lot of packages can be found on GitHub for JsonSchema, and they all do not conform to Hashable.
And, the decoder or deserializer may not need Hashable constraint.
some packages list below:
- https://github.com/kylef/JSONSchema.swift/blob/master/Sources/JSONSchema.swift
- https://github.com/objecthub/swift-dynamicjson/blob/main/Sources/DynamicJSON/JSONSchema/JSONSchema.swift
Proposed solution
Remove Hashable from ServerSentEvent and ServerSentEventWithJSONData.
Alternatives considered
No response
Additional information
No response