2.59.3
(fix): Fix mock server test and snippet generation to skip literal properties
in object initializers when generate-literals is enabled. Previously,
the generator emitted plain string/boolean assignments for TypeLiteral
properties, causing CS0029 compilation errors. Literal properties now
rely on their = new() default initializer.
2.59.2
(fix): Fix dynamic snippet generation failing with “Endpoint does not have an
example that matches the snippet” when the endpoint has examples but the
request is a plain EndpointSnippetRequest without an id. The guard now
only validates the example match when the snippet includes an id.
2.59.1
(fix): Fix undiscriminated union variant matching in dynamic snippets selecting
incorrect variants when errors are added during conversion. The matcher
now checks whether errors were added (via errors.size() > errorsBefore)
alongside the existing isNop check, and adds a missing nop check that
was causing the first variant to be unconditionally returned. This prevents
empty objects from being returned for union fields like options in
generated code snippets.