question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Contract test - additional properties

See original GitHub issue

“additionalProperties: false” is a powerful OpenAPI property, since it allows you to specify if your API has an evolving response or fixed response, when it comes to the properties documented.

This feature would allow Portman to inject/overwrite the “additionalProperties” setting for the response object, which is using in the Schema validation of a response.

Proposal:

     {
        "openApiOperation": "*::/crm/*",
        "schemaValidation": {
          "enabled": true,
          "additionalProperties": false
        }
      }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thim81commented, Dec 21, 2021

@savage-alex Are you OK, that we close the issue?

1reaction
savage-alexcommented, Dec 21, 2021

Ignore me. It was an actual additional property!! Works great

Read more comments on GitHub >

github_iconTop Results From Across the Web

Property Tests + Contracts = Integration Tests - Hillel Wayne
Contracts are simple and allow for complex conditionals, but you need to test them over a wide space to confirm them. · Property-Based...
Read more >
Effective Smart Contract Testing: Property-Based Testing
Property -based testing is a powerful tool for locating edge cases and discovering faulty assumptions within your code. The key idea behind property-based ......
Read more >
What is Contract Testing & How is it Used? - Pactflow
Contract testing is a methodology for ensuring that two separate systems (such as two microservices) are compatible and can communicate with ...
Read more >
Testing resource types using contract tests - CloudFormation ...
By default, the CloudFormation CLI performs resource contract tests using input properties generated from the patterns you define in your resource type schema....
Read more >
Plutus.Contract.Test.ContractModel
A ContractModel instance captures everything that is needed to generate and run tests of a contract or set of contracts. It specifies among...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found