Skip to content

Sync typespec-java core: expose required-fields-as-ctor-args option (typespec#11380) - #5043

Merged
Weidong Xu (weidongxu-microsoft) merged 2 commits into
release/july-2026from
sync/typespec-java-11380-july-2026
Jul 24, 2026
Merged

Weidong Xu (weidongxu-microsoft) merged 2 commits into
release/july-2026from
sync/typespec-java-11380-july-2026

Conversation

@weidongxu-microsoft

Copy link
Copy Markdown
Member

Bumps the pinned core commit to include microsoft/typespec#11380, which exposes the + '
equired-fields-as-ctor-args' + emitter option to + ' spconfig.yaml' + for data-plane (default remains + ' rue' + ).

Changes

    • 'core-commit.json' + pin: + '43ff0041' + -> + '�c09e28b' + (HEAD of core + 'main' + , the #11380 merge commit).
  • Ran + 'SyncTests.ps1' + against the new pin: no test-suite (src/tsp) changes between the previous pin and this commit — #11380 only touches emitter/generator source, which is copied at build time.
  • Added chronus + ' ix' + change (next version: 0.45.10).
  • 'Generate.ps1' + / + 'Copy-Sources.ps1' + need no changes: #11380 is a purely additive emitter option with no spec-generation impact.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7

…typespec#11380)

Bump core-commit.json pin to ec09e28b3d2990734d1b54ebad85411adb148d12, which
includes microsoft/typespec#11380 exposing the required-fields-as-ctor-args
emitter option to tspconfig.yaml (default remains true). No test-suite changes
between the previous pin and this commit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
@azure-sdk-automation

azure-sdk-automation Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • ❌@azure-tools/typespec-autorest

The following packages have already been documented:

  • ✅ @azure-tools/typespec-client-generator-core
  • ✅ @azure-tools/typespec-java
Show changes

@azure-tools/typespec-client-generator-core - feature ✏️

add sseMetadata with per-event information for server-sent event (SSE) streams

@azure-tools/typespec-java - internal ✏️

Make the core-commit.json pin authoritative in CoreCommit.ps1: always build the Java emitter from exactly the pinned core commit via git archive instead of gating on a merge-base ancestry check that a shallow CI clone cannot evaluate.

@azure-tools/typespec-java - fix ✏️

Expose the required-fields-as-ctor-args emitter option in tspconfig.yaml. It controls whether required model properties are generated as constructor arguments. The default remains true.,> ,> yaml,> options:,> "@azure-tools/typespec-java":,> required-fields-as-ctor-args: false,>

@pkg-pr-new

pkg-pr-new Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-autorest@5043
npm i https://pkg.pr.new/@azure-tools/typespec-client-generator-core@5043
npm i https://pkg.pr.new/@azure-tools/typespec-java@5043

commit: 73c75ab

…a options.ts

Document the required-fields-as-ctor-args emitter option (exposed upstream in
microsoft/typespec#11380) in the maintained Azure emitter options schema, but
keep it commented out so users do not set it unless explicitly told to. It is a
backward-compatibility option; the default (true) is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

@weidongxu-microsoft
Weidong Xu (weidongxu-microsoft) merged commit ad13d15 into release/july-2026 Jul 24, 2026
29 checks passed
@weidongxu-microsoft
Weidong Xu (weidongxu-microsoft) deleted the sync/typespec-java-11380-july-2026 branch July 24, 2026 05:40
Weidong Xu (weidongxu-microsoft) added a commit that referenced this pull request Jul 24, 2026
Version bump for the typespec-java hotfix **0.45.10**, following the
sync in #5043.

## Included changes (consumed from  + '.chronus/changes' + )
- **fix**: Expose the + ' equired-fields-as-ctor-args' + emitter option
in + ' spconfig.yaml' + (microsoft/typespec#11380). Default remains + '
rue' + .
- **internal**: Make the + 'core-commit.json' + pin authoritative in +
'CoreCommit.ps1' + (#5016).

## Files
-  + 'packages/typespec-java/package.json' +  -> 0.45.10
-  + 'packages/typespec-java/CHANGELOG.md' + 
- + 'packages/typespec-java/emitter-tests/package.json' + -> 0.45.10
(version + + '.tgz' + dep)
- Deleted the two consumed typespec-java change files

Only + '@azure-tools/typespec-java' + is bumped. Non-java pending change
files (tcgc, benchmark, playground, website) were intentionally left
untouched. The + 'core' + submodule is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
iscai-msft added a commit to iscai-msft/typespec-azure that referenced this pull request Jul 24, 2026
Backmerge of + ' elease/july-2026' + into + 'main' + for the
typespec-java **0.45.10** hotfix.

The daily auto-backmerge branch was created by Azure#5043's merge and could
not be updated when Azure#5044 merged (same-day push collision), so it was
manually fast-forwarded to the current release head ( + '

---------

Co-authored-by: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
Copilot-Session: cd6f2e08-d6d3-42ae-affd-bc71e98086f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:java Issues for @azure-tools/typespec-java emitter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants