Conversation
…n serializeValueAsJson Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
|
@copilot This fix is overbroad, causing 3 tests that use known scalars to fail. Please ensure that all tests are passing. Also, please add a test that checks the openapi3 serialization of a default value for a model property, similar to the one shown in the repro. |
…reserve args[0] behavior Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Fixed in e2f42d9. The previous fix was too broad — it dropped The correct fix only returns Also added the openapi3 test that checks Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot if the scalar is not a known scalar, the first argument to its constructor should not be used to define the default value (or the example value). There is no way to represent the value returned from a scalar constructor, unless the scalar constructor is from a known scalar type. To validate this fix, create a test in which a scalar that extends no other scalar defines a constructor with a string type argument. Validate that when an application of this constructor is used in an example, or as a default value, that the resulting value is undefined and there is no diagnostic emitted. |
|
@copilot Please pull in the latest changes, update dependencies and validate that all ci checks pass. |
…ors in serializeValueAsJson Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Fixed in d3d86c9. The existing openapi3 test that expected Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot your branch is still out of date with the base branch (main) please pull the latest changes, reinstall, rebuild, and update the pr |
Done in b62632b. Merged latest main, ran
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
The branch is already up to date with main — commit b62632b (from the previous session) merged all of main's commits. |
|
@copilot your merge creataed problems in this PR - this PR is now changing several files in the csharp emitter project inadvertently. Please rebase your changes on the tip of the main branch and ensure that no file changes you didn't need for your fix are included |
Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Fixed in c6d28ef. The inadvertent csharp file changes from the previous merge commit have been reverted. The PR now only touches the 4 files it should: the compiler fix ( |
|
/azp run typespec - PR Tools |
|
Azure Pipelines successfully started running 1 pipeline(s). |
.chronus/changes/fix-ice-serialize-value-as-json-custom-scalar-2026-2-25-20-0-0.md
Outdated
Show resolved
Hide resolved
…-2026-2-25-20-0-0.md Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.