Commit graph

46 commits

Author SHA1 Message Date
Sam Xu b4d3ae36af Add key and operation (function) parameter mapping 2021-02-10 17:45:14 -08:00
Sam Xu dfbf083d53 Push changes from microsoft graph (#86) 2021-02-05 17:42:10 -08:00
edevoogd f6f26df6f2
Fix casing of OpenAPI type "String" for RefPatchOperationHandler and RefPostOperationHandler (#78)
* Fix casing from "String" to "string"

* Fix tests resources

Co-authored-by: Sam Xu <saxu@microsoft.com>
2020-11-30 17:08:41 -08:00
Irvine Sunday 00ed4207fe
Allows schema examples to be optional (#73)
* Adds Links to EntitySet type response objects

* Adds links to the test OpenAPI docs.

* Refactor to use Utils class for nullability checks

* Modify link generator to handle all instances of IEdmEntityType

* Update arguments

* Add new Link properties

* Update test files with links properties

* Rename parameter

* Fix OpenAPI Link generation

* Reorder Parameters generation before Responses

This is important so that the parameters info can be used for Links generation

* Update test files to validate Link fixes

* Fix links and add optional setting

* Update test for Links

* Revert project PlatformTarget

* Add comment

* Add setting for enabling/disabling showing of schema examples

* Add setting to show schema examples to allow tests to pass

* Update test doc. to test disabling of showing of schema examples

* Refactor to remove unnecessary Link creation of collection of entities

* Revert platform target to default - AnyCPU

* Add helpful comment

* Grammar nit fix

Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>
Co-authored-by: Irvine Sunday <irochand@microsoft.com>
2020-07-21 10:54:50 -04:00
Irvine Sunday 9d44019639
Fixes OpenAPI Links and makes them optional (#72)
* Adds Links to EntitySet type response objects

* Adds links to the test OpenAPI docs.

* Refactor to use Utils class for nullability checks

* Modify link generator to handle all instances of IEdmEntityType

* Update arguments

* Add new Link properties

* Update test files with links properties

* Rename parameter

* Fix OpenAPI Link generation

* Reorder Parameters generation before Responses

This is important so that the parameters info can be used for Links generation

* Update test files to validate Link fixes

* Fix links and add optional setting

* Update test for Links

* Revert project PlatformTarget

* Add comment

* Refactor to remove unnecessary Link creation of collection of entities

* Revert platform target to default - AnyCPU

* Add helpful comment

* Grammar nit fix

Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>
Co-authored-by: Irvine Sunday <irochand@microsoft.com>
2020-07-20 09:54:58 -04:00
Sam Xu a7ee00dbf4 Add Delete to containment navigation property and for non-containment navigation property 2020-05-21 10:58:43 -07:00
Irvine Sunday a9278f0e29
Adds Links to EntitySet type Get response objects (#57)
* Adds Links to EntitySet type response objects

* Adds links to the test OpenAPI docs.

* Refactor to use Utils class for nullability checks

* Modify link generator to handle all instances of IEdmEntityType

* Update arguments

* Add new Link properties

* Update test files with links properties

* Rename parameter

Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>
2020-04-15 12:46:28 -07:00
Sam Xu f07876624b Fix the failing test cases 2020-03-29 15:52:16 -07:00
Joe Glombek db8bff25c6 Change all query parameters from "simple" to "form"
"simple" is not supported in query parameters for OpenAPI v3. https://swagger.io/docs/specification/describing-parameters/
2020-03-29 12:54:33 -07:00
Sam Xu 1d7e7e0823 Rename the operationId for operation import 2019-10-10 13:39:51 -07:00
Sam Xu 6377ee0d47 Change the OperationId for function/functionImport 2019-10-10 11:35:39 -07:00
Sam Xu 5e3db101cf Fix issue #42: duplicate path parameters should be prevented 2019-09-25 14:44:02 -07:00
Sam Xu f362c34e31 Fix issue #36: Response object needs type property to identify collections 2019-08-13 13:00:12 -07:00
mispeer 2ff03dd401 Change encryption for fips compliance (#38)
* On Servers where FIPS compliance is enabled, use of MD5 encryption will fail for any usage in .NET

Changing to FIPS compliant SHA256

* Fix typo
2019-08-05 19:52:57 -07:00
Michael Speer db3c3e886c Fix issue #29: Action responses not serialized the return type 2019-05-10 13:52:52 -07:00
Sam Xu 3a1e56b25c Change the operationId generate rule for edm operation 2019-03-27 16:06:31 -07:00
Brecht Debaere 5a4b5a4597 Update test JSON files. 2019-02-27 09:14:58 -08:00
Sam Xu 4a22d78201 Fix the failed test cases 2019-02-05 10:03:42 -08:00
Sam Xu afe038f1a4 Modify the unit test owing to add the style in the parameter 2018-10-12 11:30:28 -07:00
Sam Xu b5b18ae565 Fix the failed test cases 2018-09-21 12:51:30 -07:00
Sam Xu eefdb23e0e Fix the failed test cases 2018-09-19 10:21:14 -07:00
Sam Xu f9e3763500 Clean the codes and add the example to the components 2018-09-18 16:28:44 -07:00
Sam Xu 5348ea25f2 Modify the codes 2018-09-18 14:35:57 -07:00
Sam Xu cecf114328 Modify the path related codes 2018-09-17 13:07:07 -07:00
Sam Xu e4d8bf03d8 fix the problem about Query options should be the same for a resource 2018-09-11 17:22:39 -07:00
Sam Xu 5a2a2af9ae Change the oneOf to anyOf for Double/Single/Int64 2018-08-29 10:30:21 -07:00
Sam Xu 0f8b01df3e refactor the operation handler 2018-08-28 15:47:44 -07:00
Sam Xu 13ca340cc0 refactor for the capabilities and modify the test cases 2018-08-23 17:27:14 -07:00
Sam Xu 1b8d685dc7 Merge Graph changes into Master branch 2018-08-08 10:18:01 -07:00
Sam Xu 69431503c5 Make OperationId output by default and use the Camel Case format 2018-01-24 17:16:55 -08:00
Sam Xu d7f6991914 modify NavigationRestrictions and add the unit tests 2018-01-22 15:20:29 -08:00
Sam Xu 6b965f5af2 modify to return the collection of entity type for the GET entity operation 2018-01-19 09:55:43 -08:00
Sam Xu e3e5f5d465 fix the response schema type as object 2018-01-18 19:19:41 -08:00
Sam Xu a9a68fb662 modify the operation and parameter generator to use the capabilites 2018-01-18 18:20:02 -08:00
Sam Xu 47d1564fb5 fix the type as array for list entity set and update to beta10 common lib 2018-01-11 11:15:21 -08:00
Sam Xu 7588eb08de Update to Open API library on Nuget.org and resolve the conflicts 2017-12-20 11:44:43 -08:00
Sam Xu a759876b48 Add the IEEE754Compatible options for Decimal and Int64 type 2017-12-08 11:50:35 -08:00
Sam Xu ee232f9523 modify the schema for Geo*, Property, etc 2017-12-01 15:11:18 -08:00
Sam Xu 21363c0128 Remove ParameterExtensions.cs and clean the parameter generator 2017-11-29 15:44:42 -08:00
Sam Xu 2895681fca fix the summary for action operation and add unit test for operation import path item creating 2017-11-29 10:22:43 -08:00
Sam Xu 9bfe8138a2 Modify the pathitem, operation, requestbody generator and add unit test cases 2017-11-28 19:21:52 -08:00
Sam Xu 31c7746e30 add ODataContext and add unit tests 2017-11-21 19:44:38 -08:00
Sam Xu adb2ab4f26 modify based on the reference change and tags, securityscheme changes in common core lib 2017-11-20 10:46:18 -08:00
Sam Xu 74e030eb18 add the core lib project and make test case pass 2017-11-15 20:19:18 -08:00
Sam Xu e366220190 make the edm to openapi document test work 2017-11-14 16:54:03 -08:00
Sam f8fecbd428 add the initial Open API OData project and test 2017-10-19 14:39:57 -07:00