-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Because Maths: invalid pact specification version supplied: 5 #1185
Comments
Isn't this the counterpart of the /**
* Enum defining the pact specification versions supported by the library
*/
typedef enum PactSpecification {
/**
* Unknown or unsupported specification version
*/
PactSpecification_Unknown,
/**
* First version of the pact specification
*/
PactSpecification_V1,
/**
* Second version of the pact specification
*/
PactSpecification_V1_1,
/**
* Version two of the pact specification
*/
PactSpecification_V2,
/**
* Version three of the pact specification
*/
PactSpecification_V3,
/**
* Version four of the pact specification
*/
PactSpecification_V4,
} PactSpecification; In which case |
No, the issue is that PactV3Options has /**
* Specification version to use
*/
spec?: SpecificationVersion; https://github.com/pact-foundation/pact-js/blob/master/src/v3/types.ts#L102 If you try use that enum value SPECIFICATION_VERSION_V4 , you get that error. |
It seems correct to me to use Lines 3 to 21 in 59081f2
|
Can you please show the |
I can see the problem, I think. The type It accepts an integer that maps logically to each version ( In any case, it's an unfortunate inconsistency in the interface. There is not yet a V4 version of Asynchronous Messages that aligns with the most recent DSL. TL;DR - use
Where are you getting that type for? That's only used in the |
Ah, you are correct. // Specification Version (should be 3 for messages)
spec?: number; This is confusing. Also not having V4 support for asynchronous messages. |
Yeah, I have an open branch with partial support for the updated asynchronous interface (this was the original one that supported the Ruby messaging API, and doesn't support plugins etc.). I'll update the comment for now. |
I'll close this and open a feature request for Async Messages |
I got me some of this:

I assume this is just for the hell of it:
https://github.com/pact-foundation/pact-js/blob/master/src/v3/types.ts#L3C1-L7C2
The text was updated successfully, but these errors were encountered: