October 2022
This release contains breaking changes:
TypeSpec
: Cannotextends
oris
a model expression via aliasApi
: RemovedcreateProgram
and changedcompile
parameter orderTypeSpec
Deprecation@service
decorator replacing@serviceTitle
and@serviceVersion
TypeSpec
Api
: Move@discriminator
to compiler
[TypeSpec] Cannot extends
or is
a model expression via alias PR 1004
Using model expression for is
or extends
directly was already forbidden.
The following workaround was however tolerated. This PR remove this functionality.
Use a named model instead of an alias.
[API] Removed createProgram
and changed compile
parameter order
createProgram
has been removed in favor of compile
. The new compile has the same parameter as createProgram
compile
api was changed to match the same order as old createProggram
[TypeSpec] Deprecation: @service decorator replacing @serviceTitle
and @serviceVersion
@serviceTitle
has been deprecated@serviceVersion
has been deprecated
This allows to specify the service namespace without any title or version
[TypeSpec] [Api] Move @discriminator
to compiler
The @discriminator
has been moved to the compiler. This means that if you were using the fully qualified name to reference the decorator @TypeSpec.Rest.disriminator
it should be changed to @discriminator
No changes
Before
After
Change to api
the getDiscriminator
accessor has also been removed into the compiler.
Before
After