specmatic 0.70.4 → 0.70.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -90,7 +90,7 @@ Start kafka stub. Requires an OpenAPI kafka spec in specmatic.json
90
90
  `stopKafkaStub(stub: KafkaStub)` <br />
91
91
  Stop a running kafka stub
92
92
 
93
- `verifyKafkaStub(stub: KafkaStub, topic: string, key: string, value: string)` <br />
93
+ `verifyKafkaStub(stub: KafkaStub, topic: string, value: string)` <br />
94
94
  Verify kafka message. This is invoked in tests to check on kafka side if a message expected to by pushed by a BFF api is recieved by Kafka. The Kafka stub starts a verification end point for this purpose which is invoked internally by this api.
95
95
 
96
96
  ## IDE Support
@@ -71,7 +71,7 @@ var stopKafkaStub = stub => {
71
71
  _logger.default.info("Kafka Stub: Stopped at port=".concat(stub.port, ", apiPort=").concat(stub.apiPort));
72
72
  };
73
73
  exports.stopKafkaStub = stopKafkaStub;
74
- var verifyKafkaStub = (stub, topic, key, value) => {
74
+ var verifyKafkaStub = (stub, topic, value) => {
75
75
  var verificationUrl = "http://localhost:".concat(stub.apiPort, "/_verifications");
76
76
  _logger.default.info("Kafka Verification: Url is ".concat(verificationUrl));
77
77
  return new Promise((resolve, reject) => {
@@ -83,7 +83,6 @@ var verifyKafkaStub = (stub, topic, key, value) => {
83
83
  },
84
84
  body: JSON.stringify({
85
85
  topic: topic,
86
- key: key,
87
86
  value: value
88
87
  })
89
88
  }).then(response => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specmatic",
3
- "version": "0.70.4",
3
+ "version": "0.70.5",
4
4
  "description": "Node wrapper for Specmatic",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@ const stopKafkaStub = (stub: KafkaStub) => {
71
71
  logger.info(`Kafka Stub: Stopped at port=${stub.port}, apiPort=${stub.apiPort}`);
72
72
  };
73
73
 
74
- const verifyKafkaStub = (stub: KafkaStub, topic: string, key: string, value: string) => {
74
+ const verifyKafkaStub = (stub: KafkaStub, topic: string, value: string) => {
75
75
  const verificationUrl = `http://localhost:${stub.apiPort}/_verifications`;
76
76
  logger.info(`Kafka Verification: Url is ${verificationUrl}`);
77
77
  return new Promise((resolve, reject) => {
@@ -81,7 +81,7 @@ const verifyKafkaStub = (stub: KafkaStub, topic: string, key: string, value: str
81
81
  Accept: 'application/json',
82
82
  'Content-Type': 'application/json',
83
83
  },
84
- body: JSON.stringify({ topic: topic, key: key, value: value }),
84
+ body: JSON.stringify({ topic: topic, value: value }),
85
85
  })
86
86
  .then(response => {
87
87
  if (response.status != 200) {