You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public enum Headers {
public struct ClientType: Codable {
public var clientType: WSClientType
public enum CodingKeys: String, CodingKey {
case clientType = "clientType"
}
}
}
Where WSClientType is an enum.
Then, I use it :
headers: .all(of:.type(Headers.ClientType.self)),
But I have a message in Swagger :
Resolver error at paths./pledger/auth/checkAccessToken.post.parameters.2.schema.$ref
Could not resolve reference: Could not resolve pointer: /components/schemas/WSClientType does not exist in document
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
How can I use enum values for headers definition.
I have defined this :
public enum Headers {
public struct ClientType: Codable {
public var clientType: WSClientType
public enum CodingKeys: String, CodingKey {
}
Where WSClientType is an enum.
Then, I use it :
headers: .all(of:.type(Headers.ClientType.self)),
But I have a message in Swagger :
Resolver error at paths./pledger/auth/checkAccessToken.post.parameters.2.schema.$ref
Could not resolve reference: Could not resolve pointer: /components/schemas/WSClientType does not exist in document
Any idea ?
Beta Was this translation helpful? Give feedback.
All reactions