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:
- Created 2 years ago
- Reactions:1
- Comments:12 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@savage-alex Are you OK, that we close the issue?
Ignore me. It was an actual additional property!! Works great