Граф коммитов

275 Коммитов

Автор SHA1 Сообщение Дата
Irvine Sunday b68cc7e8cd Update test OpenAPI output files. 2021-04-27 11:20:12 +03:00
Irvine Sunday 02188d079d Code cleanup 2021-04-27 11:19:05 +03:00
Irvine Sunday 206e9a4129 Update tests for Entityset paths operations descriptions 2021-04-27 01:22:08 +03:00
Irvine Sunday 2b31063f7a Add support for operation descriptions and update tests 2021-04-26 22:24:18 +03:00
Jukka Snellman 830eb357c7 add support for EdmTypeKind.TypeDefinition 2021-04-19 09:22:40 -07:00
Sam Xu 5531eb3c3c 1. Update the version to 1.0.7
2. Add PublicApi analyzier
3. Add config for ShowMsDocGroupPath
2021-04-13 10:04:06 -07:00
Irvine Sunday 4c685b568b
Fix: Removes example property in path parameter objects (#92)
* Remove example property in Parameters

This helps in avoiding duplication with examples property. They are mutually exclusive. DocumentationURL prop. which used to be set in example property is now set within descriptions property.

* Update src/Microsoft.OpenApi.OData.Reader/Operation/OperationHandler.cs

Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>

* Remove duplicate variable declaration

* Minor refactoring

To help trigger build

Co-authored-by: Irvine Sunday <irochand@microsoft.com>
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>
Co-authored-by: Sam Xu <saxu@microsoft.com>
2021-04-09 13:40:52 -07:00
Irvine Sunday 32e673eea0
Fixes potential duplicate operationIds in action/function paths (#98)
* Include EntityType name of ODataKeySegment in Action/Function paths

This helps in preventing potential duplicate operationIds in entity vs entityset functions/actions

* Update tests to validate action/function duplicate operationId fix

* Update test files' action/function operationIds

* Redesign how we retrieve the segment identifiers

* Update test files in line with new segment retrieval redesign

Co-authored-by: Irvine Sunday <irochand@microsoft.com>
2021-04-09 13:38:59 -07:00
Sam Xu b4d3ae36af Add key and operation (function) parameter mapping 2021-02-10 17:45:14 -08:00
Sam Xu 05e10c94eb update the version to 1.0.6 2021-02-10 16:09:55 -08:00
Sam Xu aa5b0f0bc7 Add Metadata, segment and related path handler and operation handler, expand ODataPath to accept PathTemplate 2021-02-10 16:08:27 -08:00
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 5a83e6b553 update the version to 1.0.5 2021-02-05 18:00:19 -08:00
Sam Xu f98b9ce40d update the docs 2021-02-05 17:56:46 -08:00
Sam Xu dfbf083d53 Push changes from microsoft graph (#86) 2021-02-05 17:42:10 -08:00
Gareth Jones c1aa5a6f94
Add model reference support to library and command line utility. (#81)
* Support many conversion options in the command-line tool.
Support local reference files in file-based csdl in the library and command-line tool.

* Added tests for references.

* Updates from github review.
2021-01-14 16:56:26 -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
Sam Xu f08180c648
Update to version 1.0.4 2020-07-21 12:44:10 -07: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 c58a6136f3
Update version to 1.0.3 2020-06-04 14:37:41 -07:00
Sam Xu e0135613d6 output the xml file, add into nuget package, fix the build warning 2020-06-04 11:13:38 -07:00
Sam Xu ff057525da
Update versioning.props 2020-05-25 12:02:01 -07:00
Sam Xu a7ee00dbf4 Add Delete to containment navigation property and for non-containment navigation property 2020-05-21 10:58:43 -07:00
Sam Xu 8e7d94dcba
Update azure-pipelines_nightly.yml 2020-05-20 15:31:52 -07:00
Sam Xu 0b2f951f49
Update azure-pipelines_rolling.yml 2020-05-20 15:26:15 -07: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 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
Irvine Sunday 3a00f2a540 Adds support for replacing base type references with their derived types #55 2020-04-02 19:47:28 -07:00
Sam Xu 112c566aee Update azure-pipelines_nightly.yml for Azure Pipelines 2020-03-30 09:36:54 -07:00
Sam Xu f75bbb0e9d add the azure pipelines nightly 2020-03-30 09:33:44 -07:00
Sam Xu cedcc7de94
Update README.md 2020-03-29 21:46:40 -07:00
Sam Xu ceb6ff1699 add azure pipeline rolling yml 2020-03-29 21:29:12 -07:00
Sam Xu 90f5f8c4b5 Fix the failing test cases 2020-03-29 20:24:38 -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
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
Darrel 2755da6a59
Merge pull request #52 from irvinesunday/master
Adds support for paging through entities collection
2020-03-24 09:19:26 -04:00
Irvine Sunday af05aa66bb Refactoring code to pick the configurable pageable operation name 2020-03-23 20:27:51 +03: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 5ab49e14e3 Code refactoring to conditionally set pagination 2020-03-23 19:53:01 +03:00
Irvine Sunday 148a1df873 Adding pagination config settings 2020-03-23 19:51:31 +03:00
Irvine Sunday b7a3ab76f1 Removing unnecessary using directive 2020-03-19 11:16:13 +03:00
Irvine Sunday 81f1815e81 Removing unnecessary quotation marks 2020-03-19 11:02:23 +03:00
Irvine Sunday 32093e38e4 Adding pagination extension to navigation properties to collection of entities 2020-03-19 11:01:28 +03:00
Irvine Sunday b8eb57036b
Merge pull request #4 from irvinesunday/is/paging
Adding odata.nextlink response object
2020-03-16 19:11:35 +03:00
Irvine Sunday ec8207fea7 Adding the odata.nextlink response object 2020-03-16 19:09:36 +03:00
Irvine Sunday ff81d009e3
Merge pull request #3 from irvinesunday/is/paging
Adds support for paging through collection of entities
2020-03-16 13:13:03 +03:00