Open pbolduc opened 6 months ago
The failing unit tests pass locally. Is this something that I need to investigate or could it be related to the test runner setup?
The failing unit tests pass locally. Is this something that I need to investigate or could it be related to the test runner setup?
Looks like the same failure I got in #4785 - I wondered if the test timeout I mentioned at https://github.com/RicoSuter/NSwag/pull/4785#issuecomment-1998612818 simply isn't long enough for the macOS CI runner, though I don't have a Mac to test it locally with so I'm just guessing
Awesome, thanks for your work @pbolduc !
Are there any issues with this PR? Our team is prevented using the MS Build task to auto generate our C# client because our models are internal. I have to keep reminding my team, they have to manually generate client using the UI and after generating the C# client, they need to edit the generated interface from public to internal.
Please advise if you would like changes by providing feedback on this PR. I have tried to ensure this PR does not introduce any regressions and only makes minimal changes to allow types to be generated as internal to the assembly.
MacOS build failures should be fixed by #4896
https://github.com/RicoSuter/NSwag/issues/1363#issuecomment-2163715770
Now that #4896 has been merged, @pbolduc could you please re-run the Macos build? Latest run is from March 17th.
Hoping this PR could be merged soon.
Thanks
MacOS build failures should be fixed by #4896
Now that #4896 has been merged, @pbolduc could you please re-run the Macos build? Latest run is from March 17th.
Hoping this PR could be merged soon.
Thanks
I am not a maintainer on this Repo. I am not clear on how I would "re-run the Macos build". Usually a maintainer needs to re-run the github actions.
MacOS build failures should be fixed by #4896
#1363 (comment) Now that #4896 has been merged, @pbolduc could you please re-run the Macos build? Latest run is from March 17th. Hoping this PR could be merged soon. Thanks
I am not a maintainer on this Repo. I am not clear on how I would "re-run the Macos build". Usually a maintainer needs to re-run the github actions.
Ok thanks for your answer. I thought maybe the creator of the PR could manually re-run the build without having to push a new commit.
I guess we just have to wait for a maintainer then.
This PR allows changing the client interface access modifier. This PR is to address #1363.
Changes:
TypeAccessModifier
is used. WhenTypeAccessModifier
is set in theOpenApiToCSharpClientCommand
, it sets the settingsClientInterfaceAccessModifier
to the same value. This is required becauseTypeAccessModifier
is found in the Newtonsoft library and not inCSharpClientGeneratorSettings
.CSharpClientGeneratorSettings
defaultsClientInterfaceAccessModifier
topublic
Client.Interface.liquid
to use the newClientInterfaceAccessModifier
settingThis PR does not address valid combination of setting the generated C# class and model to public, but the interface internal. This would require additional work to expose additional arguments to the command line tool and changes to the UI tools. Someone would need to justify the use case that make this additional combination valid and the effort to implement.
Valid in the table means it is valid C# and will compile. This PR really addresses the last item in the table.