forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 1
Efnext #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bterlson
wants to merge
158
commits into
main2
Choose a base branch
from
efnext
base: main2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sync changes in Azure/autorest.csharp#4613 - This is to sync changes in autorest.csharp repo to maintain parity between the MCG emitter with autorest.csharp emitter. Not new MPFD feature.
Generator part change on this side is tracking here: microsoft#3478
Add a place to add perf tests for using benchmark to evaluate performance impacts
…osoft#3450) This PR updates the `Parameter` and `PropertyDeclaration` types by converted them into classes and adds constructors to build both types from an `InputModelProperty`.
…models and enums (microsoft#3494) Fixes: microsoft#3358 Fixes: microsoft#3483 --------- Co-authored-by: ShivangiReja <[email protected]>
…harp#4707 (microsoft#3503) Migrate changes from `autorest.csharp`: - Azure/autorest.csharp#4688 - Azure/autorest.csharp#4707
…icrosoft#3489) This is a port of Azure/autorest.csharp#4776 Co-authored-by: Dapeng Zhang <[email protected]>
## Why? Because it does not make sense to me to be able to pass something else than a `string` in a path. 
From the doc this seems to be the way to define catch all. Currently we are getting added to all csharp emitter PRs https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners Particularly this part ``` # These owners will be the default owners for everything in # the repo. Unless a later match takes precedence, # @global-owner1 and @global-owner2 will be requested for # review when someone opens a pull request. * @global-owner1 @global-owner2 ```
Follow up to microsoft#3450. This PR updates the `FieldDeclaration` from a record to a class to follow the pattern set by PropertyDeclaration.
…shed (microsoft#3566) In the same way we have this logic for `cloneTypeForSymbol`
Fixes Azure/autorest.csharp#4678 We are only checking if the input type is a generic type, and then get its generic argument if it is. We are not checking if it is this special generic type `System.Nullable<T>` which appears to be a generic type but we actually want it to be non-generic but nullable. This PR changes the final constructor that would be invoke for all cases that a ctor of CSharpType from a `System.Type` to add a check if it is `System.Nullable<T>`, we will use `T` as `_type`, and the arguments of `T` as the real arguments.
support loglevel filter in playground to avoid too many verbose log as well as user can filter logs as needed. fixes microsoft#3554
…ference the right scalar (microsoft#3573) ``` const a = unixTimestamp.fromISO("..."); ``` a would have the scalar utcDateTime not unixTimestamp
fix microsoft#3504 When unsuitable types are specified in the model property, the invalid code location is now reported instead of throwing an error. When compiling the following tsp file, it is reported as follows ```tsp interface TestInterface1 { get1(prop: TestInterface1): TestInterface1; } ``` ``` Diagnostics were reported during compilation: /projects/typespec/packages/samples/scratch/main.tsp:2:8 - error @typespec/openapi3/invalid-model-property: 'Interface' cannot be specified as a model property. > 2 | get1(prop: TestInterface1): TestInterface1; | ^^^^ Found 1 error. ``` --------- Co-authored-by: Timothee Guerin <[email protected]> Co-authored-by: Timothee Guerin <[email protected]>
Co-authored-by: Brian Terlson <[email protected]>
Co-authored-by: Timothee Guerin <[email protected]>
Currently formats to ``` @example( #{ id: "some", bar: "thing", date: utcDateTime.fromISO("2020-01-01T00:00:00Z"), unixDate: unixTimestamp32.fromISO("2020-01-01T00:00:00Z"), encodedAsRfc7231: utcDateTime.fromISO("2020-01-01T00:00:00Z"), dob: plainDate.fromISO("2020-01-01"), timeout: duration.fromISO("PT1M"), timeoutInSeconds: duration.fromISO("PT1M1.5S"), timeoutInSecondsFloat: duration.fromISO("PT0.5S"), } ) ``` woudl get formatted to ``` @example(#{ id: "some", bar: "thing", date: utcDateTime.fromISO("2020-01-01T00:00:00Z"), unixDate: unixTimestamp32.fromISO("2020-01-01T00:00:00Z"), encodedAsRfc7231: utcDateTime.fromISO("2020-01-01T00:00:00Z"), dob: plainDate.fromISO("2020-01-01"), timeout: duration.fromISO("PT1M"), timeoutInSeconds: duration.fromISO("PT1M1.5S"), timeoutInSecondsFloat: duration.fromISO("PT0.5S"), }) ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.