GitHub
01/05/2023, 5:47 PM13.0.2
• New feature - Add support for DateOnly and TimeOnly
• New feature - Add UnixDateTimeConverter.AllowPreEpoch property
• New feature - Add copy constructor to JsonSerializerSettings
• New feature - Add JsonCloneSettings with property to disable copying annotations
• Change - Add nullable annotation to JToken.ToObject(Type, JsonSerializer)
• Change - Reduced allocations by reusing boxed values
• Fix - Fixed MaxDepth when used with ToObject inside of a JsonConverter
• Fix - Fixed deserializing mismatched JToken types in properties
• Fix - Fixed merging enumerable content and validate content
• Fix - Fixed using $type with arrays of more than two dimensions
• Fix - Fixed rare race condition in name table when deserializing on device with ARM processors
• Fix - Fixed deserializing via constructor with ignored base type properties
• Fix - Fixed MaxDepth not being used with ISerializable deserialization
13.0.1
• New feature - Add JsonSelectSettings with configuration for a regex timeout
• Change - Remove portable assemblies from NuGet package
• Change - JsonReader and JsonSerializer MaxDepth defaults to 64
• Change - Change InvalidCastException to JsonSerializationException on mismatched JToken
• Fix - Fixed throwing missing member error on ignored fields
• Fix - Fixed various nullable annotations
• Fix - Fixed annotations not being copied when tokens are cloned
• Fix - Fixed naming strategy not being used when deserializing dictionary enum keys
• Fix - Fixed serializing nullable struct dictionaries
• Fix - Fixed JsonWriter.WriteToken to allow null with string token
• Fix - Fixed missing error when deserializing JToken with a contract type mismatch
• Fix - Fixed JTokenWriter when writing comment to an object
12.0.3
• New feature - Added support for nullable reference types
• New feature - Added KebabCaseNamingStrategy
• Change - Package now uses embedded package icon
• Fix - Fixed bug when merging JToken with itself
• Fix - Fixed performance of calling ICustomTypeDescriptor.GetProperties
• Fix - Fixed serializing Enumerable.Empty and empty arrays on .NET Core 3.0
• Fix - Fixed deserializing some collection types with constructor
• Fix - Fixed deserializing IImmutableSet to ImmutableHashSet instead of ImmutableSortedSet
• Fix - Fixed deserializing IImmutableDictionary to ImmutableDictionary instead of ImmutableSortedDictionary
• Fix - Fixed deserializing into constructors with more than 256 parameters
• Fix - Fixed hang when deserializing JTokenReader with preceding comment
• Fix - Fixed JSONPath scanning with nested indexer
• Fix - Fixed deserializing incomplete JSON object to JObject
• Fix - Fixed using StringEnumConverter with naming strategy and specified values
12.0.2
• New feature - Added MissingMemberHandling to JsonObjectAttribute and JsonObjectContract
• New feature - Added constructor to JTokenReader to specify initial path
• New feature - Added JsonProperty.IsRequiredSpecified
• New feature - Added JsonContract.InternalConverter... (truncated) Commits • `4fba53a` Remove prerelease for 13.0.2 • `b15df4b` Add missing headers • `789bfd3` Update to 13.0.2-beta3 • `b13717a` Add JsonCloneSettings to disable copy annotations (#2757) • `d0a328e` Fix MaxDepth not being used with ISerializable deserialization (#2736) • `aae9284` Update SDK • `bd98970` Update to 13.0.2-beta2 • `4dc9af6` Add roll forward to global.json (#2726) • `b8f4ef0` Fixing misspelling (#2698) • `cb9eed9` Fix deserializing via constructor with ignored base type properties (#2711) • Additional commits viewable in compare view Dependabot compatibility score Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.
* * *
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
• @dependabot rebase
will rebase this PR
• @dependabot recreate
will recreate this PR, overwriting any edits that have been made to it
• @dependabot merge
will merge this PR after your CI passes on it
• @dependabot squash and merge
will squash and merge this PR after your CI passes on it
• @dependabot cancel merge
will cancel a previously requested merge and block automerging
• @dependabot reopen
will reopen this PR if it is closed
• @dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
• @dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
• @dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
• @dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
• @dependabot use these labels
will set the current labels as the default for future PRs for this repo and language
• @dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language
• @dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language
• @dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.
pact-foundation/pact-net
GitHub Actions: release
GitHub Actions: release
GitHub Actions: Build and Test (dotnet) (macos-latest)
GitHub Actions: Build and Test (dotnet) (macos-latest)
GitHub Actions: Build and Test (dotnet) (ubuntu-latest)
GitHub Actions: Build and Test (dotnet) (ubuntu-latest)
GitHub Actions: Build and Test (dotnet) (windows-latest)
GitHub Actions: Build and Test (dotnet) (windows-latest)
✅ 1 other check has passed
1/9 successful checksGitHub
01/05/2023, 5:47 PM13.0.2
• New feature - Add support for DateOnly and TimeOnly
• New feature - Add UnixDateTimeConverter.AllowPreEpoch property
• New feature - Add copy constructor to JsonSerializerSettings
• New feature - Add JsonCloneSettings with property to disable copying annotations
• Change - Add nullable annotation to JToken.ToObject(Type, JsonSerializer)
• Change - Reduced allocations by reusing boxed values
• Fix - Fixed MaxDepth when used with ToObject inside of a JsonConverter
• Fix - Fixed deserializing mismatched JToken types in properties
• Fix - Fixed merging enumerable content and validate content
• Fix - Fixed using $type with arrays of more than two dimensions
• Fix - Fixed rare race condition in name table when deserializing on device with ARM processors
• Fix - Fixed deserializing via constructor with ignored base type properties
• Fix - Fixed MaxDepth not being used with ISerializable deserialization
13.0.1
• New feature - Add JsonSelectSettings with configuration for a regex timeout
• Change - Remove portable assemblies from NuGet package
• Change - JsonReader and JsonSerializer MaxDepth defaults to 64
• Change - Change InvalidCastException to JsonSerializationException on mismatched JToken
• Fix - Fixed throwing missing member error on ignored fields
• Fix - Fixed various nullable annotations
• Fix - Fixed annotations not being copied when tokens are cloned
• Fix - Fixed naming strategy not being used when deserializing dictionary enum keys
• Fix - Fixed serializing nullable struct dictionaries
• Fix - Fixed JsonWriter.WriteToken to allow null with string token
• Fix - Fixed missing error when deserializing JToken with a contract type mismatch
• Fix - Fixed JTokenWriter when writing comment to an object
12.0.3
• New feature - Added support for nullable reference types
• New feature - Added KebabCaseNamingStrategy
• Change - Package now uses embedded package icon
• Fix - Fixed bug when merging JToken with itself
• Fix - Fixed performance of calling ICustomTypeDescriptor.GetProperties
• Fix - Fixed serializing Enumerable.Empty and empty arrays on .NET Core 3.0
• Fix - Fixed deserializing some collection types with constructor
• Fix - Fixed deserializing IImmutableSet to ImmutableHashSet instead of ImmutableSortedSet
• Fix - Fixed deserializing IImmutableDictionary to ImmutableDictionary instead of ImmutableSortedDictionary
• Fix - Fixed deserializing into constructors with more than 256 parameters
• Fix - Fixed hang when deserializing JTokenReader with preceding comment
• Fix - Fixed JSONPath scanning with nested indexer
• Fix - Fixed deserializing incomplete JSON object to JObject
• Fix - Fixed using StringEnumConverter with naming strategy and specified values
12.0.2
• New feature - Added MissingMemberHandling to JsonObjectAttribute and JsonObjectContract
• New feature - Added constructor to JTokenReader to specify initial path
• New feature - Added JsonProperty.IsRequiredSpecified
• New feature - Added JsonContract.InternalConverter... (truncated) Commits • `4fba53a` Remove prerelease for 13.0.2 • `b15df4b` Add missing headers • `789bfd3` Update to 13.0.2-beta3 • `b13717a` Add JsonCloneSettings to disable copy annotations (#2757) • `d0a328e` Fix MaxDepth not being used with ISerializable deserialization (#2736) • `aae9284` Update SDK • `bd98970` Update to 13.0.2-beta2 • `4dc9af6` Add roll forward to global.json (#2726) • `b8f4ef0` Fixing misspelling (#2698) • `cb9eed9` Fix deserializing via constructor with ignored base type properties (#2711) • Additional commits viewable in compare view Dependabot compatibility score Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.
* * *
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
• @dependabot rebase
will rebase this PR
• @dependabot recreate
will recreate this PR, overwriting any edits that have been made to it
• @dependabot merge
will merge this PR after your CI passes on it
• @dependabot squash and merge
will squash and merge this PR after your CI passes on it
• @dependabot cancel merge
will cancel a previously requested merge and block automerging
• @dependabot reopen
will reopen this PR if it is closed
• @dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
• @dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
• @dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
• @dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
• @dependabot use these labels
will set the current labels as the default for future PRs for this repo and language
• @dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language
• @dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language
• @dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.
pact-foundation/pact-net
GitHub Actions: release
GitHub Actions: release
GitHub Actions: Build and Test (dotnet) (macos-latest)
GitHub Actions: Build and Test (dotnet) (ubuntu-latest)
GitHub Actions: Build and Test (dotnet) (windows-latest)
GitHub Actions: Build and Test (dotnet) (macos-latest)
GitHub Actions: Build and Test (dotnet) (ubuntu-latest)
GitHub Actions: Build and Test (dotnet) (windows-latest)
✅ 1 other check has passed
1/9 successful checksYousaf Nabi (pactflow.io)
Jay Li
01/11/2023, 1:19 AMkomathypriya
01/16/2023, 8:19 AMkomathypriya
01/16/2023, 8:28 AMkomathypriya
01/16/2023, 8:29 AMkomathypriya
01/16/2023, 8:29 AMGitHub
01/17/2023, 10:48 AMkomathypriya
01/17/2023, 5:42 PMkomathypriya
01/17/2023, 5:43 PMkomathypriya
01/17/2023, 5:43 PMkomathypriya
01/17/2023, 5:44 PMGitHub
01/17/2023, 9:00 PM<https://github.com/pact-foundation/pact-net/tree/master|master>
by adamrodger
<https://github.com/pact-foundation/pact-net/commit/f8597111f9f452010048129d16d0581e075463d3|f8597111>
- chore: Upgrade FFI to version 0.4.0
pact-foundation/pact-netDom Barnett
01/19/2023, 9:32 AMkomathypriya
01/21/2023, 6:34 PMBENJAMIN J HESS
01/24/2023, 12:06 AMGitHub
01/25/2023, 3:58 AMGitHub
01/25/2023, 12:28 PMVictor Lau
01/26/2023, 12:04 AM500
request mismatch from Pact. I'm aware that my expected request is not the same, but I am trying to write an SDK contract as a demo and reverse-engineering the request for my test setup. Deleted some actual data for privacy purposes.
"{\"error\":\"Request-Mismatch : HttpRequest { method: \\\"POST\\\", path: \\\"/\\\", query: Some({\\\"api-version\\\": [\\\"1.0\\\"]}), headers: Some({\\\"user-agent\\\": [\\\"\\\"], \\\"content-length\\\": [\\\"848\\\"], \\\"connection\\\": [\\\"Keep-Alive\\\"], \\\"authorization\\\": [\\\"Bearer Access-Token\\\"], \\\"host\\\": [\\\"127.0.0.1:59176\\\"], \\\"expect\\\": [\\\"100-continue\\\"], \\\"content-type\\\": [\\\"application/json\\\"], \\\"x-mt-secondaryid\\\": [\\\"\\\"]}), body: Present", Some(ContentType { main_type: \\\"application\\\", sub_type: \\\"json\\\", attributes: {}, suffix: None }), None), matching_rules: MatchingRules { rules: {} }, generators: Generators { categories: {} } }\"}"
GitHub
01/26/2023, 4:13 PMGitHub
01/27/2023, 10:49 AMpact.verifier.enableRedirectHandling
for Provider Verification in Pact JVM. Wondering, if there is similar configuration is Pact Net. Currently, i observe Pact Net verifier tries to handle the redirection when there is 301 status. Wondering, if we can disable such behaviour.
Using PactNet Version="4.3.0"
From Pact JVM docs:
Screenshot 2023-01-27 at 17 44 03▾
Eddie Stanley
02/01/2023, 10:43 PMVerify
on our IPactVerifierSource
, we interop into the Rust code which actually verifies the interations. When verifying a given interaction, what is the sequence of events?
Specfically, my question is what happens if the interaction is missing the providerState
key - will it still call the provider states endpoint or will it skip that and go directly to making the request?
We're on version 4.1.0 of PactNet if it's relevant.GitHub
02/03/2023, 3:22 PM<https://github.com/pact-foundation/pact-net/tree/master|master>
by YOU54F
<https://github.com/pact-foundation/pact-net/commit/7384588090b9c058727b4ad5532bc5fa53cd6c94|73845880>
- chore: /s/Pactflow/PactFlow (#440)
pact-foundation/pact-netGazal Gafoor
02/04/2023, 1:00 AMSteven Ng
02/06/2023, 5:00 AM[Fact]
public async void Ensure_Api_Honours_PactWithConsumers()
{
var config = new PactVerifierConfig
{
Outputters = new List<IOutput>
{
new XUnitOutput(_output),
},
LogLevel = PactNet.PactLogLevel.Trace
};
IPactVerifier pactVerifier = new PactVerifier(config);
Assert.True(PactInvoker.IsRunning(out _));
pactVerifier
.ServiceProvider("DemoMicroservice", _serverUri)
.WithPactBrokerSource(PactBrokerUrl,
(c) =>
{
c.TokenAuthentication(PactBrokerToken);
c.ConsumerTags(PactBrokerConsumerTags);
c.PublishResults(PactBrokerProviderVersion);
c.ProviderBranch(PactBrokerProviderBranch);
c.ProviderTags(PactBrokerProviderTags);
})
.WithProviderStateUrl(new Uri(_serverUri, ProviderStatesEndpoint))
.Verify();
}
Pallavi Anirban Bose
02/08/2023, 1:36 PMGitHub
02/12/2023, 2:21 PM<https://github.com/pact-foundation/pact-net/tree/master|master>
by adamrodger
<https://github.com/pact-foundation/pact-net/commit/18e00c49a27a411aff715e62a09f3b78b0a737a0|18e00c49>
- chore: Bump version to 4.4.0
pact-foundation/pact-netGitHub
02/12/2023, 2:28 PMGitHub
02/12/2023, 3:16 PM<https://github.com/pact-foundation/pact-net/tree/master|master>
by adamrodger
<https://github.com/pact-foundation/pact-net/commit/c2ec3cc4b1a4f65b99aaaa7625af49bf6fbc4700|c2ec3cc4>
- feat: Configure provider state endpoint options
pact-foundation/pact-net