Skip to content

Conversation

@timotheeguerin
Copy link
Member

fix #9394

@microsoft-github-policy-service microsoft-github-policy-service bot added compiler:core Issues for @typespec/compiler emitter:openapi3 Issues for @typespec/openapi3 emitter labels Jan 27, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/compiler@9475
npm i https://pkg.pr.new/microsoft/typespec/@typespec/openapi@9475
npm i https://pkg.pr.new/microsoft/typespec/@typespec/openapi3@9475

commit: 14f42e4

@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/openapi3
Show changes

@typespec/openapi3 - fix ✏️

Handle use of .now() constructor on date time types in examples and default.

@typespec/compiler - feature ✏️

[API] serializeValueAsJson throws a UnsupportedScalarConstructorError for unsupported scalar constructor instead of crashing

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 27, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@timotheeguerin timotheeguerin added this pull request to the merge queue Jan 29, 2026
Merged via the queue into microsoft:main with commit a255931 Jan 29, 2026
29 checks passed
@timotheeguerin timotheeguerin deleted the fix/unknown-scalar-constructors branch January 29, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:core Issues for @typespec/compiler emitter:openapi3 Issues for @typespec/openapi3 emitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Emitter "@typespec/openapi3" crashes when using Date.now() as query string default value.

3 participants