Skip to content

Conversation

@FionaBronwen
Copy link
Contributor

Summary

The isArrayModelType and isRecordModelType functions accepted a program parameter that was never used. This PR removes the unused parameter to simplify the API.

Additionally, this PR fixes isRecordModelType to correctly return RecordModelType instead of ArrayModelType.

API Migration

- isArrayModelType(program, type)
+ isArrayModelType(type)

- isRecordModelType(program, type)
+ isRecordModelType(type)

Packages Updated

  • @typespec/compiler
  • @typespec/http
  • @typespec/openapi3
  • @typespec/tspd
  • @typespec/http-server-js
  • @typespec/http-server-csharp

@microsoft-github-policy-service microsoft-github-policy-service bot added compiler:core Issues for @typespec/compiler lib:http tspd Issues for the tspd tool emitter:client:java Issue for the Java client emitter: @typespec/http-client-java emitter:openapi3 Issues for @typespec/openapi3 emitter labels Jan 12, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 12, 2026

Open in StackBlitz

@typespec/compiler

npm i https://pkg.pr.new/microsoft/typespec/@typespec/compiler@9336

@typespec/http

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9336

@typespec/http-client

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9336

@typespec/http-client-java

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client-java@9336

@typespec/http-server-csharp

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-server-csharp@9336

@typespec/http-server-js

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-server-js@9336

@typespec/openapi

npm i https://pkg.pr.new/microsoft/typespec/@typespec/openapi@9336

@typespec/openapi3

npm i https://pkg.pr.new/microsoft/typespec/@typespec/openapi3@9336

@typespec/tspd

npm i https://pkg.pr.new/microsoft/typespec/@typespec/tspd@9336

commit: d708f88

@github-actions
Copy link
Contributor

github-actions bot commented Jan 12, 2026

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/http-server-csharp
  • @typespec/http-server-js
  • @typespec/http
  • @typespec/openapi3
  • @typespec/tspd
Show changes

@typespec/compiler - breaking ✏️

Remove unused program parameter from isArrayModelType and isRecordModelType functions

@typespec/http - breaking ✏️

Remove unused program parameter from isArrayModelType and isRecordModelType functions

@typespec/openapi3 - breaking ✏️

Remove unused program parameter from isArrayModelType and isRecordModelType functions

@typespec/tspd - breaking ✏️

Remove unused program parameter from isArrayModelType and isRecordModelType functions

@typespec/http-server-js - breaking ✏️

Remove unused program parameter from isArrayModelType and isRecordModelType functions

@typespec/http-server-csharp - breaking ✏️

Remove unused program parameter from isArrayModelType and isRecordModelType functions

@FionaBronwen FionaBronwen force-pushed the fionabronwen/type-utils branch from f8efbc9 to e2c2b45 Compare January 12, 2026 22:20
@FionaBronwen FionaBronwen force-pushed the fionabronwen/type-utils branch from e2c2b45 to d708f88 Compare January 13, 2026 16:00
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:client:java Issue for the Java client emitter: @typespec/http-client-java emitter:openapi3 Issues for @typespec/openapi3 emitter lib:http tspd Issues for the tspd tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant