pact-foundation / pact-support

Shared code for Pact gems
MIT License
7 stars 46 forks source link

Need to be able to match 'pact-specification' as well as 'pactSpecification' for versioning information #62

Closed psbanka closed 6 years ago

psbanka commented 6 years ago

The Ruby parser for a pact file does not properly pull version information from a pact file generated from ember-cli-pact. That project creates a meta tag along these lines:

  "metadata": {
    "pact-specification": {
      "version": "3.0.0"
    }
  },

However, the http_consumer_contract-parser.rb file only respects the key, "pactSpecification" relevant code here. Looking at the JSON Schema file here, it appears that both "pact-specification" and "pactSpecification" are acceptable keys. Therefore it seems to me that this library should support either?

bethesque commented 6 years ago

Please use pactSpecification.

psbanka commented 6 years ago

Will do; thanks.