Commit graph

31 commits

Author SHA1 Message Date
Gareth Jones e1763727f5 Fix paths when operation is bound to a type derived from the type of a
navigation property. (#88)
2021-02-10 16:07:31 -08:00
Sam Xu 1643ba5ea1 Add Path provider and path prefix provider into setting 2021-02-08 19:57:15 -08:00
Sam Xu dfbf083d53 Push changes from microsoft graph (#86) 2021-02-05 17:42:10 -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
Gareth Jones 1270385b8d Added simple PathPrefix to ConvertSettings to match ODataRoute prefix without affecting 'servers' declaration in OAS file. 2020-05-12 23:34:24 -07:00
Irvine Sunday 3a00f2a540 Adds support for replacing base type references with their derived types #55 2020-04-02 19:47:28 -07:00
Irvine Sunday f723b671d8
Adds discriminator support to OpenApi (#54)
* Adding setting for discriminator value support

* Adding the discriminator value constant

* Adding discriminator support during schema generation

Co-authored-by: Irvine Sunday <v-irsund@microsoft.com>
2020-03-25 09:50:00 -07:00
Irvine Sunday a9aac32b4b Adding config setting for the pageable operation name 2020-03-23 20:26:22 +03:00
Irvine Sunday dd11818c1b Documentation text update 2020-03-23 20:25:57 +03:00
Irvine Sunday 148a1df873 Adding pagination config settings 2020-03-23 19:51:31 +03:00
Sam Xu 35a35a5f56 Enable Uri escape function call 2019-09-26 12:57:15 -07:00
mispeer c25df986ac Users/mispeer/serialize nullable references for v2 (#34)
* Introduce setting hidden from UI, such that openApiSpec version 2 has the nullable references properly serialized.

AnyOf does not exist in v2, and those references are currently lost.

* Updating existing tests for nullable/schema areas where v2 and v3 differ

Making them theories to properly test both openApi specifications
Adding relevant yaml, json test files
Modifying code to ensure enums and entities also generate openApi with no anyOf for openApi v2 (not supported)

* Fix "Succeeded" typo in output for util

Fix tab spacing in util
Add version setting in util with documentation

* Remove tabs

* Refactor tests to take SpecVersion directly in InlineData

Modify 2 existing tests to test json schema generation by passed spec version
2019-06-19 14:27:48 -07:00
Behnam Emamian 8418bbdb99 set $top example 2018-10-12 10:28:16 -07:00
Sam Xu 5348ea25f2 Modify the codes 2018-09-18 14:35:57 -07:00
Sam Xu 39da108afd Modify the Open Api convert settings 2018-09-17 16:00:36 -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 de9ed86bee Modify the Authorization provider 2018-09-11 16:05:07 -07:00
Sam Xu b210e2a099 change the segment and path 2018-08-21 14:42:55 -07:00
Sam Xu 1b8d685dc7 Merge Graph changes into Master branch 2018-08-08 10:18:01 -07:00
Sam Xu dd72df735e update to latest OpenApi dll and add the key as segment into context 2018-01-29 15:46:19 -08: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 0ef1a7aaeb small cleanup 2018-01-04 11:24:38 -08:00
Sam Xu f2874be950 remove unused the value assignment 2017-12-08 13:42:45 -08:00
Sam Xu a759876b48 Add the IEEE754Compatible options for Decimal and Int64 type 2017-12-08 11:50:35 -08:00
Sam Xu bdbe629e5c add the navigation property path item and add the edm model validation 2017-12-06 18:36:06 -08:00
Sam Xu 9e48e9c76f Add the comments for the settings and remove the reference model public api 2017-12-04 15:54:14 -08:00
Sam Xu c98993f8c4 add a OperationId for convert settings 2017-12-04 14:19:07 -08:00
Sam Xu 21363c0128 Remove ParameterExtensions.cs and clean the parameter generator 2017-11-29 15:44:42 -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 e94df83615 ok 2017-11-21 14:47:38 -08:00