Pavel Krymets
23128ef130
Add boolean tests ( #355 )
2019-12-17 10:28:07 -08:00
Pavel Krymets
88f106e8be
Cleanup interface of JSON serialization helpers ( #353 )
2019-12-17 09:52:11 -08:00
Pavel Krymets
2cac85072b
Support polymorphism ( #352 )
2019-12-16 14:35:27 -08:00
Michael Yanni
369951a5f8
Merge pull request #351 from MiYanni/resharper-warnings-bug-fix
...
Solution Error Visualizer warnings bug fix
2019-12-13 18:41:50 -08:00
Michael Yanni
0e9fac70c0
Changed nullable back to enable.
2019-12-13 18:29:39 -08:00
Michael Yanni
37caaeb358
Found out it was a Solution Error Visualizer issue. Tried several workarounds, but this seemed to be the only solution that worked without disabling the warning at the project level.
2019-12-13 18:18:03 -08:00
Michael Yanni
6229845b4f
Merge pull request #350 from MiYanni/body-duration-tests
...
Body duration tests
2019-12-13 17:51:38 -08:00
Michael Yanni
eabdaf7cb3
Merge branch 'body-duration-tests' into resharper-warnings-bug-fix
2019-12-13 17:15:27 -08:00
Michael Yanni
07627e7dc4
Merge branch 'feature/v3' into body-duration-tests
2019-12-13 17:14:34 -08:00
Michael Yanni
1a6c38c73a
Made Configuration simply have a normal constructor.
2019-12-13 17:13:51 -08:00
Michael Yanni
11ace0da90
Merge pull request #349 from MiYanni/body-datetime-rfc1123-tests
...
Body datetime rfc1123 tests
2019-12-13 17:11:41 -08:00
Michael Yanni
007800ebf4
Added tests for body-duration.
2019-12-13 16:58:23 -08:00
Michael Yanni
da875088a6
Merge pull request #347 from MiYanni/body-datetime-tests
...
Body datetime tests
2019-12-13 16:41:33 -08:00
Michael Yanni
0072cb6827
Adds the tests for body-datetime-rfc1123.
2019-12-13 16:41:08 -08:00
Michael Yanni
bb172557f3
Had to do contains for StartsAndReportsCoverage because of https://github.com/Azure/autorest.testserver/issues/100 .
2019-12-13 16:18:56 -08:00
Michael Yanni
1ee5ec821f
Merge pull request #345 from MiYanni/body-date-tests
...
Body date tests
2019-12-13 15:47:26 -08:00
Michael Yanni
a606fb62f4
Updated Generate.ps1 to have all test swaggers. Just uncomment to use a new one. Added body-datetime tests.
2019-12-13 15:44:11 -08:00
Michael Yanni
558de5c054
Added tests. Only 1 ignored.
2019-12-13 13:56:46 -08:00
Michael Yanni
1d44775342
Added body-date tests and generated code. Added GetTestStubs.ps1 to create stub list for any list of scenarios put into TestList.txt.
2019-12-13 13:37:52 -08:00
Pavel Krymets
555dc8535e
Add singular inheritance support ( #344 )
2019-12-13 12:42:41 -08:00
Michael Yanni
1664e9d8b2
Merge pull request #343 from MiYanni/duration-serialization-body-complex
...
Duration de/serialization
2019-12-13 10:35:50 -08:00
Michael Yanni
90436c0bd2
Removed unused methods. Updated package-lock.json. Added installing Java to readme.md.
2019-12-13 10:22:26 -08:00
Michael Yanni
142ce774e6
Removed excess using.
2019-12-13 08:49:15 -08:00
Michael Yanni
d5e3282585
Merge branch 'feature/v3' into duration-serialization-body-complex
2019-12-13 08:41:15 -08:00
Michael Yanni
142d1477a1
Merge pull request #340 from MiYanni/datetime-decode-body-complex
...
Decode DateTimeOffset formats
2019-12-13 08:35:06 -08:00
Michael Yanni
235500032c
Made the format types more explicit. Added the correct serialization/deserialization for TimeSpan. Unignored a couple tests.
2019-12-12 19:11:27 -08:00
Michael Yanni
85f58e21df
Fixes after merging.
2019-12-12 17:26:55 -08:00
Michael Yanni
873ba5b77b
Merge branch 'feature/v3' into datetime-decode-body-complex
...
# Conflicts:
# src/AutoRest.CSharp.V3/ClientModels/ClientBuilder.cs
# src/AutoRest.CSharp.V3/ClientModels/ClientMethod.cs
# src/AutoRest.CSharp.V3/CodeGen/ClientWriter.cs
# test/TestServerProjects/body-integer/Generated/Operations/IntOperations.cs
2019-12-12 16:53:59 -08:00
Pavel Krymets
715d7c3ab9
Remove samples that are covered by test generation ( #342 )
2019-12-12 16:53:52 -08:00
Pavel Krymets
eda30a2929
Add header models generation ( #338 )
...
* Split modeler so we can work with fewer merge conflicts
* Banner
* Undo
* Add header models generation
* works
* Gen it all
* Actual types
* Nicer names
* FB
* SemicolonLine
2019-12-12 16:31:37 -08:00
Pavel Krymets
970f8fdedd
Add fast generator mode ( #341 )
2019-12-12 16:28:06 -08:00
Michael Yanni
00580734b7
Added ResponseBody to handle formats. Made ClientMethod able to receive multiple response bodies. However, that is a completely separate undertaking to handle multiple responses. Added method for getting a formatted DateTimeOffset from a JsonElement. Unignored a body-complex test.
2019-12-12 14:18:02 -08:00
Pavel Krymets
1812b6ab10
Split modeler so we can work with fewer merge conflicts ( #336 )
2019-12-12 12:53:44 -08:00
Michael Yanni
18c58a9997
Merge pull request #337 from MiYanni/datetime-format-fixes-body-complex
...
Datetime format fixes (encoding)
2019-12-12 12:00:14 -08:00
Michael Yanni
c9c7cb6c0f
Renamed WriteDateTimeOffsetValue to WriteStringValue (as an additional override). Moved Name out of RequestBody. Moved Type from RequestBody to ConstantOrParameter. Ignored test that doesn't have a response on V2 server.
2019-12-12 11:49:20 -08:00
Michael Yanni
1e868271db
Moved format specifier out of ClientWriter to Extensions (for now). Added Utf8JsonWriterExtensions for writing DateTimeOffset using the format logic (from TypeFormatters). Changed DateTimeOffset encoding to use the extension method.
2019-12-11 18:05:10 -08:00
Michael Yanni
1c255cca97
Added RequestBody. Implemented logic for RequestBody to have Format and other information in it. Used SerializationFormat. Removed FrameworkTypeReferenceFormat, and put Format into ClientObjectProperty.
2019-12-11 17:14:18 -08:00
Michael Yanni
452db64046
Removed commented code.
2019-12-11 14:49:14 -08:00
Michael Yanni
ca2c169bb5
Fixed the last test for DateTimeOffset encoding.
2019-12-11 14:44:27 -08:00
Michael Yanni
8e455ee5d9
Merge branch 'feature/v3' into datetime-format-fixes-body-complex
2019-12-11 14:25:57 -08:00
Michael Yanni
201ed13d17
Eng script fixes ( #327 )
...
* Attempting to simplify calling structure of scripts.
* Still testing failures. Got it capturing properly. Going to try it on CI.
* Forgot npx for CI to run.
* Progressively testing changes to the scripts.
* Cleaned up script code. Tested running locally for both CodeChecks.ps1 and Generate.ps1.
* Addressing code review issues.
* Nested try/catch caused failures to be ignored. Inverted noReset to reset, as resetting locally causes npx to not acquire the modelerfour extension.
* Attempting to flush output on error for CI.
* Removed flush. Trying to source the scripts instead of calling them.
* Writing error instead of throwing.
* Trying to see what worked before and put it into a separate file.
* Removing try/catch to see affect on CI.
* Minor cleanup to move toward the other script files' changes.
* More cleanup of combined. Should match what is currently there.
* Removed parameters to see if that is the issue.
* Trying inline script.
* Not calling script as inline.
* This should now work as intended.
* Trying something.
* Trying to put the functions into a separate file and simply sourcing that file.
* Made it so that the normal script files use a shared set of functions.
* Just trying something.
* Testing.
* Added some readme information on setup and build. Trying to test old cmd call for output/failure.
* Back to separate file running, just using cmd to avoid CI issues.
* Cleaned up commented code in scripts.
* Removed unused scripts.
* Removed test failure.
* Intentionally adding to generated code to cause failure.
* Reverted diff check test (since it was successful). Removed keeping track of progress preference. Made CI do reset always.
2019-12-11 14:24:21 -08:00
Pavel Krymets
a787b3c9bc
Add tests for number bodies ( #334 )
2019-12-11 13:50:33 -08:00
Pavel Krymets
ca6e948261
Simplify JSON request body writing ( #333 )
...
* Simplify JSON request body writing
* Generated
* Additional files
2019-12-11 12:49:00 -08:00
Pavel Krymets
65e415e705
Add nullchecks for nullable required parameters ( #332 )
...
* Add nullchecks for nullable required parameters
* LOGIC
* use if
2019-12-11 11:19:47 -08:00
Pavel Krymets
7e754d1139
Add extensible-enums-swagger with tests ( #331 )
2019-12-10 16:54:11 -08:00
Michael Yanni
7ae36e6bb5
Merge branch 'feature/v3' into datetime-format-fixes-body-complex
...
# Conflicts:
# src/AutoRest.CSharp.V3/Pipeline/Extensions.cs
# test/AutoRest.TestServer.Tests/body-complex.cs
2019-12-10 16:49:27 -08:00
Pavel Krymets
195402a4f3
Add url_multi_collectionFormat.json ( #330 )
2019-12-10 14:54:32 -08:00
Pavel Krymets
1556365336
Add support for query value separators: ( #329 )
2019-12-10 14:34:51 -08:00
Pavel Krymets
c46664492e
Use DateTimeOffset ( #326 )
2019-12-10 13:35:02 -08:00
Pavel Krymets
2ad96b789f
Simplify CodeWriter and split renderers from code writer ( #328 )
2019-12-10 13:06:40 -08:00