Skip to content

Remove Hashable from ServerSentEvent and ServerSentEventWithJSONData #793

@AFutureD

Description

@AFutureD

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:

  1. https://github.com/kylef/JSONSchema.swift/blob/master/Sources/JSONSchema.swift
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureNew feature.status/triageCollecting information required to triage the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions